{ "id": "settings-work-schedule", "name": "근무일정 테스트", "screenshotPolicy": { "onErrorOnly": true, "captureOn": [ "error", "fail", "timeout", "404", "500", "blocked" ] }, "description": "설정 > 근무일정 메뉴의 근무일정 조회/수정/저장 기능 테스트", "baseUrl": "https://dev.codebridge-x.com", "menuNavigation": { "level1": "설정", "level2": "근무일정", "expectedUrl": "/settings/work-schedule", "searchWithinParent": true, "closeOtherMenus": true }, "auth": { "username": "TestUser5", "password": "password123!" }, "testData": { "update": { "workDays": "월,화,수,목,금", "startTime": "09:00", "endTime": "18:00", "breakTime": "60" } }, "steps": [ { "id": 1, "name": "메뉴 진입: 설정 > 근무일정", "action": "menu_navigate", "level1": "설정", "level2": "근무일정", "expected": { "url_contains": "/settings/work-schedule", "visible": [ "근무일정", "근무" ] } }, { "id": 2, "name": "URL 검증", "action": "verify_url", "expected": { "url_contains": "/settings/work-schedule" } }, { "id": 3, "name": "필수 검증 #5: 목업 페이지 감지", "action": "verify_not_mockup", "checks": [ "근무일정 설정 폼 표시", "근무일 선택 가능", "저장 버튼 존재" ], "expected": "정상 페이지 (목업 아님)" }, { "id": 4, "name": "통계 카드 확인", "action": "evaluate", "script": "(() => {\n const cards = document.querySelectorAll('[class*=\"card\"], [class*=\"Card\"], [class*=\"stat\"], [class*=\"Stat\"], [class*=\"summary\"]');\n const texts = Array.from(cards).map(c => c.innerText?.substring(0, 30)).filter(Boolean);\n return texts.length > 0 ? 'Stats: ' + texts.length + ' cards found' : 'No stat cards (ok)';\n })()" }, { "id": 5, "name": "근무일정 폼 구조 확인", "action": "verify_elements", "checks": [ "근무일 선택 (월~일)", "출근 시간 입력", "퇴근 시간 입력", "휴게 시간 설정" ], "expected": "근무일정 폼 정상 표시" }, { "id": 6, "phase": "READ", "name": "[READ] 현재 근무일정 확인", "action": "verify_detail", "checks": [ "근무일 표시", "출근 시간 표시", "퇴근 시간 표시" ], "expected": "현재 근무일정 정상 표시" }, { "id": 7, "phase": "UPDATE", "name": "[UPDATE] 출근 시간 확인", "action": "click", "target": "input[type='time']:first-of-type, input[placeholder*='출근'], input[placeholder*='시작'], button:has-text('09:00'), button:has-text('09')" }, { "id": 8, "phase": "UPDATE", "name": "[UPDATE] 퇴근 시간 확인", "action": "click", "target": "input[type='time']:last-of-type, input[placeholder*='퇴근'], input[placeholder*='종료'], button:has-text('18:00'), button:has-text('18')" }, { "id": 9, "phase": "UPDATE", "name": "[UPDATE] 휴게 시간 설정", "action": "fill", "target": "input[name*='break'], input[placeholder*='휴게']", "value": "60" }, { "id": 10, "phase": "UPDATE", "name": "[UPDATE] 필수 검증 #2: 근무일정 저장", "action": "click", "target": "button:has-text('저장'), button:has-text('적용')", "verify": { "url_maintained": true, "no_error_page": true, "api_call": "PUT /api/v1/settings/work-schedule", "toast": "저장|적용|완료|성공" }, "expected": "근무일정 저장 완료" }, { "id": 11, "phase": "UPDATE", "name": "[UPDATE] 저장 결과 확인", "action": "verify_detail", "checks": [ "출근: 09:00", "퇴근: 18:00", "휴게: 60분" ], "expected": "수정된 일정 반영" }, { "id": 12, "name": "휴무일 설정 확인", "action": "verify_elements", "checks": [ "토요일 휴무 설정", "일요일 휴무 설정", "공휴일 자동 적용" ], "expected": "휴무일 설정 표시" }, { "id": 13, "name": "주간 근무시간 계산 확인", "action": "verify_elements", "checks": [ "주간 근무시간 합계 표시" ], "expected": "근무시간 자동 계산" }, { "id": 14, "name": "페이지네이션 확인", "action": "evaluate", "script": "(() => {\n const paginationSels = ['[class*=\"pagination\"]', '[class*=\"Pagination\"]', 'nav[aria-label*=\"page\"]', 'button[aria-label*=\"page\"]', '[class*=\"pager\"]'];\n for (const sel of paginationSels) {\n const el = document.querySelector(sel);\n if (el) return 'Pagination found';\n }\n const pageButtons = Array.from(document.querySelectorAll('button')).filter(b => /^\\d+$/.test(b.innerText?.trim()));\n if (pageButtons.length > 0) return 'Page buttons found: ' + pageButtons.length;\n return 'No pagination (ok - may have single page)';\n })()" }, { "id": 15, "name": "콘솔 에러 확인", "action": "verify_element", "target": "body" }, { "id": 16, "name": "부서별 근무일정 확인", "action": "verify_elements", "checks": [ "부서별 일정 설정 가능" ], "expected": "부서별 일정 표시" } ], "expectedAPIs": [ { "method": "GET", "endpoint": "/api/v1/settings/work-schedule", "description": "근무일정 조회" }, { "method": "PUT", "endpoint": "/api/v1/settings/work-schedule", "description": "근무일정 수정" }, { "method": "GET", "endpoint": "/api/v1/holidays", "description": "공휴일 목록 조회" } ], "requiredVerifications": [ { "id": 2, "name": "저장 버튼", "steps": [ 8 ], "criteria": "API 호출 + 성공 토스트 + 설정 반영" }, { "id": 5, "name": "목업 페이지 감지", "steps": [ 2 ], "criteria": "근무일정 폼, 저장 버튼 존재" } ], "rollbackPlan": { "onUpdateFail": "페이지 새로고침으로 원래 값 복원", "note": "설정 페이지는 수정 후 원복 테스트 권장" } }