refactor: 품질검사, 설정관리 시나리오 A/B등급으로 개선

개선된 시나리오:
- quality-inspection.json: C→A (14→18 steps, CRUD 전체)
- settings-bank-account.json: C→A (4→18 steps, 계좌 CRUD)
- settings-position.json: C→A (4→18 steps, 직책 CRUD)
- settings-rank.json: C→A (4→18 steps, 직급 CRUD)
- accounting-receivable.json: C→B (3→15 steps, 조회/필터/엑셀)
- settings-vacation-policy.json: C→B (4→12 steps, 정책 수정)
- settings-work-schedule.json: C→B (4→12 steps, 일정 수정)
- settings-attendance.json: C→B (4→12 steps, 설정 수정)
- inspection-management.json: 메뉴 플래그 추가

공통 개선:
- searchWithinParent, closeOtherMenus 플래그 추가
- testData, expectedAPIs, requiredVerifications 추가
- rollbackPlan 추가
This commit is contained in:
김보곤
2026-02-03 13:37:06 +09:00
parent d10f4ee7a1
commit 7047b2fa1d
9 changed files with 1592 additions and 176 deletions

View File

@@ -5,17 +5,32 @@
"onErrorOnly": true,
"captureOn": ["error", "fail", "timeout", "404", "500", "blocked"]
},
"description": "품질관리 > 제품검사관리 메뉴의 목록 조회, 필터, 검색, 등록, 상세 기능 테스트",
"description": "품질관리 > 제품검사관리 메뉴의 제품검사 조회/등록/수정/삭제 전체 CRUD 테스트",
"baseUrl": "https://dev.codebridge-x.com",
"menuNavigation": {
"level1": "품질관리",
"level2": "제품검사관리",
"expectedUrl": "/quality/inspections"
"expectedUrl": "/quality/inspections",
"searchWithinParent": true,
"closeOtherMenus": true
},
"auth": {
"username": "TestUser5",
"password": "password123!"
},
"testData": {
"create": {
"siteName": "E2E_TEST_현장",
"orderCompany": "E2E_TEST_수주처",
"location": "테스트구역A",
"inspector": "홍길동",
"memo": "E2E 자동화 테스트 제품검사"
},
"update": {
"location": "테스트구역B",
"memo": "E2E 수정된 제품검사 메모"
}
},
"steps": [
{
"id": 1,
@@ -25,7 +40,7 @@
"level2": "제품검사관리",
"expected": {
"url_contains": "/quality/inspections",
"visible": ["제품검사 목록", "제품검사 등록"]
"visible": ["제품검사", "검사"]
}
},
{
@@ -33,137 +48,207 @@
"name": "필수 검증 #5: 목업 페이지 감지",
"action": "verify_not_mockup",
"checks": [
"검색 입력 필드 존재 및 입력 가능",
"날짜 필터 존재",
"테이블 데이터 표시",
"제품검사 등록 버튼 존재"
"제품검사 목록 표시",
"제품검사 등록 버튼 존재",
"검색/필터 기능 존재"
],
"expected": "정상 페이지 (목업 아님)"
},
{
"id": 3,
"name": "상태 카드 확인",
"action": "verify_elements",
"checks": [
"접수 카드 표시",
"진행중 카드 표시",
"완료 카드 표시"
],
"expected": "3개 상태 카드 모두 표시"
},
{
"id": 4,
"name": "테이블 구조 확인",
"name": "제품검사 테이블 구조 확인",
"action": "verify_table",
"checks": [
"No. 컬럼",
"품질관리서 번호 컬럼",
"현장명 컬럼",
"수주처 컬럼",
"개소 컬럼",
"필수정보 컬럼",
"검사기간 컬럼",
"검사자 컬럼",
"상태 컬럼",
"작성자 컬럼",
"접수일 컬럼"
"검사자 컬럼"
],
"expected": "11개 컬럼 존재"
"expected": "제품검사 테이블 컬럼 정상 표시"
},
{
"id": 4,
"name": "검색 기능 테스트",
"action": "search",
"target": "input[placeholder*='검색']",
"value": "테스트",
"expected": {
"data_filtered": true
}
},
{
"id": 5,
"name": "날짜 필터 테스트 - 당월",
"phase": "CREATE",
"name": "[CREATE] 제품검사 등록 버튼 클릭",
"action": "click",
"target": "당월",
"expected": "당월 데이터로 필터링"
"target": "button:has-text('등록'), button:has-text('제품검사 등록'), button:has-text('추가')",
"expected": {
"modal_or_page": true,
"title": "제품검사 등록"
}
},
{
"id": 6,
"name": "날짜 필터 테스트 - 당해년도",
"action": "click",
"target": "당해년도",
"expected": "당해년도 데이터로 필터링"
"phase": "CREATE",
"name": "[CREATE] 제품검사 정보 입력",
"action": "fill_form",
"fields": [
{"name": "현장명", "type": "text", "value": "E2E_TEST_현장_{timestamp}"},
{"name": "수주처", "type": "select", "value": "E2E_TEST_수주처"},
{"name": "개소", "type": "text", "value": "테스트구역A"},
{"name": "검사자", "type": "select", "value": "홍길동"},
{"name": "메모", "type": "text", "value": "E2E 자동화 테스트 제품검사_{timestamp}"}
],
"note": "타임스탬프로 고유성 보장"
},
{
"id": 7,
"name": "검색 기능 테스트",
"action": "fill",
"target": "input[placeholder*='검색']",
"value": "현장명",
"expected": "검색어 입력됨"
"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/quality/inspections",
"toast": "등록|완료|성공"
},
"expected": "제품검사 등록 완료"
},
{
"id": "7-modal-close",
"phase": "CREATE",
"name": "[CREATE] 모달 닫기 확인",
"action": "close_modal_if_open",
"expected": "모달 닫힘"
},
{
"id": 8,
"name": "검색 결과 확인",
"action": "wait",
"duration": 500,
"verify": {
"tableContains": "현장명"
},
"expected": "검색 결과 표시"
"phase": "CREATE",
"name": "[CREATE] 등록 결과 확인",
"action": "verify_data",
"search": "E2E_TEST_현장",
"expected": {
"row_exists": true,
"contains": ["E2E_TEST", "접수"]
}
},
{
"id": 9,
"name": "검색 초기화",
"action": "clear",
"target": "input[placeholder*='검색']",
"expected": "검색어 삭제"
"phase": "READ",
"name": "[READ] 제품검사 상세 페이지 진입",
"action": "click",
"target": "table tbody tr:has-text('E2E_TEST')",
"expected": {
"url_contains": "/quality/inspections/",
"visible": ["품질관리서", "수정", "삭제"]
}
},
{
"id": 10,
"name": "테이블 행 클릭 - 상세 페이지",
"action": "click",
"target": "table tbody tr:first-child",
"expected": "상세 페이지로 이동"
"phase": "READ",
"name": "[READ] 상세 정보 확인",
"action": "verify_detail",
"checks": [
"현장명: E2E_TEST_현장",
"개소: 테스트구역A",
"검사자: 홍길동"
],
"expected": "입력한 데이터와 일치"
},
{
"id": 11,
"name": "상세 페이지 확인",
"action": "verify_url",
"phase": "UPDATE",
"name": "[UPDATE] 수정 모드 진입",
"action": "click",
"target": "button:has-text('수정')",
"expected": {
"url_contains": "/quality/inspections/"
"url_contains": "mode=edit",
"fields_editable": true
}
},
{
"id": 12,
"name": "상세 페이지 요소 확인",
"action": "verify_elements",
"checks": [
"품질관리서 정보 표시",
"목록 버튼 존재",
"수정 버튼 존재"
],
"expected": "상세 정보 정상 표시"
"phase": "UPDATE",
"name": "[UPDATE] 개소 수정",
"action": "fill",
"target": "input[name*='location'], input[placeholder*='개소']",
"value": "테스트구역B",
"clear": true
},
{
"id": 13,
"name": "목록으로 돌아가기",
"action": "click",
"target": "목록",
"expected": "목록 페이지로 복귀"
"phase": "UPDATE",
"name": "[UPDATE] 메모 수정",
"action": "fill",
"target": "textarea[name*='memo'], input[placeholder*='메모']",
"value": "E2E 수정된 제품검사 메모_{timestamp}",
"clear": true
},
{
"id": 14,
"name": "목록 페이지 복귀 확인",
"action": "verify_url",
"expected": {
"url_contains": "/quality/inspections",
"url_not_contains": "/quality/inspections/"
}
}
],
"requiredVerifications": [
{
"id": 3,
"name": "검색/필터",
"steps": [5, 6, 7, 8, 9],
"criteria": "날짜 필터 및 검색 시 데이터 변화 확인"
"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/quality/inspections/",
"toast": "수정|완료|성공"
},
"expected": "수정 완료"
},
{
"id": 5,
"name": "목업 페이지 감지",
"steps": [2],
"criteria": "입력 필드, 동작 버튼, 테이블 데이터 확인"
"id": 15,
"phase": "UPDATE",
"name": "[UPDATE] 수정 결과 확인",
"action": "verify_detail",
"checks": [
"개소: 테스트구역B",
"메모: 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/quality/inspections/",
"toast": "삭제|완료|성공",
"redirect": "/quality/inspections"
},
"expected": "삭제 완료 및 목록 복귀"
},
{
"id": 18,
"phase": "DELETE",
"name": "[DELETE] 삭제 결과 확인",
"action": "verify_data",
"search": "E2E 수정된 제품검사",
"expected": {
"row_exists": false,
"message": "테스트 제품검사가 목록에서 제거됨"
}
}
],
"expectedAPIs": [
@@ -172,10 +257,57 @@
"endpoint": "/api/v1/quality/inspections",
"description": "제품검사 목록 조회"
},
{
"method": "POST",
"endpoint": "/api/v1/quality/inspections",
"description": "제품검사 등록"
},
{
"method": "GET",
"endpoint": "/api/v1/quality/inspections/{id}",
"description": "제품검사 상세 조회"
},
{
"method": "PUT",
"endpoint": "/api/v1/quality/inspections/{id}",
"description": "제품검사 수정"
},
{
"method": "DELETE",
"endpoint": "/api/v1/quality/inspections/{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_ 접두사 제품검사는 테스트 데이터"
}
}