{ "id": "work-performance", "name": "작업실적 테스트", "screenshotPolicy": { "onErrorOnly": true, "captureOn": ["error", "fail", "timeout", "404", "500", "blocked"] }, "description": "생산관리 > 작업실적 메뉴의 작업실적 조회/필터/검색/엑셀다운로드 기능 테스트", "baseUrl": "https://dev.codebridge-x.com", "menuNavigation": { "level1": "생산관리", "level2": "작업실적", "expectedUrl": "/production/performance", "searchWithinParent": true, "closeOtherMenus": true }, "auth": { "username": "TestUser5", "password": "password123!" }, "steps": [ { "id": 1, "name": "메뉴 진입: 생산관리 > 작업실적", "action": "menu_navigate", "level1": "생산관리", "level2": "작업실적", "expected": { "url_contains": "/production/performance", "visible": ["작업실적", "조회"] } }, { "id": 2, "name": "필수 검증 #5: 목업 페이지 감지", "action": "verify_not_mockup", "checks": [ "작업실적 테이블 표시", "검색/필터 영역 존재", "엑셀 다운로드 버튼 존재" ], "expected": "정상 페이지 (목업 아님)" }, { "id": 3, "name": "통계 카드 확인", "action": "verify_elements", "checks": [ "총 생산수량 카드", "양품수량 카드", "불량수량 카드", "불량률 카드" ], "expected": "통계 카드 표시" }, { "id": 4, "name": "작업실적 테이블 구조 확인", "action": "verify_table", "checks": [ "로트번호 컬럼", "작업일 컬럼", "작업지시번호 컬럼", "공정 컬럼", "품목명 컬럼", "생산수량 컬럼", "양품수량 컬럼", "불량수량 컬럼" ], "expected": "작업실적 테이블 표시" }, { "id": 5, "phase": "FILTER", "name": "[FILTER] 기간 필터 - 시작일", "action": "click_if_exists", "target": "input[type='date']:first-of-type, input[name*='start'], input[placeholder*='시작']", "expected": "시작일 선택 열림" }, { "id": 6, "phase": "FILTER", "name": "[FILTER] 기간 필터 - 종료일", "action": "click_if_exists", "target": "input[type='date']:last-of-type, input[name*='end'], input[placeholder*='종료']", "expected": "종료일 선택 열림" }, { "id": 7, "phase": "FILTER", "name": "[FILTER] 조회 버튼 클릭", "action": "click_if_exists", "target": "button:has-text('조회'), button:has-text('검색'), button:has-text('적용')", "expected": "필터 적용됨" }, { "id": 8, "phase": "FILTER", "name": "[FILTER] 필터 결과 확인", "action": "verify_detail", "checks": [ "선택한 기간의 작업실적 데이터 표시 또는 검색 결과 없음" ], "expected": "필터 동작 확인" }, { "id": 9, "name": "공정 필터 확인", "action": "verify_elements", "checks": [ "공정 선택 드롭다운 또는 필터" ], "expected": "공정 필터 존재" }, { "id": 10, "phase": "READ", "name": "[READ] 작업실적 행 상세 조회", "action": "click_if_exists", "target": "table tbody tr:first-child", "expected": { "detail_view": true } }, { "id": 11, "name": "상세 정보 확인", "action": "verify_detail", "checks": [ "로트번호 표시", "작업일 표시", "생산수량 표시", "양품수량 표시", "불량수량 표시" ], "expected": "상세 정보 표시" }, { "id": 12, "name": "필수 검증 #1: 엑셀 다운로드", "action": "click_if_exists", "target": "button:has-text('엑셀'), button:has-text('Excel'), button:has-text('다운로드')", "verify": { "api_call": "GET /api/v1/production/performance/export", "download_triggered": true }, "expected": "엑셀 파일 다운로드" }, { "id": 13, "name": "페이지네이션 확인", "action": "verify_elements", "checks": [ "페이지 번호 또는 더보기 버튼" ], "expected": "페이지네이션 표시" }, { "id": 14, "name": "인쇄 버튼 확인", "action": "verify_elements", "checks": [ "인쇄 버튼 존재" ], "expected": "인쇄 기능 표시" } ], "expectedAPIs": [ { "method": "GET", "endpoint": "/api/v1/production/performance", "description": "작업실적 목록 조회" }, { "method": "GET", "endpoint": "/api/v1/production/performance/:id", "description": "작업실적 상세 조회" }, { "method": "GET", "endpoint": "/api/v1/production/performance/export", "description": "작업실적 엑셀 다운로드" }, { "method": "GET", "endpoint": "/api/v1/production/performance/stats", "description": "작업실적 통계 조회" } ], "requiredVerifications": [ { "id": 1, "name": "파일 다운로드", "steps": [12], "criteria": "Network API 호출 + 실제 다운로드 확인" }, { "id": 3, "name": "검색/필터", "steps": [5, 6, 7, 8], "criteria": "기간 필터 동작" }, { "id": 5, "name": "목업 페이지 감지", "steps": [2], "criteria": "테이블, 필터, 다운로드 버튼 존재" } ], "rollbackPlan": { "note": "조회 전용 페이지로 데이터 변경 없음" } }