refactor: E2E 시나리오 전면 개선 (43파일)
- Phase 0: 미구현 모듈 시나리오 13개 삭제 (구매관리, 중복, 라우트 없음) - Phase 2: Settings URL 불일치 수정 (position, attendance, vacation-policy, bank-account, account, notification) - Phase 3-4: 비설정 시나리오 URL/메뉴/UI 수정 (inventory-status, receiving-management, price-management, customer-inquiry, shipment-management, sales-client, quality-certification, customer-notice, production-* 등) - Phase 5-6: 복잡 시나리오 재작성 (draft-box 50→14스텝, department-add 18→10스텝, free-board 70→22스텝, crud-delete-freeboard 14→17스텝) - 16개 disabled 시나리오 enabled 전환 - 비표준 액션(fillInModal, randomData, usePlaywrightNative 등) → step-executor 표준 액션으로 통일
This commit is contained in:
@@ -1,220 +0,0 @@
|
||||
{
|
||||
"enabled": false,
|
||||
"id": "purchase-status",
|
||||
"name": "구매현황 테스트",
|
||||
"screenshotPolicy": {
|
||||
"onErrorOnly": true,
|
||||
"captureOn": [
|
||||
"error",
|
||||
"fail",
|
||||
"timeout",
|
||||
"404",
|
||||
"500",
|
||||
"blocked"
|
||||
]
|
||||
},
|
||||
"description": "구매관리 > 구매현황 메뉴의 구매 현황 조회/필터/통계 기능 테스트",
|
||||
"baseUrl": "https://dev.codebridge-x.com",
|
||||
"menuNavigation": {
|
||||
"level1": "구매관리",
|
||||
"level2": "구매현황",
|
||||
"expectedUrl": "/purchase/status",
|
||||
"searchWithinParent": true,
|
||||
"closeOtherMenus": true
|
||||
},
|
||||
"auth": {
|
||||
"username": "TestUser5",
|
||||
"password": "password123!"
|
||||
},
|
||||
"steps": [
|
||||
{
|
||||
"id": 1,
|
||||
"name": "메뉴 진입: 구매관리 > 구매현황",
|
||||
"action": "menu_navigate",
|
||||
"level1": "구매관리",
|
||||
"level2": "구매현황",
|
||||
"expected": {
|
||||
"url_contains": "/purchase",
|
||||
"visible": [
|
||||
"구매현황",
|
||||
"구매"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"name": "필수 검증 #5: 목업 페이지 감지",
|
||||
"action": "verify_not_mockup",
|
||||
"checks": [
|
||||
"구매 현황 표시",
|
||||
"기간 필터 존재",
|
||||
"통계 또는 차트 존재"
|
||||
],
|
||||
"expected": "정상 페이지 (목업 아님)"
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"name": "구매현황 페이지 구조 확인",
|
||||
"action": "verify_elements",
|
||||
"checks": [
|
||||
"구매 통계 카드",
|
||||
"기간 선택 필터",
|
||||
"구매 목록 테이블 또는 차트"
|
||||
],
|
||||
"expected": "구매현황 페이지 정상 표시"
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"phase": "READ",
|
||||
"name": "[READ] 구매 통계 확인",
|
||||
"action": "verify_detail",
|
||||
"checks": [
|
||||
"총 구매금액",
|
||||
"구매 건수",
|
||||
"평균 구매금액"
|
||||
],
|
||||
"expected": "구매 통계 표시"
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"phase": "FILTER",
|
||||
"name": "[FILTER] 기간 필터 - 시작일",
|
||||
"action": "click_if_exists",
|
||||
"target": "input[type='date']:first-of-type, input[name*='start']"
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"phase": "FILTER",
|
||||
"name": "[FILTER] 기간 필터 - 종료일",
|
||||
"action": "click_if_exists",
|
||||
"target": "input[type='date']:last-of-type, input[name*='end']"
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"phase": "FILTER",
|
||||
"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_table",
|
||||
"checks": [
|
||||
"발주일 컬럼",
|
||||
"거래처 컬럼",
|
||||
"품목 컬럼",
|
||||
"금액 컬럼",
|
||||
"상태 컬럼"
|
||||
],
|
||||
"expected": "구매 현황 테이블 표시"
|
||||
},
|
||||
{
|
||||
"id": 9,
|
||||
"name": "상태별 필터 확인",
|
||||
"action": "verify_elements",
|
||||
"checks": [
|
||||
"진행중/완료/취소 상태 필터"
|
||||
],
|
||||
"expected": "상태 필터 표시"
|
||||
},
|
||||
{
|
||||
"id": 10,
|
||||
"name": "거래처별 통계 확인",
|
||||
"action": "verify_elements",
|
||||
"checks": [
|
||||
"거래처별 구매금액 표시"
|
||||
],
|
||||
"expected": "거래처별 통계 표시"
|
||||
},
|
||||
{
|
||||
"id": 11,
|
||||
"name": "품목별 통계 확인",
|
||||
"action": "verify_elements",
|
||||
"checks": [
|
||||
"품목별 구매금액 표시"
|
||||
],
|
||||
"expected": "품목별 통계 표시"
|
||||
},
|
||||
{
|
||||
"id": 12,
|
||||
"name": "월별 추이 차트 확인",
|
||||
"action": "verify_elements",
|
||||
"checks": [
|
||||
"월별 구매 추이 차트"
|
||||
],
|
||||
"expected": "추이 차트 표시"
|
||||
},
|
||||
{
|
||||
"id": 13,
|
||||
"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_elements",
|
||||
"checks": [
|
||||
"인쇄 버튼 존재"
|
||||
],
|
||||
"expected": "인쇄 기능 표시"
|
||||
},
|
||||
{
|
||||
"id": 15,
|
||||
"name": "전년 대비 비교 확인",
|
||||
"action": "verify_elements",
|
||||
"checks": [
|
||||
"전년 동기 대비 증감 표시"
|
||||
],
|
||||
"expected": "비교 분석 표시"
|
||||
}
|
||||
],
|
||||
"expectedAPIs": [
|
||||
{
|
||||
"method": "GET",
|
||||
"endpoint": "/api/v1/purchase/status",
|
||||
"description": "구매현황 조회"
|
||||
},
|
||||
{
|
||||
"method": "GET",
|
||||
"endpoint": "/api/v1/purchase/statistics",
|
||||
"description": "구매 통계 조회"
|
||||
},
|
||||
{
|
||||
"method": "GET",
|
||||
"endpoint": "/api/v1/purchase/status/export",
|
||||
"description": "구매현황 엑셀 다운로드"
|
||||
}
|
||||
],
|
||||
"requiredVerifications": [
|
||||
{
|
||||
"id": 1,
|
||||
"name": "엑셀 다운로드",
|
||||
"steps": [
|
||||
13
|
||||
],
|
||||
"criteria": "API 호출 + 파일 다운로드"
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"name": "목업 페이지 감지",
|
||||
"steps": [
|
||||
2
|
||||
],
|
||||
"criteria": "구매 현황, 기간 필터, 통계/차트 존재"
|
||||
}
|
||||
],
|
||||
"rollbackPlan": {
|
||||
"note": "조회 전용 페이지로 데이터 변경 없음"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user