{ "id": "hr-vacation", "name": "휴가관리 테스트", "screenshotPolicy": { "onErrorOnly": true, "captureOn": [ "error", "fail", "timeout", "404", "500", "blocked" ] }, "description": "인사관리 > 휴가관리 메뉴의 휴가 신청/조회/수정/취소 전체 CRUD 테스트", "baseUrl": "https://dev.codebridge-x.com", "menuNavigation": { "level1": "인사관리", "level2": "휴가관리", "expectedUrl": "/hr/vacation-management", "searchWithinParent": true, "closeOtherMenus": true }, "auth": { "username": "TestUser5", "password": "password123!" }, "testData": { "create": { "vacationType": "연차", "startDate": "2026-02-10", "endDate": "2026-02-10", "reason": "E2E 자동화 테스트 휴가 신청" }, "update": { "reason": "E2E 수정된 휴가 사유" } }, "steps": [ { "id": 1, "name": "메뉴 진입: 인사관리 > 휴가관리", "action": "menu_navigate", "level1": "인사관리", "level2": "휴가관리", "expected": { "url_contains": "/hr/vacation", "visible": [ "휴가관리", "휴가" ] } }, { "id": 2, "name": "URL 검증", "action": "verify_url", "expected": { "url_contains": "/hr/vacation-management" } }, { "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, "name": "휴가 테이블 구조 확인", "action": "verify_table", "checks": [ "휴가 유형 컬럼", "시작일 컬럼", "종료일 컬럼", "상태 컬럼", "신청일 컬럼" ], "expected": "휴가 테이블 컬럼 정상 표시" }, { "id": 7, "name": "목록 필터 테스트", "action": "evaluate", "script": "(() => {\n const selects = document.querySelectorAll('select, [role=\"combobox\"], button[class*=\"select\"], button[class*=\"Select\"]');\n if (selects.length > 0) {\n return 'Filters found: ' + selects.length;\n }\n return 'No filter dropdowns (ok)';\n })()" }, { "id": 8, "phase": "CREATE", "name": "[CREATE] 휴가 신청 버튼 클릭", "action": "click_if_exists", "target": "button:has-text('신청'), button:has-text('휴가 신청'), button:has-text('추가')", "expected": { "modal": true, "modalTitle": "휴가 신청" } }, { "id": 9, "phase": "CREATE", "name": "[CREATE] 휴가 정보 입력", "action": "click_if_exists", "fields": [ { "name": "휴가 유형", "type": "select", "value": "연차" }, { "name": "시작일", "type": "date", "value": "2026-02-10" }, { "name": "종료일", "type": "date", "value": "2026-02-10" }, { "name": "사유", "type": "textarea", "value": "E2E 자동화 테스트 휴가 신청_{timestamp}" } ], "note": "타임스탬프로 고유성 보장", "target": "form, [role='dialog'], .modal" }, { "id": 10, "phase": "CREATE", "name": "[CREATE] 필수 검증 #2: 신청 저장", "action": "click_if_exists", "target": "button:has-text('신청'), button:has-text('저장'), button:has-text('확인')", "verify": { "url_maintained": true, "no_error_page": true, "api_call": "POST /api/v1/vacations", "toast": "신청|등록|완료|성공" }, "expected": "휴가 신청 완료" }, { "id": 11, "phase": "CREATE", "name": "[CREATE] 저장 완료 토스트 확인", "action": "verify_toast", "verify": { "contains": "등록|완료|성공|저장" } }, { "id": 12, "phase": "CREATE", "name": "[CREATE] 모달 닫기 확인", "action": "close_modal_if_open", "expected": "모달 닫힘" }, { "id": 13, "phase": "CREATE", "name": "[CREATE] 신청 결과 확인", "action": "verify_detail", "search": "E2E 자동화 테스트 휴가", "expected": { "row_exists": true, "contains": [ "연차", "대기", "2026-02-10" ] } }, { "id": 14, "phase": "READ", "name": "[READ] 휴가 상세 페이지 진입", "action": "click_if_exists", "target": "table tbody tr:has-text('E2E')", "expected": { "url_contains": "/hr/vacation", "visible": [ "휴가 상세", "수정", "취소" ] } }, { "id": 15, "phase": "READ", "name": "[READ] 상세 정보 확인", "action": "verify_detail", "checks": [ "휴가 유형: 연차", "시작일: 2026-02-10", "종료일: 2026-02-10", "상태: 대기", "사유: E2E 자동화 테스트" ], "expected": "입력한 데이터와 일치" }, { "id": 16, "phase": "UPDATE", "name": "[UPDATE] 수정 모드 진입", "action": "click_if_exists", "target": "button:has-text('수정')", "expected": { "modal_or_edit_mode": true, "fields_editable": true } }, { "id": 17, "phase": "UPDATE", "name": "[UPDATE] 사유 수정", "action": "click_if_exists", "target": "textarea[name*='reason'], input[placeholder*='사유']", "value": "E2E 수정된 휴가 사유_{timestamp}", "clear": true }, { "id": 18, "phase": "UPDATE", "name": "[UPDATE] 필수 검증 #2: 수정 저장", "action": "click_if_exists", "target": "button:has-text('저장'), button:has-text('수정')", "verify": { "url_maintained": true, "no_error_page": true, "api_call": "PUT /api/v1/vacations/", "toast": "수정|완료|성공" }, "expected": "수정 완료" }, { "id": 19, "phase": "UPDATE", "name": "[UPDATE] 수정 완료 토스트 확인", "action": "verify_toast", "verify": { "contains": "수정|완료|성공|저장" } }, { "id": 20, "phase": "UPDATE", "name": "[UPDATE] 수정 결과 확인", "action": "verify_detail", "checks": [ "사유: E2E 수정된 휴가" ], "expected": "수정된 데이터 반영" }, { "id": 21, "phase": "DELETE", "name": "[DELETE] 취소 버튼 클릭", "action": "click_if_exists", "target": "button:has-text('취소'), button:has-text('신청 취소')", "expected": { "confirm_dialog": true, "dialog_message": "취소|정말" } }, { "id": 22, "phase": "DELETE", "name": "[DELETE] 필수 검증 #6: 취소 확인", "action": "click_if_exists", "target": "button:has-text('확인'), button:has-text('예')", "verify": { "api_call": "DELETE /api/v1/vacations/", "toast": "취소|삭제|완료|성공", "redirect": "/hr/vacation" }, "expected": "휴가 취소 완료 및 목록 복귀" }, { "id": 23, "phase": "DELETE", "name": "[DELETE] 취소 결과 확인", "action": "verify_detail", "search": "E2E 수정된 휴가", "expected": { "row_exists": false, "message": "테스트 휴가 신청이 목록에서 제거됨" } }, { "id": 24, "phase": "VERIFY", "name": "[VERIFY] 연차 잔여일 확인", "action": "verify_elements", "checks": [ "잔여 연차가 원래 값으로 복원" ], "expected": "휴가 취소 후 연차 복원 확인" }, { "id": 25, "name": "콘솔 에러 확인", "action": "verify_element", "target": "body" } ], "expectedAPIs": [ { "method": "GET", "endpoint": "/api/v1/vacations", "description": "휴가 목록 조회" }, { "method": "GET", "endpoint": "/api/v1/vacations/summary", "description": "휴가 현황 조회" }, { "method": "POST", "endpoint": "/api/v1/vacations", "description": "휴가 신청" }, { "method": "GET", "endpoint": "/api/v1/vacations/{id}", "description": "휴가 상세 조회" }, { "method": "PUT", "endpoint": "/api/v1/vacations/{id}", "description": "휴가 수정" }, { "method": "DELETE", "endpoint": "/api/v1/vacations/{id}", "description": "휴가 취소" } ], "requiredVerifications": [ { "id": 2, "name": "등록/저장 버튼", "steps": [ 7, 13 ], "criteria": "API 호출 + 성공 토스트 + 데이터 반영" }, { "id": 5, "name": "목업 페이지 감지", "steps": [ 2 ], "criteria": "휴가 목록, 신청 버튼, 현황 카드 존재" }, { "id": 6, "name": "삭제 기능", "steps": [ 15, 16, 17 ], "criteria": "DELETE API + 목록에서 제거 + 연차 복원" } ], "rollbackPlan": { "onCreateFail": "모달 닫기 → 다음 테스트 영향 없음", "onUpdateFail": "테스트 휴가 수동 취소 필요", "onDeleteFail": "테스트 휴가 수동 취소 필요", "cleanupRequired": "E2E_ 접두사 휴가 신청은 테스트 데이터" } }