{ "id": "hr-employee", "name": "사원관리 테스트", "screenshotPolicy": { "onErrorOnly": true, "captureOn": ["error", "fail", "timeout", "404", "500", "blocked"] }, "description": "인사관리 > 사원관리 메뉴의 사원 조회/등록/수정/삭제 전체 CRUD 테스트", "baseUrl": "https://dev.codebridge-x.com", "menuNavigation": { "level1": "인사관리", "level2": "사원관리", "expectedUrl": "/hr/employee-management", "searchWithinParent": true, "closeOtherMenus": true }, "auth": { "username": "TestUser5", "password": "password123!" }, "testData": { "create": { "name": "E2E_TEST_사원", "email": "e2e_test@test.com", "userId": "e2e_test_user", "password": "Test1234!", "department": "개발팀", "position": "사원", "hireDate": "2026-02-03" }, "update": { "position": "대리", "department": "기획팀" } }, "steps": [ { "id": 1, "name": "메뉴 진입: 인사관리 > 사원관리", "action": "menu_navigate", "level1": "인사관리", "level2": "사원관리", "expected": { "url_contains": "/hr/employee", "visible": ["사원관리", "사원"] } }, { "id": 2, "name": "필수 검증 #5: 목업 페이지 감지", "action": "verify_not_mockup", "checks": [ "사원 목록 표시", "검색 입력 필드 존재", "사원 등록 버튼 존재" ], "expected": "정상 페이지 (목업 아님)" }, { "id": 3, "name": "테이블 구조 확인", "action": "verify_table", "checks": [ "사원명 컬럼", "부서 컬럼", "직급 컬럼", "입사일 컬럼", "이메일 컬럼" ], "expected": "사원 테이블 컬럼 정상 표시" }, { "id": 4, "name": "검색 기능 테스트", "action": "click_if_exists", "target": "input[placeholder*='검색']", "value": "홍길동", "expected": { "data_filtered": true } }, { "id": 5, "phase": "CREATE", "name": "[CREATE] 사원 등록 버튼 클릭", "action": "click_if_exists", "target": "button:has-text('등록'), button:has-text('사원 등록'), button:has-text('추가')", "expected": { "modal_or_page": true, "title": "사원 등록" } }, { "id": 6, "phase": "CREATE", "name": "[CREATE] 사원 정보 입력", "action": "click_if_exists", "fields": [ {"name": "이름", "type": "text", "value": "E2E_TEST_사원_{timestamp}"}, {"name": "이메일", "type": "email", "value": "e2e_test_{timestamp}@test.com"}, {"name": "아이디", "type": "text", "value": "e2e_test_{timestamp}"}, {"name": "비밀번호", "type": "password", "value": "Test1234!"}, {"name": "비밀번호 확인", "type": "password", "value": "Test1234!"}, {"name": "부서", "type": "click_if_exists", "value": "개발팀"}, {"name": "직급", "type": "click_if_exists", "value": "사원"}, {"name": "입사일", "type": "date", "value": "2026-02-03"} ], "note": "타임스탬프로 고유성 보장" }, { "id": 7, "phase": "CREATE", "name": "[CREATE] 필수 검증 #2: 등록 저장", "action": "click_if_exists", "target": "button:has-text('저장'), button:has-text('등록')", "verify": { "url_maintained": true, "no_error_page": true, "api_call": "POST /api/v1/employees", "toast": "등록|완료|성공" }, "expected": "사원 등록 완료" }, { "id": "7-modal-close", "phase": "CREATE", "name": "[CREATE] 모달 닫기 확인", "action": "close_modal_if_open", "expected": "모달 닫힘" }, { "id": 8, "phase": "CREATE", "name": "[CREATE] 등록 결과 확인", "action": "verify_detail", "search": "E2E_TEST_사원", "expected": { "row_exists": true, "contains": ["E2E_TEST", "개발팀", "사원"] } }, { "id": 9, "phase": "READ", "name": "[READ] 사원 상세 페이지 진입", "action": "click_if_exists", "target": "table tbody tr:has-text('E2E_TEST')", "expected": { "url_contains": "/hr/employee", "visible": ["사원 상세", "수정", "삭제"] } }, { "id": 10, "phase": "READ", "name": "[READ] 상세 정보 확인", "action": "verify_detail", "checks": [ "이름: E2E_TEST_사원", "부서: 개발팀", "직급: 사원", "입사일: 2026-02-03" ], "expected": "입력한 데이터와 일치" }, { "id": 11, "phase": "UPDATE", "name": "[UPDATE] 수정 모드 진입", "action": "click_if_exists", "target": "button:has-text('수정')", "expected": { "url_contains": "mode=edit", "fields_editable": true } }, { "id": 12, "phase": "UPDATE", "name": "[UPDATE] 부서 변경", "action": "click_if_exists", "target": "select[name*='department'], [data-field='department']", "value": "기획팀" }, { "id": 13, "phase": "UPDATE", "name": "[UPDATE] 직급 변경", "action": "click_if_exists", "target": "select[name*='position'], [data-field='position']", "value": "대리" }, { "id": 14, "phase": "UPDATE", "name": "[UPDATE] 필수 검증 #2: 수정 저장", "action": "click_if_exists", "target": "button:has-text('저장')", "verify": { "url_maintained": true, "no_error_page": true, "api_call": "PUT /api/v1/employees/", "toast": "수정|완료|성공" }, "expected": "수정 완료" }, { "id": 15, "phase": "UPDATE", "name": "[UPDATE] 수정 결과 확인", "action": "verify_detail", "checks": [ "부서: 기획팀", "직급: 대리" ], "expected": "수정된 데이터 반영" }, { "id": 16, "phase": "DELETE", "name": "[DELETE] 삭제 버튼 클릭", "action": "click_if_exists", "target": "button:has-text('삭제')", "expected": { "confirm_dialog": true, "dialog_message": "삭제|정말|퇴사" } }, { "id": 17, "phase": "DELETE", "name": "[DELETE] 필수 검증 #6: 삭제 확인", "action": "click_if_exists", "target": "button:has-text('확인'), button:has-text('삭제')", "verify": { "api_call": "DELETE /api/v1/employees/", "toast": "삭제|퇴사|완료|성공", "redirect": "/hr/employee" }, "expected": "삭제 완료 및 목록 복귀" }, { "id": 18, "phase": "DELETE", "name": "[DELETE] 삭제 결과 확인", "action": "verify_detail", "search": "E2E_TEST_사원", "expected": { "row_exists": false, "message": "테스트 사원이 목록에서 제거됨" } } ], "expectedAPIs": [ { "method": "GET", "endpoint": "/api/v1/employees", "description": "사원 목록 조회" }, { "method": "POST", "endpoint": "/api/v1/employees", "description": "사원 등록" }, { "method": "GET", "endpoint": "/api/v1/employees/{id}", "description": "사원 상세 조회" }, { "method": "PUT", "endpoint": "/api/v1/employees/{id}", "description": "사원 수정" }, { "method": "DELETE", "endpoint": "/api/v1/employees/{id}", "description": "사원 삭제" } ], "requiredVerifications": [ { "id": 2, "name": "등록/저장 버튼", "steps": [7, 14], "criteria": "API 호출 + 성공 토스트 + 데이터 반영" }, { "id": 3, "name": "검색/필터", "steps": [4], "criteria": "검색 기능 동작" }, { "id": 5, "name": "목업 페이지 감지", "steps": [2], "criteria": "사원 목록, 등록 버튼, 검색 필드 존재" }, { "id": 6, "name": "삭제 기능", "steps": [16, 17, 18], "criteria": "DELETE API + 목록에서 제거" } ], "rollbackPlan": { "onCreateFail": "모달 닫기", "onUpdateFail": "테스트 사원 수동 삭제 필요", "onDeleteFail": "테스트 사원 수동 삭제 필요", "cleanupRequired": "E2E_TEST_ 접두사 사원은 테스트 데이터" } }