refactor: hr-employee, hr-salary, shipment-management 시나리오 A등급으로 개선
- hr-employee: B등급→A등급 (12→18 steps, 사원 CRUD) - hr-salary: C등급→A등급 (4→17 steps, 급여 필터/수정/엑셀) - shipment-management: C등급→A등급 (3→18 steps, 출고 CRUD)
This commit is contained in:
232
hr-salary.json
232
hr-salary.json
@@ -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/salary-management"
|
||||
"expectedUrl": "/hr/salary-management",
|
||||
"searchWithinParent": true,
|
||||
"closeOtherMenus": true
|
||||
},
|
||||
"auth": {
|
||||
"username": "TestUser5",
|
||||
"password": "password123!"
|
||||
},
|
||||
"testData": {
|
||||
"filterYear": "2026",
|
||||
"filterMonth": "02",
|
||||
"updateBonus": "100000"
|
||||
},
|
||||
"steps": [
|
||||
{
|
||||
"id": 1,
|
||||
@@ -34,40 +41,243 @@
|
||||
"action": "verify_not_mockup",
|
||||
"checks": [
|
||||
"급여 목록 표시",
|
||||
"월/년도 선택 가능"
|
||||
"월/년도 선택 가능",
|
||||
"엑셀 다운로드 버튼"
|
||||
],
|
||||
"expected": "정상 페이지 (목업 아님)"
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"name": "급여 테이블 확인",
|
||||
"name": "급여 테이블 구조 확인",
|
||||
"action": "verify_table",
|
||||
"checks": [
|
||||
"사원명 컬럼",
|
||||
"부서 컬럼",
|
||||
"기본급 컬럼",
|
||||
"수당 컬럼",
|
||||
"공제 컬럼",
|
||||
"실수령액 컬럼"
|
||||
],
|
||||
"expected": "급여 테이블 표시"
|
||||
"expected": "급여 테이블 컬럼 정상 표시"
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"name": "월 선택 필터 확인",
|
||||
"phase": "FILTER",
|
||||
"name": "[FILTER] 년도 선택",
|
||||
"action": "select",
|
||||
"target": "select[name*='year'], [data-field='year']",
|
||||
"value": "2026",
|
||||
"expected": {
|
||||
"filter_applied": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"phase": "FILTER",
|
||||
"name": "[FILTER] 월 선택",
|
||||
"action": "select",
|
||||
"target": "select[name*='month'], [data-field='month']",
|
||||
"value": "02",
|
||||
"expected": {
|
||||
"filter_applied": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"phase": "FILTER",
|
||||
"name": "[FILTER] 필터 결과 확인",
|
||||
"action": "verify_data",
|
||||
"search": "2026년 02월",
|
||||
"expected": {
|
||||
"data_filtered": true,
|
||||
"month_data_shown": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"phase": "READ",
|
||||
"name": "[READ] 사원 급여 상세 클릭",
|
||||
"action": "click",
|
||||
"target": "table tbody tr:first-child",
|
||||
"expected": {
|
||||
"detail_modal_or_page": true,
|
||||
"visible": ["급여 상세", "기본급", "수당", "공제"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"phase": "READ",
|
||||
"name": "[READ] 급여 상세 항목 확인",
|
||||
"action": "verify_detail",
|
||||
"checks": [
|
||||
"사원명 표시",
|
||||
"기본급 표시",
|
||||
"수당 항목들 표시",
|
||||
"공제 항목들 표시",
|
||||
"실수령액 계산"
|
||||
],
|
||||
"expected": "급여 상세 정보 정상 표시"
|
||||
},
|
||||
{
|
||||
"id": 9,
|
||||
"phase": "UPDATE",
|
||||
"name": "[UPDATE] 수당 수정 모드 진입",
|
||||
"action": "click",
|
||||
"target": "button:has-text('수정'), button:has-text('편집')",
|
||||
"expected": {
|
||||
"edit_mode": true,
|
||||
"fields_editable": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 10,
|
||||
"phase": "UPDATE",
|
||||
"name": "[UPDATE] 보너스 입력",
|
||||
"action": "fill",
|
||||
"target": "input[name*='bonus'], input[placeholder*='보너스']",
|
||||
"value": "100000",
|
||||
"clear": true
|
||||
},
|
||||
{
|
||||
"id": 11,
|
||||
"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/salaries/",
|
||||
"toast": "수정|저장|완료|성공"
|
||||
},
|
||||
"expected": "급여 수정 완료"
|
||||
},
|
||||
{
|
||||
"id": 12,
|
||||
"phase": "UPDATE",
|
||||
"name": "[UPDATE] 수정 결과 확인",
|
||||
"action": "verify_detail",
|
||||
"checks": [
|
||||
"보너스: 100,000",
|
||||
"실수령액 재계산"
|
||||
],
|
||||
"expected": "수정된 데이터 반영"
|
||||
},
|
||||
{
|
||||
"id": 13,
|
||||
"phase": "EXPORT",
|
||||
"name": "[EXPORT] 엑셀 다운로드 버튼 확인",
|
||||
"action": "verify_elements",
|
||||
"checks": [
|
||||
"년도 선택",
|
||||
"월 선택"
|
||||
"엑셀 다운로드 버튼 존재"
|
||||
],
|
||||
"expected": "날짜 필터 표시"
|
||||
"expected": "다운로드 기능 존재"
|
||||
},
|
||||
{
|
||||
"id": 14,
|
||||
"phase": "EXPORT",
|
||||
"name": "[EXPORT] 필수 검증 #1: 엑셀 다운로드",
|
||||
"action": "click",
|
||||
"target": "button:has-text('엑셀'), button:has-text('다운로드'), button:has-text('내보내기')",
|
||||
"critical": true,
|
||||
"verify": {
|
||||
"file_download": true,
|
||||
"file_type": "xlsx",
|
||||
"api_call": "GET /api/v1/salaries/export"
|
||||
},
|
||||
"expected": "엑셀 파일 다운로드"
|
||||
},
|
||||
{
|
||||
"id": 15,
|
||||
"phase": "STATS",
|
||||
"name": "[STATS] 급여 통계 확인",
|
||||
"action": "verify_elements",
|
||||
"checks": [
|
||||
"총 급여액 합계",
|
||||
"평균 급여",
|
||||
"총 인원 수"
|
||||
],
|
||||
"expected": "급여 통계 정상 표시"
|
||||
},
|
||||
{
|
||||
"id": 16,
|
||||
"phase": "SEARCH",
|
||||
"name": "[SEARCH] 사원 검색",
|
||||
"action": "search",
|
||||
"target": "input[placeholder*='검색'], input[placeholder*='사원']",
|
||||
"value": "홍길동",
|
||||
"expected": {
|
||||
"data_filtered": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 17,
|
||||
"phase": "SEARCH",
|
||||
"name": "[SEARCH] 검색 결과 확인",
|
||||
"action": "verify_data",
|
||||
"search": "홍길동",
|
||||
"expected": {
|
||||
"row_exists": true,
|
||||
"filtered_by_name": true
|
||||
}
|
||||
}
|
||||
],
|
||||
"expectedAPIs": [
|
||||
{
|
||||
"method": "GET",
|
||||
"endpoint": "/api/v1/salaries",
|
||||
"description": "급여 목록 조회"
|
||||
},
|
||||
{
|
||||
"method": "GET",
|
||||
"endpoint": "/api/v1/salaries/{id}",
|
||||
"description": "급여 상세 조회"
|
||||
},
|
||||
{
|
||||
"method": "PUT",
|
||||
"endpoint": "/api/v1/salaries/{id}",
|
||||
"description": "급여 수정"
|
||||
},
|
||||
{
|
||||
"method": "GET",
|
||||
"endpoint": "/api/v1/salaries/export",
|
||||
"description": "급여 엑셀 다운로드"
|
||||
},
|
||||
{
|
||||
"method": "GET",
|
||||
"endpoint": "/api/v1/salaries/summary",
|
||||
"description": "급여 통계 조회"
|
||||
}
|
||||
],
|
||||
"requiredVerifications": [
|
||||
{
|
||||
"id": 1,
|
||||
"name": "파일 다운로드",
|
||||
"steps": [14],
|
||||
"criteria": "엑셀 파일 다운로드 동작"
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"name": "수정/저장 버튼",
|
||||
"steps": [11],
|
||||
"criteria": "API 호출 + 성공 토스트 + 데이터 반영"
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"name": "검색/필터",
|
||||
"steps": [4, 5, 6, 16, 17],
|
||||
"criteria": "년월 필터 및 검색 기능"
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"name": "목업 페이지 감지",
|
||||
"steps": [2],
|
||||
"criteria": "급여 목록, 필터 확인"
|
||||
"criteria": "급여 목록, 필터, 다운로드 버튼 존재"
|
||||
}
|
||||
]
|
||||
],
|
||||
"rollbackPlan": {
|
||||
"onUpdateFail": "급여 데이터는 월별로 관리되어 자동 복원",
|
||||
"note": "급여는 CRUD 중 삭제 없이 RU만 테스트 (시스템에서 자동 생성)"
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user