refactor: accounting-withdrawal, hr-vacation, hr-attendance-admin 시나리오 A등급으로 개선
- accounting-withdrawal: C등급→A등급 (4→18 steps, CRUD 전체) - hr-vacation: C등급→A등급 (5→18 steps, 휴가 신청/수정/취소) - hr-attendance-admin: B등급→A등급 (6→20 steps, 필터/검색/수정/통계/엑셀)
This commit is contained in:
@@ -5,17 +5,31 @@
|
||||
"onErrorOnly": true,
|
||||
"captureOn": ["error", "fail", "timeout", "404", "500", "blocked"]
|
||||
},
|
||||
"description": "회계관리 > 출금관리 메뉴의 출금 조회/등록 기능 테스트",
|
||||
"description": "회계관리 > 출금관리 메뉴의 출금 조회/등록/수정/삭제 전체 CRUD 테스트",
|
||||
"baseUrl": "https://dev.codebridge-x.com",
|
||||
"menuNavigation": {
|
||||
"level1": "회계관리",
|
||||
"level2": "출금관리",
|
||||
"expectedUrl": "/accounting/withdrawals"
|
||||
"expectedUrl": "/accounting/withdrawals",
|
||||
"searchWithinParent": true,
|
||||
"closeOtherMenus": true
|
||||
},
|
||||
"auth": {
|
||||
"username": "TestUser5",
|
||||
"password": "password123!"
|
||||
},
|
||||
"testData": {
|
||||
"create": {
|
||||
"vendorName": "E2E_TEST_출금거래처",
|
||||
"amount": "50000",
|
||||
"withdrawalMethod": "계좌이체",
|
||||
"memo": "E2E 자동화 테스트 출금"
|
||||
},
|
||||
"update": {
|
||||
"amount": "75000",
|
||||
"memo": "E2E 수정된 출금 메모"
|
||||
}
|
||||
},
|
||||
"steps": [
|
||||
{
|
||||
"id": 1,
|
||||
@@ -34,38 +48,258 @@
|
||||
"action": "verify_not_mockup",
|
||||
"checks": [
|
||||
"출금 목록 표시",
|
||||
"출금 등록 버튼 존재"
|
||||
"출금 등록 버튼 존재",
|
||||
"검색/필터 기능 존재"
|
||||
],
|
||||
"expected": "정상 페이지 (목업 아님)"
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"name": "출금 테이블 확인",
|
||||
"name": "출금 테이블 구조 확인",
|
||||
"action": "verify_table",
|
||||
"checks": [
|
||||
"출금일 컬럼",
|
||||
"거래처 컬럼",
|
||||
"금액 컬럼",
|
||||
"출금방법 컬럼"
|
||||
"출금방법 컬럼",
|
||||
"상태 컬럼"
|
||||
],
|
||||
"expected": "출금 테이블 표시"
|
||||
"expected": "출금 테이블 컬럼 정상 표시"
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"name": "출금 등록 버튼 확인",
|
||||
"action": "verify_elements",
|
||||
"checks": [
|
||||
"출금 등록 버튼 존재"
|
||||
"name": "검색 기능 테스트",
|
||||
"action": "search",
|
||||
"target": "input[placeholder*='검색']",
|
||||
"value": "테스트",
|
||||
"expected": {
|
||||
"data_filtered": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"phase": "CREATE",
|
||||
"name": "[CREATE] 출금 등록 버튼 클릭",
|
||||
"action": "click",
|
||||
"target": "button:has-text('등록'), button:has-text('출금 등록'), button:has-text('추가')",
|
||||
"expected": {
|
||||
"modal": true,
|
||||
"modalTitle": "출금 등록"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"phase": "CREATE",
|
||||
"name": "[CREATE] 출금 정보 입력",
|
||||
"action": "fill_form",
|
||||
"fields": [
|
||||
{"name": "거래처", "type": "select", "value": "E2E_TEST_출금거래처"},
|
||||
{"name": "출금일", "type": "date", "value": "2026-02-03"},
|
||||
{"name": "금액", "type": "number", "value": "50000"},
|
||||
{"name": "출금방법", "type": "select", "value": "계좌이체"},
|
||||
{"name": "메모", "type": "text", "value": "E2E 자동화 테스트 출금_{timestamp}"}
|
||||
],
|
||||
"expected": "등록 버튼 표시"
|
||||
"note": "타임스탬프로 고유성 보장"
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"phase": "CREATE",
|
||||
"name": "[CREATE] 필수 검증 #2: 등록 저장",
|
||||
"action": "click",
|
||||
"target": "button:has-text('저장'), button:has-text('등록')",
|
||||
"critical": true,
|
||||
"verify": {
|
||||
"url_maintained": true,
|
||||
"no_error_page": true,
|
||||
"api_call": "POST /api/v1/withdrawals",
|
||||
"toast": "등록|완료|성공"
|
||||
},
|
||||
"expected": "출금 등록 완료"
|
||||
},
|
||||
{
|
||||
"id": "7-modal-close",
|
||||
"phase": "CREATE",
|
||||
"name": "[CREATE] 모달 닫기 확인",
|
||||
"action": "close_modal_if_open",
|
||||
"expected": "모달 닫힘"
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"phase": "CREATE",
|
||||
"name": "[CREATE] 등록 결과 확인",
|
||||
"action": "verify_data",
|
||||
"search": "E2E 자동화 테스트 출금",
|
||||
"expected": {
|
||||
"row_exists": true,
|
||||
"contains": ["E2E", "50,000"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 9,
|
||||
"phase": "READ",
|
||||
"name": "[READ] 출금 상세 페이지 진입",
|
||||
"action": "click",
|
||||
"target": "table tbody tr:has-text('E2E')",
|
||||
"expected": {
|
||||
"url_contains": "/accounting/withdrawals/",
|
||||
"visible": ["출금 상세", "수정", "삭제"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 10,
|
||||
"phase": "READ",
|
||||
"name": "[READ] 상세 정보 확인",
|
||||
"action": "verify_detail",
|
||||
"checks": [
|
||||
"금액: 50,000",
|
||||
"출금방법: 계좌이체",
|
||||
"메모: E2E 자동화 테스트"
|
||||
],
|
||||
"expected": "입력한 데이터와 일치"
|
||||
},
|
||||
{
|
||||
"id": 11,
|
||||
"phase": "UPDATE",
|
||||
"name": "[UPDATE] 수정 모드 진입",
|
||||
"action": "click",
|
||||
"target": "button:has-text('수정')",
|
||||
"expected": {
|
||||
"url_contains": "mode=edit",
|
||||
"fields_editable": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 12,
|
||||
"phase": "UPDATE",
|
||||
"name": "[UPDATE] 금액 수정",
|
||||
"action": "fill",
|
||||
"target": "input[name*='amount'], input[placeholder*='금액']",
|
||||
"value": "75000",
|
||||
"clear": true
|
||||
},
|
||||
{
|
||||
"id": 13,
|
||||
"phase": "UPDATE",
|
||||
"name": "[UPDATE] 메모 수정",
|
||||
"action": "fill",
|
||||
"target": "textarea[name*='memo'], input[placeholder*='메모']",
|
||||
"value": "E2E 수정된 출금 메모_{timestamp}",
|
||||
"clear": true
|
||||
},
|
||||
{
|
||||
"id": 14,
|
||||
"phase": "UPDATE",
|
||||
"name": "[UPDATE] 필수 검증 #2: 수정 저장",
|
||||
"action": "click",
|
||||
"target": "button:has-text('저장')",
|
||||
"critical": true,
|
||||
"verify": {
|
||||
"url_maintained": true,
|
||||
"no_error_page": true,
|
||||
"api_call": "PUT /api/v1/withdrawals/",
|
||||
"toast": "수정|완료|성공"
|
||||
},
|
||||
"expected": "수정 완료"
|
||||
},
|
||||
{
|
||||
"id": 15,
|
||||
"phase": "UPDATE",
|
||||
"name": "[UPDATE] 수정 결과 확인",
|
||||
"action": "verify_detail",
|
||||
"checks": [
|
||||
"금액: 75,000",
|
||||
"메모: E2E 수정된 출금"
|
||||
],
|
||||
"expected": "수정된 데이터 반영"
|
||||
},
|
||||
{
|
||||
"id": 16,
|
||||
"phase": "DELETE",
|
||||
"name": "[DELETE] 삭제 버튼 클릭",
|
||||
"action": "click",
|
||||
"target": "button:has-text('삭제')",
|
||||
"expected": {
|
||||
"confirm_dialog": true,
|
||||
"dialog_message": "삭제|정말"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 17,
|
||||
"phase": "DELETE",
|
||||
"name": "[DELETE] 필수 검증 #6: 삭제 확인",
|
||||
"action": "click",
|
||||
"target": "button:has-text('확인'), button:has-text('삭제')",
|
||||
"critical": true,
|
||||
"verify": {
|
||||
"api_call": "DELETE /api/v1/withdrawals/",
|
||||
"toast": "삭제|완료|성공",
|
||||
"redirect": "/accounting/withdrawals"
|
||||
},
|
||||
"expected": "삭제 완료 및 목록 복귀"
|
||||
},
|
||||
{
|
||||
"id": 18,
|
||||
"phase": "DELETE",
|
||||
"name": "[DELETE] 삭제 결과 확인",
|
||||
"action": "verify_data",
|
||||
"search": "E2E 수정된 출금",
|
||||
"expected": {
|
||||
"row_exists": false,
|
||||
"message": "테스트 데이터가 목록에서 제거됨"
|
||||
}
|
||||
}
|
||||
],
|
||||
"expectedAPIs": [
|
||||
{
|
||||
"method": "GET",
|
||||
"endpoint": "/api/v1/withdrawals",
|
||||
"description": "출금 목록 조회"
|
||||
},
|
||||
{
|
||||
"method": "POST",
|
||||
"endpoint": "/api/v1/withdrawals",
|
||||
"description": "출금 등록"
|
||||
},
|
||||
{
|
||||
"method": "GET",
|
||||
"endpoint": "/api/v1/withdrawals/{id}",
|
||||
"description": "출금 상세 조회"
|
||||
},
|
||||
{
|
||||
"method": "PUT",
|
||||
"endpoint": "/api/v1/withdrawals/{id}",
|
||||
"description": "출금 수정"
|
||||
},
|
||||
{
|
||||
"method": "DELETE",
|
||||
"endpoint": "/api/v1/withdrawals/{id}",
|
||||
"description": "출금 삭제"
|
||||
}
|
||||
],
|
||||
"requiredVerifications": [
|
||||
{
|
||||
"id": 2,
|
||||
"name": "등록/저장 버튼",
|
||||
"steps": [7, 14],
|
||||
"criteria": "API 호출 + 성공 토스트 + 데이터 반영"
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"name": "목업 페이지 감지",
|
||||
"steps": [2],
|
||||
"criteria": "출금 목록, 등록 버튼 확인"
|
||||
"criteria": "출금 목록, 등록 버튼, 필터 존재"
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"name": "삭제 기능",
|
||||
"steps": [16, 17, 18],
|
||||
"criteria": "DELETE API + 목록에서 제거"
|
||||
}
|
||||
]
|
||||
],
|
||||
"rollbackPlan": {
|
||||
"onCreateFail": "모달 닫기 → 다음 테스트 영향 없음",
|
||||
"onUpdateFail": "테스트 데이터 수동 삭제 필요",
|
||||
"onDeleteFail": "테스트 데이터 수동 삭제 필요",
|
||||
"cleanupRequired": "E2E_TEST_ 접두사 데이터는 테스트 데이터"
|
||||
}
|
||||
}
|
||||
|
||||
@@ -5,17 +5,24 @@
|
||||
"onErrorOnly": true,
|
||||
"captureOn": ["error", "fail", "timeout", "404", "500", "blocked"]
|
||||
},
|
||||
"description": "인사관리 > 근태관리 메뉴의 관리자용 근태 관리 기능 테스트",
|
||||
"description": "인사관리 > 근태관리 메뉴의 관리자용 근태 조회/수정/통계 기능 테스트",
|
||||
"baseUrl": "https://dev.codebridge-x.com",
|
||||
"menuNavigation": {
|
||||
"level1": "인사관리",
|
||||
"level2": "근태관리",
|
||||
"expectedUrl": "/hr/attendance-management"
|
||||
"expectedUrl": "/hr/attendance-management",
|
||||
"searchWithinParent": true,
|
||||
"closeOtherMenus": true
|
||||
},
|
||||
"auth": {
|
||||
"username": "TestUser5",
|
||||
"password": "password123!"
|
||||
},
|
||||
"testData": {
|
||||
"searchEmployee": "홍길동",
|
||||
"dateFilter": "2026-02-03",
|
||||
"updateNote": "E2E 테스트 근태 수정"
|
||||
},
|
||||
"steps": [
|
||||
{
|
||||
"id": 1,
|
||||
@@ -35,58 +42,270 @@
|
||||
"checks": [
|
||||
"사원별 근태 목록 표시",
|
||||
"날짜 필터 존재",
|
||||
"검색 기능 존재"
|
||||
"검색 기능 존재",
|
||||
"통계 또는 요약 정보"
|
||||
],
|
||||
"expected": "정상 페이지 (목업 아님)"
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"name": "근태 테이블 확인",
|
||||
"name": "근태 통계 카드 확인",
|
||||
"action": "verify_elements",
|
||||
"checks": [
|
||||
"출근 현황 카드",
|
||||
"지각 현황 카드",
|
||||
"결근 현황 카드"
|
||||
],
|
||||
"expected": "근태 통계 카드 정상 표시"
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"name": "근태 테이블 구조 확인",
|
||||
"action": "verify_table",
|
||||
"checks": [
|
||||
"사원명 컬럼",
|
||||
"부서 컬럼",
|
||||
"날짜 컬럼",
|
||||
"출근시간 컬럼",
|
||||
"퇴근시간 컬럼",
|
||||
"상태 컬럼"
|
||||
],
|
||||
"expected": "근태 테이블 표시"
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"name": "날짜 필터 테스트",
|
||||
"action": "click",
|
||||
"target": "input[type='date']",
|
||||
"expected": "날짜 선택 가능"
|
||||
"expected": "근태 테이블 컬럼 정상 표시"
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"name": "검색 기능 테스트",
|
||||
"action": "fill",
|
||||
"target": "input[placeholder*='검색']",
|
||||
"value": "홍길동",
|
||||
"expected": "검색어 입력됨"
|
||||
"phase": "FILTER",
|
||||
"name": "[FILTER] 날짜 필터 선택",
|
||||
"action": "click",
|
||||
"target": "input[type='date'], button:has-text('날짜')",
|
||||
"expected": {
|
||||
"calendar_or_datepicker": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"name": "검색 초기화",
|
||||
"phase": "FILTER",
|
||||
"name": "[FILTER] 오늘 날짜 선택",
|
||||
"action": "fill",
|
||||
"target": "input[type='date']",
|
||||
"value": "2026-02-03",
|
||||
"expected": {
|
||||
"data_filtered": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"phase": "FILTER",
|
||||
"name": "[FILTER] 필터 결과 확인",
|
||||
"action": "verify_data",
|
||||
"search": "2026-02-03",
|
||||
"expected": {
|
||||
"row_exists": true,
|
||||
"filtered_by_date": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"phase": "SEARCH",
|
||||
"name": "[SEARCH] 사원명 검색",
|
||||
"action": "fill",
|
||||
"target": "input[placeholder*='검색'], input[placeholder*='사원']",
|
||||
"value": "홍길동",
|
||||
"expected": {
|
||||
"search_input": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 9,
|
||||
"phase": "SEARCH",
|
||||
"name": "[SEARCH] 검색 결과 확인",
|
||||
"action": "verify_data",
|
||||
"search": "홍길동",
|
||||
"expected": {
|
||||
"row_exists": true,
|
||||
"filtered_by_name": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 10,
|
||||
"phase": "SEARCH",
|
||||
"name": "[SEARCH] 검색 초기화",
|
||||
"action": "clear",
|
||||
"target": "input[placeholder*='검색']",
|
||||
"expected": "검색어 삭제"
|
||||
"target": "input[placeholder*='검색'], input[placeholder*='사원']",
|
||||
"expected": {
|
||||
"all_data_shown": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 11,
|
||||
"phase": "READ",
|
||||
"name": "[READ] 근태 상세 보기",
|
||||
"action": "click",
|
||||
"target": "table tbody tr:first-child",
|
||||
"expected": {
|
||||
"detail_modal_or_page": true,
|
||||
"visible": ["출근시간", "퇴근시간", "근무시간"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 12,
|
||||
"phase": "READ",
|
||||
"name": "[READ] 상세 정보 확인",
|
||||
"action": "verify_detail",
|
||||
"checks": [
|
||||
"사원명 표시",
|
||||
"날짜 표시",
|
||||
"출근시간 표시",
|
||||
"퇴근시간 표시",
|
||||
"근무시간 계산"
|
||||
],
|
||||
"expected": "근태 상세 정보 정상 표시"
|
||||
},
|
||||
{
|
||||
"id": 13,
|
||||
"phase": "UPDATE",
|
||||
"name": "[UPDATE] 근태 수정 모드 진입",
|
||||
"action": "click",
|
||||
"target": "button:has-text('수정'), button:has-text('편집')",
|
||||
"expected": {
|
||||
"edit_mode": true,
|
||||
"fields_editable": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 14,
|
||||
"phase": "UPDATE",
|
||||
"name": "[UPDATE] 비고 수정",
|
||||
"action": "fill",
|
||||
"target": "textarea[name*='note'], input[placeholder*='비고'], textarea[placeholder*='메모']",
|
||||
"value": "E2E 테스트 근태 수정_{timestamp}",
|
||||
"clear": true
|
||||
},
|
||||
{
|
||||
"id": 15,
|
||||
"phase": "UPDATE",
|
||||
"name": "[UPDATE] 필수 검증 #2: 수정 저장",
|
||||
"action": "click",
|
||||
"target": "button:has-text('저장'), button:has-text('확인')",
|
||||
"critical": true,
|
||||
"verify": {
|
||||
"url_maintained": true,
|
||||
"no_error_page": true,
|
||||
"api_call": "PUT /api/v1/attendances/",
|
||||
"toast": "수정|완료|성공"
|
||||
},
|
||||
"expected": "근태 수정 완료"
|
||||
},
|
||||
{
|
||||
"id": 16,
|
||||
"phase": "UPDATE",
|
||||
"name": "[UPDATE] 수정 결과 확인",
|
||||
"action": "verify_detail",
|
||||
"checks": [
|
||||
"비고: E2E 테스트 근태 수정"
|
||||
],
|
||||
"expected": "수정된 데이터 반영"
|
||||
},
|
||||
{
|
||||
"id": 17,
|
||||
"phase": "EXPORT",
|
||||
"name": "[EXPORT] 엑셀 다운로드 버튼 확인",
|
||||
"action": "verify_elements",
|
||||
"checks": [
|
||||
"엑셀 다운로드 버튼 또는 내보내기 버튼"
|
||||
],
|
||||
"expected": "다운로드 기능 존재"
|
||||
},
|
||||
{
|
||||
"id": 18,
|
||||
"phase": "EXPORT",
|
||||
"name": "[EXPORT] 엑셀 다운로드 테스트",
|
||||
"action": "click",
|
||||
"target": "button:has-text('엑셀'), button:has-text('내보내기'), button:has-text('다운로드')",
|
||||
"verify": {
|
||||
"file_download": true,
|
||||
"file_type": "xlsx"
|
||||
},
|
||||
"expected": "엑셀 파일 다운로드"
|
||||
},
|
||||
{
|
||||
"id": 19,
|
||||
"phase": "STATS",
|
||||
"name": "[STATS] 통계 탭/섹션 이동",
|
||||
"action": "click",
|
||||
"target": "button:has-text('통계'), a:has-text('통계'), tab:has-text('통계')",
|
||||
"expected": {
|
||||
"stats_view": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 20,
|
||||
"phase": "STATS",
|
||||
"name": "[STATS] 통계 데이터 확인",
|
||||
"action": "verify_elements",
|
||||
"checks": [
|
||||
"출근율 차트 또는 수치",
|
||||
"지각율 차트 또는 수치",
|
||||
"결근율 차트 또는 수치"
|
||||
],
|
||||
"expected": "근태 통계 정상 표시"
|
||||
}
|
||||
],
|
||||
"expectedAPIs": [
|
||||
{
|
||||
"method": "GET",
|
||||
"endpoint": "/api/v1/attendances",
|
||||
"description": "근태 목록 조회"
|
||||
},
|
||||
{
|
||||
"method": "GET",
|
||||
"endpoint": "/api/v1/attendances/summary",
|
||||
"description": "근태 통계 조회"
|
||||
},
|
||||
{
|
||||
"method": "GET",
|
||||
"endpoint": "/api/v1/attendances/{id}",
|
||||
"description": "근태 상세 조회"
|
||||
},
|
||||
{
|
||||
"method": "PUT",
|
||||
"endpoint": "/api/v1/attendances/{id}",
|
||||
"description": "근태 수정"
|
||||
},
|
||||
{
|
||||
"method": "GET",
|
||||
"endpoint": "/api/v1/attendances/export",
|
||||
"description": "근태 엑셀 다운로드"
|
||||
}
|
||||
],
|
||||
"requiredVerifications": [
|
||||
{
|
||||
"id": 1,
|
||||
"name": "파일 다운로드",
|
||||
"steps": [18],
|
||||
"criteria": "엑셀 파일 다운로드 동작"
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"name": "수정/저장 버튼",
|
||||
"steps": [15],
|
||||
"criteria": "API 호출 + 성공 토스트 + 데이터 반영"
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"name": "검색/필터",
|
||||
"steps": [4, 5, 6],
|
||||
"criteria": "날짜 필터 및 검색 기능 확인"
|
||||
"steps": [5, 6, 7, 8, 9, 10],
|
||||
"criteria": "날짜 필터 및 사원 검색 기능"
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"name": "목업 페이지 감지",
|
||||
"steps": [2],
|
||||
"criteria": "근태 목록, 필터, 검색 확인"
|
||||
"criteria": "근태 목록, 필터, 검색, 통계 존재"
|
||||
}
|
||||
]
|
||||
],
|
||||
"rollbackPlan": {
|
||||
"onUpdateFail": "근태 기록은 수정만 가능, 삭제 불가",
|
||||
"note": "근태 기록은 CRUD 중 CRD 없이 RU만 테스트 (시스템에서 자동 생성)"
|
||||
}
|
||||
}
|
||||
|
||||
253
hr-vacation.json
253
hr-vacation.json
@@ -5,17 +5,30 @@
|
||||
"onErrorOnly": true,
|
||||
"captureOn": ["error", "fail", "timeout", "404", "500", "blocked"]
|
||||
},
|
||||
"description": "인사관리 > 휴가관리 메뉴의 휴가 신청/조회 기능 테스트",
|
||||
"description": "인사관리 > 휴가관리 메뉴의 휴가 신청/조회/수정/취소 전체 CRUD 테스트",
|
||||
"baseUrl": "https://dev.codebridge-x.com",
|
||||
"menuNavigation": {
|
||||
"level1": "인사관리",
|
||||
"level2": "휴가관리",
|
||||
"expectedUrl": "/hr/vacation-management"
|
||||
"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,
|
||||
@@ -34,7 +47,8 @@
|
||||
"action": "verify_not_mockup",
|
||||
"checks": [
|
||||
"휴가 목록 표시",
|
||||
"휴가 신청 버튼 존재"
|
||||
"휴가 신청 버튼 존재",
|
||||
"연차 현황 표시"
|
||||
],
|
||||
"expected": "정상 페이지 (목업 아님)"
|
||||
},
|
||||
@@ -47,36 +61,251 @@
|
||||
"사용 연차 표시",
|
||||
"총 연차 표시"
|
||||
],
|
||||
"expected": "휴가 현황 카드 표시"
|
||||
"expected": "휴가 현황 카드 정상 표시"
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"name": "휴가 테이블 확인",
|
||||
"name": "휴가 테이블 구조 확인",
|
||||
"action": "verify_table",
|
||||
"checks": [
|
||||
"휴가 유형 컬럼",
|
||||
"시작일 컬럼",
|
||||
"종료일 컬럼",
|
||||
"상태 컬럼"
|
||||
"상태 컬럼",
|
||||
"신청일 컬럼"
|
||||
],
|
||||
"expected": "휴가 테이블 표시"
|
||||
"expected": "휴가 테이블 컬럼 정상 표시"
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"name": "휴가 신청 버튼 확인",
|
||||
"phase": "CREATE",
|
||||
"name": "[CREATE] 휴가 신청 버튼 클릭",
|
||||
"action": "click",
|
||||
"target": "button:has-text('신청'), button:has-text('휴가 신청'), button:has-text('추가')",
|
||||
"expected": {
|
||||
"modal": true,
|
||||
"modalTitle": "휴가 신청"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"phase": "CREATE",
|
||||
"name": "[CREATE] 휴가 정보 입력",
|
||||
"action": "fill_form",
|
||||
"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": "타임스탬프로 고유성 보장"
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"phase": "CREATE",
|
||||
"name": "[CREATE] 필수 검증 #2: 신청 저장",
|
||||
"action": "click",
|
||||
"target": "button:has-text('신청'), button:has-text('저장'), button:has-text('확인')",
|
||||
"critical": true,
|
||||
"verify": {
|
||||
"url_maintained": true,
|
||||
"no_error_page": true,
|
||||
"api_call": "POST /api/v1/vacations",
|
||||
"toast": "신청|등록|완료|성공"
|
||||
},
|
||||
"expected": "휴가 신청 완료"
|
||||
},
|
||||
{
|
||||
"id": "7-modal-close",
|
||||
"phase": "CREATE",
|
||||
"name": "[CREATE] 모달 닫기 확인",
|
||||
"action": "close_modal_if_open",
|
||||
"expected": "모달 닫힘"
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"phase": "CREATE",
|
||||
"name": "[CREATE] 신청 결과 확인",
|
||||
"action": "verify_data",
|
||||
"search": "E2E 자동화 테스트 휴가",
|
||||
"expected": {
|
||||
"row_exists": true,
|
||||
"contains": ["연차", "대기", "2026-02-10"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 9,
|
||||
"phase": "READ",
|
||||
"name": "[READ] 휴가 상세 페이지 진입",
|
||||
"action": "click",
|
||||
"target": "table tbody tr:has-text('E2E')",
|
||||
"expected": {
|
||||
"url_contains": "/hr/vacation",
|
||||
"visible": ["휴가 상세", "수정", "취소"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 10,
|
||||
"phase": "READ",
|
||||
"name": "[READ] 상세 정보 확인",
|
||||
"action": "verify_detail",
|
||||
"checks": [
|
||||
"휴가 유형: 연차",
|
||||
"시작일: 2026-02-10",
|
||||
"종료일: 2026-02-10",
|
||||
"상태: 대기",
|
||||
"사유: E2E 자동화 테스트"
|
||||
],
|
||||
"expected": "입력한 데이터와 일치"
|
||||
},
|
||||
{
|
||||
"id": 11,
|
||||
"phase": "UPDATE",
|
||||
"name": "[UPDATE] 수정 모드 진입",
|
||||
"action": "click",
|
||||
"target": "button:has-text('수정')",
|
||||
"expected": {
|
||||
"modal_or_edit_mode": true,
|
||||
"fields_editable": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 12,
|
||||
"phase": "UPDATE",
|
||||
"name": "[UPDATE] 사유 수정",
|
||||
"action": "fill",
|
||||
"target": "textarea[name*='reason'], input[placeholder*='사유']",
|
||||
"value": "E2E 수정된 휴가 사유_{timestamp}",
|
||||
"clear": true
|
||||
},
|
||||
{
|
||||
"id": 13,
|
||||
"phase": "UPDATE",
|
||||
"name": "[UPDATE] 필수 검증 #2: 수정 저장",
|
||||
"action": "click",
|
||||
"target": "button:has-text('저장'), button:has-text('수정')",
|
||||
"critical": true,
|
||||
"verify": {
|
||||
"url_maintained": true,
|
||||
"no_error_page": true,
|
||||
"api_call": "PUT /api/v1/vacations/",
|
||||
"toast": "수정|완료|성공"
|
||||
},
|
||||
"expected": "수정 완료"
|
||||
},
|
||||
{
|
||||
"id": 14,
|
||||
"phase": "UPDATE",
|
||||
"name": "[UPDATE] 수정 결과 확인",
|
||||
"action": "verify_detail",
|
||||
"checks": [
|
||||
"사유: E2E 수정된 휴가"
|
||||
],
|
||||
"expected": "수정된 데이터 반영"
|
||||
},
|
||||
{
|
||||
"id": 15,
|
||||
"phase": "DELETE",
|
||||
"name": "[DELETE] 취소 버튼 클릭",
|
||||
"action": "click",
|
||||
"target": "button:has-text('취소'), button:has-text('신청 취소')",
|
||||
"expected": {
|
||||
"confirm_dialog": true,
|
||||
"dialog_message": "취소|정말"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 16,
|
||||
"phase": "DELETE",
|
||||
"name": "[DELETE] 필수 검증 #6: 취소 확인",
|
||||
"action": "click",
|
||||
"target": "button:has-text('확인'), button:has-text('예')",
|
||||
"critical": true,
|
||||
"verify": {
|
||||
"api_call": "DELETE /api/v1/vacations/",
|
||||
"toast": "취소|삭제|완료|성공",
|
||||
"redirect": "/hr/vacation"
|
||||
},
|
||||
"expected": "휴가 취소 완료 및 목록 복귀"
|
||||
},
|
||||
{
|
||||
"id": 17,
|
||||
"phase": "DELETE",
|
||||
"name": "[DELETE] 취소 결과 확인",
|
||||
"action": "verify_data",
|
||||
"search": "E2E 수정된 휴가",
|
||||
"expected": {
|
||||
"row_exists": false,
|
||||
"message": "테스트 휴가 신청이 목록에서 제거됨"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 18,
|
||||
"phase": "VERIFY",
|
||||
"name": "[VERIFY] 연차 잔여일 확인",
|
||||
"action": "verify_elements",
|
||||
"checks": [
|
||||
"휴가 신청 버튼 존재"
|
||||
"잔여 연차가 원래 값으로 복원"
|
||||
],
|
||||
"expected": "신청 버튼 표시"
|
||||
"expected": "휴가 취소 후 연차 복원 확인"
|
||||
}
|
||||
],
|
||||
"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": "휴가 목록, 신청 버튼 확인"
|
||||
"criteria": "휴가 목록, 신청 버튼, 현황 카드 존재"
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"name": "삭제 기능",
|
||||
"steps": [15, 16, 17],
|
||||
"criteria": "DELETE API + 목록에서 제거 + 연차 복원"
|
||||
}
|
||||
]
|
||||
],
|
||||
"rollbackPlan": {
|
||||
"onCreateFail": "모달 닫기 → 다음 테스트 영향 없음",
|
||||
"onUpdateFail": "테스트 휴가 수동 취소 필요",
|
||||
"onDeleteFail": "테스트 휴가 수동 취소 필요",
|
||||
"cleanupRequired": "E2E_ 접두사 휴가 신청은 테스트 데이터"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user