{ "id": "worker-screen", "name": "작업자 화면 테스트", "screenshotPolicy": { "onErrorOnly": true, "captureOn": ["error", "fail", "timeout", "404", "500", "blocked"] }, "description": "생산관리 > 작업자 화면 페이지의 내 작업 목록 조회 기능을 테스트하는 E2E 테스트", "baseUrl": "https://dev.codebridge-x.com", "url": "/production/worker", "navigation": { "targetUrl": "/production/worker", "urlPattern": "/production/worker|/ko/production/worker", "menuHints": ["작업자 화면", "작업자화면", "생산관리"] }, "menuNavigation": { "level1": "생산관리", "level2": "작업자 화면", "expectedUrl": "/production/worker" }, "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/worker", "expectedUrl": "/production/worker" }, "timeout": 90000, "tags": ["production", "worker", "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/worker", "visible": ["작업자 화면", "내 작업 목록"] }, "fallback": { "type": "navigate", "url": "/production/worker" } }, { "id": "step-2", "name": "페이지 구조 확인", "description": "통계 카드와 작업 목록 구조 확인", "verify": { "visible": ["할일", "작업중", "완료", "긴급"], "elements": ["내 작업 목록", "납기일순"] } }, { "id": "step-3", "name": "필수 검증 #3: 정렬 옵션 확인", "description": "정렬 드롭다운 옵션 확인", "actions": [ { "type": "click", "target": "납기일순", "role": "combobox" } ], "expect": { "optionsVisible": true } }, { "id": "step-4", "name": "정렬 옵션 닫기", "description": "ESC 키로 드롭다운 닫기", "actions": [ { "type": "press", "key": "Escape" }, { "type": "wait", "duration": 300 } ] }, { "id": "step-5", "name": "빈 상태 확인", "description": "배정된 작업이 없을 때 빈 상태 메시지 확인", "verify": { "emptyStateVisible": "배정된 작업이 없습니다" } }, { "id": "step-6", "name": "통계 카드 값 확인", "description": "할일/작업중/완료/긴급 카운트 표시 확인", "verify": { "statsCards": ["할일", "작업중", "완료", "긴급"], "countsDisplayed": true } } ], "assertions": [ { "type": "url", "expected": "/production/worker", "message": "작업자 화면 페이지에 머물러야 함" }, { "type": "elementExists", "selector": "text=내 작업 목록", "message": "내 작업 목록 제목이 표시되어야 함" } ], "mandatoryVerifications": { "description": "E2E_TEST_CONFIG.md 기준 필수 검증 항목", "items": [ { "id": 3, "name": "검색/필터", "trigger": "정렬 드롭다운", "verification": "옵션 표시 확인", "failCondition": "드롭다운 미동작" } ] }, "notes": { "testScope": "작업자 본인에게 배정된 작업 목록 조회 테스트", "pageType": "조회 전용 (작업지시 관리에서 배정된 작업 표시)", "statsCards": ["할일", "작업중", "완료", "긴급"], "sortOptions": ["납기일순"], "prerequisites": "로그인된 사용자, 작업자에게 배정된 작업 존재 시 목록 표시" } }