refactor: 회계/인사/게시판/출고 시나리오 A/B등급 개선 (12개)

- accounting-client (9→18): A등급, 거래처 CRUD
- accounting-bank-transaction (3→15): B등급, 조회/필터
- accounting-card-history (3→15): B등급, 조회/필터
- accounting-expense-forecast (3→15): B등급, 조회/필터
- accounting-bad-debt (3→18): A등급, 악성채권 CRUD
- accounting-sales (3→15): B등급, 매출 조회
- accounting-purchase (3→15): B등급, 매입 조회
- shipment-dispatch (3→18): A등급, 배차 CRUD
- board-management (3→18): A등급, 게시판 CRUD
- hr-department (6→18): A등급, 부서 CRUD
- hr-card (4→18): A등급, 카드 CRUD
- hr-attendance-status (4→15): B등급, 근태현황 조회

공통 개선:
- searchWithinParent, closeOtherMenus 플래그 추가
- expectedAPIs 추가
- rollbackPlan 추가
- A등급: testData + CRUD 흐름 완성
This commit is contained in:
김보곤
2026-02-03 14:00:30 +09:00
parent ad07615df2
commit d8638a0fb3
12 changed files with 2119 additions and 156 deletions

View File

@@ -5,17 +5,26 @@
"onErrorOnly": true,
"captureOn": ["error", "fail", "timeout", "404", "500", "blocked"]
},
"description": "인사관리 > 카드관리 메뉴의 목록 조회, 카드 등록/관리 기능 테스트",
"description": "인사관리 > 카드관리 메뉴의 카드 CRUD 기능 테스트",
"baseUrl": "https://dev.codebridge-x.com",
"menuNavigation": {
"level1": "인사관리",
"level2": "카드관리",
"expectedUrl": "/hr/card-management"
"expectedUrl": "/hr/card-management",
"searchWithinParent": true,
"closeOtherMenus": true
},
"auth": {
"username": "TestUser5",
"password": "password123!"
},
"testData": {
"create": {
"cardName": "E2E_TEST_카드_{timestamp}",
"cardNumber": "1234-5678-9012-3456",
"cardType": "법인카드"
}
},
"steps": [
{
"id": 1,
@@ -34,37 +43,223 @@
"action": "verify_not_mockup",
"checks": [
"카드 목록 표시",
"카드 등록 버튼 존재"
"카드 등록 버튼 존재",
"검색 기능 존재"
],
"expected": "정상 페이지 (목업 아님)"
},
{
"id": 3,
"name": "카드 목록 확인",
"name": "카드 테이블 구조 확인",
"action": "verify_table",
"checks": [
"카드명 컬럼",
"카드번호 컬럼",
"사용자 컬럼"
"카드종류 컬럼",
"사용자 컬럼",
"상태 컬럼"
],
"expected": "카드 목록 표시"
"expected": "카드 테이블 표시"
},
{
"id": 4,
"name": "카드 등록 버튼 확인",
"name": "기존 카드 확인",
"action": "verify_elements",
"checks": [
"카드 등록 버튼 존재"
"등록된 카드 존재 또는 등록된 카드 없음"
],
"expected": "등록 버튼 표시"
"expected": "카드 목록 상태 확인"
},
{
"id": 5,
"phase": "CREATE",
"name": "[CREATE] 카드 등록 버튼 클릭",
"action": "click",
"target": "button:has-text('등록'), button:has-text('추가'), button:has-text('신규')",
"expected": {
"modal_open": true
}
},
{
"id": 6,
"phase": "CREATE",
"name": "[CREATE] 카드명 입력",
"action": "fill",
"target": "input[name*='name'], input[placeholder*='카드명']",
"value": "E2E_TEST_카드_{timestamp}",
"clear": true
},
{
"id": 7,
"phase": "CREATE",
"name": "[CREATE] 카드번호 입력",
"action": "fill",
"target": "input[name*='number'], input[placeholder*='카드번호']",
"value": "1234-5678-9012-3456",
"clear": true
},
{
"id": 8,
"phase": "CREATE",
"name": "[CREATE] 카드종류 선택",
"action": "click",
"target": "select[name*='type'], button:has-text('법인카드')",
"expected": "카드종류 선택"
},
{
"id": 9,
"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/hr/cards",
"toast": "등록|저장|완료|성공"
},
"expected": "카드 등록 완료"
},
{
"id": 10,
"phase": "READ",
"name": "[READ] 등록된 카드 검색",
"action": "fill",
"target": "input[type='search'], input[placeholder*='검색']",
"value": "E2E_TEST_카드",
"submit": true
},
{
"id": 11,
"phase": "READ",
"name": "[READ] 등록된 카드 확인",
"action": "verify_detail",
"checks": [
"E2E_TEST_카드 목록에 표시"
],
"expected": "등록된 카드 확인"
},
{
"id": 12,
"phase": "READ",
"name": "[READ] 카드 상세 조회",
"action": "click",
"target": "table tbody tr:has-text('E2E_TEST_카드')",
"expected": {
"detail_view": true
}
},
{
"id": 13,
"name": "상세 정보 확인",
"action": "verify_elements",
"checks": [
"카드명 표시",
"카드번호 표시",
"유효기간 표시"
],
"expected": "상세 정보 표시"
},
{
"id": 14,
"phase": "UPDATE",
"name": "[UPDATE] 카드 수정 모드",
"action": "click",
"target": "button:has-text('수정'), button:has-text('편집')",
"expected": {
"edit_mode": true
}
},
{
"id": 15,
"phase": "UPDATE",
"name": "[UPDATE] 카드명 변경",
"action": "fill",
"target": "input[name*='name'], input[placeholder*='카드명']",
"value": "E2E_TEST_카드_수정",
"clear": true
},
{
"id": 16,
"phase": "UPDATE",
"name": "[UPDATE] 변경 저장",
"action": "click",
"target": "button:has-text('저장'), button:has-text('확인')",
"verify": {
"api_call": "PUT /api/v1/hr/cards",
"toast": "수정|저장|완료|성공"
},
"expected": "카드 수정 완료"
},
{
"id": 17,
"phase": "DELETE",
"name": "[DELETE] 카드 삭제",
"action": "click",
"target": "button:has-text('삭제'), button:has-text('제거')",
"expected": {
"confirm_dialog": true
}
},
{
"id": 18,
"phase": "DELETE",
"name": "[DELETE] 삭제 확인",
"action": "click",
"target": "[role='alertdialog'] button:has-text('확인'), [role='dialog'] button:has-text('삭제')",
"verify": {
"api_call": "DELETE /api/v1/hr/cards",
"toast": "삭제|제거|완료|성공"
},
"expected": "카드 삭제 완료"
}
],
"expectedAPIs": [
{
"method": "GET",
"endpoint": "/api/v1/hr/cards",
"description": "카드 목록 조회"
},
{
"method": "POST",
"endpoint": "/api/v1/hr/cards",
"description": "카드 등록"
},
{
"method": "GET",
"endpoint": "/api/v1/hr/cards/:id",
"description": "카드 상세 조회"
},
{
"method": "PUT",
"endpoint": "/api/v1/hr/cards/:id",
"description": "카드 수정"
},
{
"method": "DELETE",
"endpoint": "/api/v1/hr/cards/:id",
"description": "카드 삭제"
}
],
"requiredVerifications": [
{
"id": 2,
"name": "저장 버튼",
"steps": [9, 16],
"criteria": "API 호출 + 성공 토스트 + 데이터 반영"
},
{
"id": 5,
"name": "목업 페이지 감지",
"steps": [2],
"criteria": "카드 목록, 동작 버튼 확인"
"criteria": "카드 목록, 등록 버튼, 검색 기능 존재"
}
]
],
"rollbackPlan": {
"onCreateFail": "등록 모달 닫고 재시도",
"onUpdateFail": "페이지 새로고침 후 재시도",
"onDeleteFail": "수동 삭제 필요",
"cleanupRequired": "E2E_TEST_카드* 패턴 데이터 삭제"
}
}