revert: 품질 개선 롤백 - step-executor 형식 불일치로 5개 시나리오 실패

- company-info, draft-box, item-management, popup-management, purchase-status 실패
- 원인: selector 필드 대신 target 사용 필요, evaluate IIFE 미적용, 존재하지 않는 액션 사용
- 원래 통과하던 f6779b9 상태로 복원
This commit is contained in:
김보곤
2026-02-06 06:49:29 +09:00
parent 076aa2a376
commit f7dece7d1f
8 changed files with 3201 additions and 2209 deletions

View File

@@ -25,16 +25,6 @@
"username": "TestUser5",
"password": "password123!"
},
"selectors": {
"statisticsCard": ".card, [class*='stat'], [class*='summary'], [class*='card']",
"dateFilter": "input[type='date'], input[type='text'][placeholder*='날짜'], [class*='datepicker'] input",
"searchButton": "button:has-text('조회'), button:has-text('검색'), button[type='submit']",
"dataTable": "table, [class*='table'], [role='grid']",
"statusFilter": "select, [class*='select'], [class*='dropdown'], [role='combobox']",
"excelButton": "button:has-text('엑셀'), button:has-text('Excel'), button:has-text('다운로드'), button[class*='excel']",
"printButton": "button:has-text('인쇄'), button:has-text('Print'), button[class*='print']",
"chartArea": "canvas, svg, [class*='chart'], [class*='Chart']"
},
"steps": [
{
"id": 1,
@@ -55,108 +45,137 @@
"name": "필수 검증 #5: 목업 페이지 감지",
"action": "verify_not_mockup",
"checks": [
"input, select, button[type='submit']",
"table, [class*='table'], [role='grid']"
"구매 현황 표시",
"기간 필터 존재",
"통계 또는 차트 존재"
],
"expected": "정상 페이지 (목업 아님)"
},
{
"id": 3,
"name": "구매현황 페이지 구조 확인",
"action": "verify_element",
"target": ".card, [class*='stat'], [class*='summary'], table, [class*='table']",
"action": "verify_elements",
"checks": [
"구매 통계 카드",
"기간 선택 필터",
"구매 목록 테이블 또는 차트"
],
"expected": "구매현황 페이지 정상 표시"
},
{
"id": 4,
"phase": "READ",
"name": "[READ] 구매 통계 카드 확인",
"action": "verify_element",
"target": ".card, [class*='stat'], [class*='summary'], [class*='total'], [class*='count']",
"expected": "구매 통계 카드 표시"
"name": "[READ] 구매 통계 확인",
"action": "verify_detail",
"checks": [
"총 구매금액",
"구매 건수",
"평균 구매금액"
],
"expected": "구매 통계 표시"
},
{
"id": 5,
"phase": "FILTER",
"name": "[FILTER] 날짜 필터 필드 확인",
"action": "verify_element",
"target": "input[type='date'], input[type='text'][placeholder*='날짜'], [class*='datepicker']",
"expected": "날짜 필터 필드 존재"
"name": "[FILTER] 기간 필터 - 시작일",
"action": "click_if_exists",
"target": "input[type='date']:first-of-type, input[name*='start']"
},
{
"id": 6,
"phase": "FILTER",
"name": "[FILTER] 조회 버튼 클릭",
"name": "[FILTER] 기간 필터 - 종료일",
"action": "click_if_exists",
"target": "button:has-text('조회'), button:has-text('검색'), button[type='submit']",
"timeout": 3000
"target": "input[type='date']:last-of-type, input[name*='end']"
},
{
"id": 7,
"phase": "FILTER",
"name": "[FILTER] 조회 결과 테이블 확인",
"action": "wait_for_element",
"target": "table tbody tr, [class*='table'] [class*='row'], [role='row']",
"timeout": 5000,
"expected": "조회 결과 데이터 로드"
"name": "[FILTER] 조회 실행",
"action": "click_if_exists",
"target": "button:has-text('조회'), button:has-text('검색')",
"expected": {
"data_loaded": true,
"api_call": "GET /api/v1/purchase/status"
}
},
{
"id": 8,
"name": "구매 현황 테이블 구조 확인",
"action": "verify_element",
"target": "table thead th, table th, [role='columnheader']",
"expected": "테이블 헤더 컬럼 표시"
"name": "구매 현황 테이블 확인",
"action": "verify_table",
"checks": [
"발주일 컬럼",
"거래처 컬럼",
"품목 컬럼",
"금액 컬럼",
"상태 컬럼"
],
"expected": "구매 현황 테이블 표시"
},
{
"id": 9,
"name": "테이블 데이터 행 존재 확인",
"action": "verify_element",
"target": "table tbody tr, [class*='table'] [class*='row']:not(:first-child), [role='row']",
"expected": "테이블 데이터 행 표시"
"name": "상태별 필터 확인",
"action": "verify_elements",
"checks": [
"진행중/완료/취소 상태 필터"
],
"expected": "상태 필터 표시"
},
{
"id": 10,
"name": "상태 필터/선택 요소 확인",
"action": "verify_element",
"target": "select, [class*='select'], [class*='dropdown'], [role='combobox'], [class*='filter']",
"expected": "상태/필터 선택 요소 표시"
"name": "거래처별 통계 확인",
"action": "verify_elements",
"checks": [
"거래처별 구매금액 표시"
],
"expected": "거래처별 통계 표시"
},
{
"id": 11,
"name": "통계 영역 확인",
"action": "verify_element",
"target": ".card, [class*='stat'], [class*='summary'], [class*='total']",
"expected": "통계 정보 영역 표시"
"name": "품목별 통계 확인",
"action": "verify_elements",
"checks": [
"품목별 구매금액 표시"
],
"expected": "품목별 통계 표시"
},
{
"id": 12,
"name": "차트 또는 시각화 영역 확인",
"action": "verify_element",
"target": "canvas, svg, [class*='chart'], [class*='Chart'], [class*='graph']",
"optional": true,
"expected": "차트/그래프 영역 표시 (선택적)"
"name": "월별 추이 차트 확인",
"action": "verify_elements",
"checks": [
"월별 구매 추이 차트"
],
"expected": "추이 차트 표시"
},
{
"id": 13,
"name": "필수 검증 #1: 엑셀 다운로드 버튼 확인",
"action": "verify_element",
"target": "button:has-text('엑셀'), button:has-text('Excel'), button:has-text('다운로드'), button[class*='excel'], a[href*='export'], a[href*='download']",
"expected": "엑셀 다운로드 버튼 존재"
"name": "필수 검증 #1: 엑셀 다운로드",
"action": "click_if_exists",
"target": "button:has-text('엑셀'), button:has-text('Excel'), button:has-text('다운로드')",
"verify": {
"api_call": "GET /api/v1/purchase/status/export",
"file_download": true
},
"expected": "엑셀 파일 다운로드"
},
{
"id": 14,
"name": "인쇄 버튼 확인",
"action": "verify_element",
"target": "button:has-text('인쇄'), button:has-text('Print'), button[class*='print'], [class*='print']",
"optional": true,
"expected": "인쇄 버튼 표시 (선택적)"
"name": "인쇄 기능 확인",
"action": "verify_elements",
"checks": [
"인쇄 버튼 존재"
],
"expected": "인쇄 기능 표시"
},
{
"id": 15,
"name": "페이지 정상 동작 최종 확인",
"action": "verify_url_stability",
"timeout": 2000,
"expected": "페이지 정상 유지 (에러 없음)"
"name": "전년 대비 비교 확인",
"action": "verify_elements",
"checks": [
"전년 동기 대비 증감 표시"
],
"expected": "비교 분석 표시"
}
],
"expectedAPIs": [
@@ -169,16 +188,21 @@
"method": "GET",
"endpoint": "/api/v1/purchase/statistics",
"description": "구매 통계 조회"
},
{
"method": "GET",
"endpoint": "/api/v1/purchase/status/export",
"description": "구매현황 엑셀 다운로드"
}
],
"requiredVerifications": [
{
"id": 1,
"name": "엑셀 다운로드 버튼",
"name": "엑셀 다운로드",
"steps": [
13
],
"criteria": "엑셀 다운로드 버튼 존재 확인"
"criteria": "API 호출 + 파일 다운로드"
},
{
"id": 5,
@@ -186,10 +210,10 @@
"steps": [
2
],
"criteria": "입력 필드, 테이블 등 실제 UI 요소 존재"
"criteria": "구매 현황, 기간 필터, 통계/차트 존재"
}
],
"rollbackPlan": {
"note": "조회 전용 페이지로 데이터 변경 없음"
}
}
}