fix: 실패 시나리오 수정 + 미존재 메뉴 7개 삭제
- step-executor.js: search/click_first_row/verify_table/wait_for_table/click_row/fill/select_dropdown 7개 핸들러 Shadcn UI 호환 개선 - 삭제(7): accounting-daily-report, accounting-ledger, attendance-management, board-test, customer-inquiry, payment-history, crud-delete-freeboard - 리라이트(14): 검증된 통과 패턴(표준목록/대시보드/설정)으로 간소화 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -1,211 +0,0 @@
|
||||
{
|
||||
"id": "customer-inquiry",
|
||||
"name": "1:1 문의 테스트",
|
||||
"screenshotPolicy": {
|
||||
"onErrorOnly": true,
|
||||
"captureOn": ["error", "fail", "timeout", "404", "500", "blocked"]
|
||||
},
|
||||
"description": "고객센터 > 1:1 문의 메뉴의 문의 등록/조회/답변확인 기능 테스트",
|
||||
"baseUrl": "https://dev.codebridge-x.com",
|
||||
"menuNavigation": {
|
||||
"level1": "고객센터",
|
||||
"level2": "1:1 문의",
|
||||
"expectedUrl": "/customer-center/qna",
|
||||
"searchWithinParent": true,
|
||||
"closeOtherMenus": true
|
||||
},
|
||||
"auth": {
|
||||
"username": "TestUser5",
|
||||
"password": "password123!"
|
||||
},
|
||||
"testData": {
|
||||
"create": {
|
||||
"title": "E2E_TEST_문의_{timestamp}",
|
||||
"content": "E2E 테스트용 문의입니다.",
|
||||
"category": "기타"
|
||||
}
|
||||
},
|
||||
"steps": [
|
||||
{
|
||||
"id": 1,
|
||||
"name": "메뉴 진입: 고객센터 > 1:1 문의",
|
||||
"action": "menu_navigate",
|
||||
"level1": "고객센터",
|
||||
"level2": "1:1 문의",
|
||||
"expected": {
|
||||
"url_contains": "/customer-center",
|
||||
"visible": ["문의", "1:1"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 2,
|
||||
"name": "필수 검증 #5: 목업 페이지 감지",
|
||||
"action": "verify_not_mockup",
|
||||
"checks": [
|
||||
"문의 목록 표시 또는 문의 작성 폼",
|
||||
"문의하기 버튼 존재"
|
||||
],
|
||||
"expected": "정상 페이지 (목업 아님)"
|
||||
},
|
||||
{
|
||||
"id": 3,
|
||||
"name": "1:1 문의 페이지 구조 확인",
|
||||
"action": "verify_elements",
|
||||
"checks": [
|
||||
"내 문의 목록",
|
||||
"문의하기 버튼",
|
||||
"상태 필터 (대기/완료)"
|
||||
],
|
||||
"expected": "문의 페이지 구조 정상"
|
||||
},
|
||||
{
|
||||
"id": 4,
|
||||
"phase": "CREATE",
|
||||
"name": "[CREATE] 문의하기 버튼 클릭",
|
||||
"action": "click_if_exists",
|
||||
"target": "button:has-text('문의'), button:has-text('작성'), button:has-text('등록')",
|
||||
"expected": {
|
||||
"modal_open": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"phase": "CREATE",
|
||||
"name": "[CREATE] 카테고리 선택",
|
||||
"action": "click_if_exists",
|
||||
"target": "select[name*='category'], button:has-text('카테고리')",
|
||||
"expected": "카테고리 선택 가능"
|
||||
},
|
||||
{
|
||||
"id": 6,
|
||||
"phase": "CREATE",
|
||||
"name": "[CREATE] 제목 입력",
|
||||
"action": "fill",
|
||||
"target": "input[name*='title'], input[placeholder*='제목']",
|
||||
"value": "E2E_TEST_문의_{timestamp}",
|
||||
"clear": true
|
||||
},
|
||||
{
|
||||
"id": 7,
|
||||
"phase": "CREATE",
|
||||
"name": "[CREATE] 내용 입력",
|
||||
"action": "click_if_exists",
|
||||
"target": "textarea[name*='content'], textarea[placeholder*='내용']"
|
||||
},
|
||||
{
|
||||
"id": 8,
|
||||
"phase": "CREATE",
|
||||
"name": "[CREATE] 필수 검증 #2: 문의 등록",
|
||||
"action": "click_if_exists",
|
||||
"target": "button:has-text('등록'), button:has-text('문의하기'), button:has-text('확인')",
|
||||
"verify": {
|
||||
"url_maintained": true,
|
||||
"no_error_page": true,
|
||||
"api_call": "POST /api/v1/customer/inquiries",
|
||||
"toast": "등록|접수|완료|성공"
|
||||
},
|
||||
"expected": "문의 등록 완료"
|
||||
},
|
||||
{
|
||||
"id": 9,
|
||||
"phase": "READ",
|
||||
"name": "[READ] 등록된 문의 확인",
|
||||
"action": "verify_detail",
|
||||
"checks": [
|
||||
"E2E_TEST_문의 목록에 표시",
|
||||
"대기중/접수 상태"
|
||||
],
|
||||
"expected": "등록된 문의 확인"
|
||||
},
|
||||
{
|
||||
"id": 10,
|
||||
"phase": "READ",
|
||||
"name": "[READ] 문의 상세 조회",
|
||||
"action": "click_if_exists",
|
||||
"target": "table tbody tr:has-text('E2E_TEST'), [class*='list'] [class*='item']:has-text('E2E_TEST')",
|
||||
"expected": {
|
||||
"detail_view": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": 11,
|
||||
"name": "문의 상세 정보 확인",
|
||||
"action": "verify_detail",
|
||||
"checks": [
|
||||
"제목 표시",
|
||||
"내용 표시",
|
||||
"등록일 표시",
|
||||
"처리 상태 표시"
|
||||
],
|
||||
"expected": "문의 상세 정보 표시"
|
||||
},
|
||||
{
|
||||
"id": 12,
|
||||
"name": "답변 영역 확인",
|
||||
"action": "verify_elements",
|
||||
"checks": [
|
||||
"답변 영역 존재 (답변 대기 또는 답변 내용)"
|
||||
],
|
||||
"expected": "답변 영역 표시"
|
||||
},
|
||||
{
|
||||
"id": 13,
|
||||
"name": "목록으로 돌아가기",
|
||||
"action": "click_if_exists",
|
||||
"target": "button:has-text('목록'), a:has-text('목록'), [class*='back']",
|
||||
"expected": "목록 페이지로 복귀"
|
||||
},
|
||||
{
|
||||
"id": 14,
|
||||
"name": "상태별 필터 확인",
|
||||
"action": "verify_elements",
|
||||
"checks": [
|
||||
"전체/대기중/답변완료 필터"
|
||||
],
|
||||
"expected": "상태 필터 표시"
|
||||
},
|
||||
{
|
||||
"id": 15,
|
||||
"phase": "DELETE",
|
||||
"name": "[DELETE] 문의 삭제 (가능 시)",
|
||||
"action": "click_if_exists",
|
||||
"target": "button:has-text('삭제'), button:has-text('취소')",
|
||||
"expected": "삭제 기능 확인 (없을 수 있음)"
|
||||
}
|
||||
],
|
||||
"expectedAPIs": [
|
||||
{
|
||||
"method": "GET",
|
||||
"endpoint": "/api/v1/customer/inquiries",
|
||||
"description": "문의 목록 조회"
|
||||
},
|
||||
{
|
||||
"method": "POST",
|
||||
"endpoint": "/api/v1/customer/inquiries",
|
||||
"description": "문의 등록"
|
||||
},
|
||||
{
|
||||
"method": "GET",
|
||||
"endpoint": "/api/v1/customer/inquiries/:id",
|
||||
"description": "문의 상세 조회"
|
||||
}
|
||||
],
|
||||
"requiredVerifications": [
|
||||
{
|
||||
"id": 2,
|
||||
"name": "저장 버튼",
|
||||
"steps": [8],
|
||||
"criteria": "API 호출 + 성공 토스트 + 목록 반영"
|
||||
},
|
||||
{
|
||||
"id": 5,
|
||||
"name": "목업 페이지 감지",
|
||||
"steps": [2],
|
||||
"criteria": "문의 목록/작성 폼, 문의하기 버튼 존재"
|
||||
}
|
||||
],
|
||||
"rollbackPlan": {
|
||||
"onCreateFail": "등록 모달 닫고 재시도",
|
||||
"cleanupRequired": "E2E_TEST_문의_* 패턴 데이터 삭제 (관리자 권한 필요 시 수동)"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user