{ "id": "work-performance", "name": "작업실적 테스트", "screenshotPolicy": { "onErrorOnly": true, "captureOn": ["error", "fail", "timeout", "404", "500", "blocked"] }, "description": "생산관리 > 작업실적 페이지의 작업실적 조회 및 엑셀 다운로드 기능을 테스트하는 E2E 테스트", "baseUrl": "https://dev.codebridge-x.com", "url": "/production/performance", "navigation": { "targetUrl": "/production/work-results", "urlPattern": "/production/work-results|/ko/production/work-results|/production/performance", "menuHints": ["작업실적", "작업 실적", "생산관리"] }, "menuNavigation": { "level1": "생산관리", "level2": "작업실적", "expectedUrl": "/production/performance" }, "menuNavigationEnhanced": { "strategy": "scroll-and-search", "sidebar": { "scrollContainer": ".sidebar-scroll", "scrollStep": 200, "maxScrollAttempts": 5, "waitAfterScroll": 300 }, "level1": { "text": "생산관리", "expandable": true, "waitAfterClick": 500 }, "level2": { "text": "작업실적", "waitAfterClick": 300 }, "fallbackUrl": "/production/performance", "expectedUrl": "/production/performance" }, "timeout": 90000, "tags": ["production", "performance", "read-only"], "login": { "url": "https://dev.codebridge-x.com/login", "credentials": { "id": "TestUser5", "password": "password123!" }, "successIndicator": "대시보드" }, "steps": [ { "id": "step-0", "name": "사이드바 메뉴 전체 펼치기", "description": "모두 펼치기 버튼을 클릭하여 전체 메뉴를 펼친 후 메뉴 탐색 준비", "actions": [ { "type": "evaluate", "script": "document.querySelector('.sidebar-scroll')?.scrollTo({top:0,behavior:'instant'})" }, { "type": "wait", "duration": 300 }, { "type": "evaluate", "script": "Array.from(document.querySelectorAll('button')).find(b => b.innerText?.includes('모두 펼치기'))?.click()" }, { "type": "wait", "duration": 2000 } ] }, { "id": "step-1", "name": "생산관리 메뉴 진입", "description": "생산관리 > 작업실적 메뉴로 이동", "actions": [ { "type": "scrollAndFind", "container": ".sidebar-scroll", "target": "생산관리", "scrollStep": 200, "maxAttempts": 5 }, { "type": "click", "target": "생산관리" }, { "type": "wait", "duration": 500 }, { "type": "click", "target": "작업실적" } ], "expect": { "url": "/production/performance", "visible": ["작업실적 조회", "엑셀 다운로드"] }, "fallback": { "type": "navigate", "url": "/production/performance" } }, { "id": "step-2", "name": "페이지 구조 확인", "description": "통계 카드와 테이블 구조 확인", "verify": { "visible": ["총 생산수량", "양품수량", "불량수량", "불량률"], "tableColumns": ["번호", "로트번호", "작업일", "작업지시번호", "공정", "품목명", "규격", "생산수량", "양품수량", "불량수량", "불량률", "검사", "포장", "작업자"] } }, { "id": "step-3", "name": "필수 검증 #1: 엑셀 다운로드 버튼 확인", "description": "엑셀 다운로드 버튼 존재 및 동작 확인", "actions": [ { "type": "click", "target": "엑셀 다운로드" }, { "type": "wait", "duration": 1000 } ], "expect": { "downloadTriggered": true, "noErrorPage": true }, "verify": { "apiCall": "GET /api/production/performance/export" } }, { "id": "step-4", "name": "빈 상태 확인", "description": "데이터가 없을 때 빈 상태 메시지 확인", "verify": { "emptyStateVisible": "검색 결과가 없습니다" } }, { "id": "step-5", "name": "테이블 헤더 정렬 확인", "description": "테이블 컬럼 헤더가 올바르게 표시되는지 확인", "verify": { "tableHeadersVisible": ["로트번호", "작업일", "작업지시번호", "공정", "품목명"] } } ], "assertions": [ { "type": "url", "expected": "/production/performance", "message": "작업실적 페이지에 머물러야 함" }, { "type": "elementExists", "selector": "button:has-text('엑셀 다운로드')", "message": "엑셀 다운로드 버튼이 표시되어야 함" } ], "mandatoryVerifications": { "description": "E2E_TEST_CONFIG.md 기준 필수 검증 항목", "items": [ { "id": 1, "name": "파일 다운로드", "trigger": "엑셀 다운로드 버튼", "verification": "Network API + 실제 다운로드 확인", "failCondition": "Console LOG만으로 PASS 금지" } ] }, "notes": { "testScope": "작업실적 조회 및 엑셀 다운로드 테스트", "pageType": "조회 전용 (생산 과정에서 자동 생성된 데이터)", "statsCards": ["총 생산수량", "양품수량", "불량수량", "불량률"], "tableColumns": ["번호", "로트번호", "작업일", "작업지시번호", "공정", "품목명", "규격", "생산수량", "양품수량", "불량수량", "불량률", "검사", "포장", "작업자"], "prerequisites": "로그인된 사용자, 작업실적 데이터 존재 시 테스트 가능" } }