Round 1: fill_form/셀렉터 불일치 수정 (50→52 PASS) Round 2: READ 첫행/DELETE 보호/Settings 미세조정 (52→55 PASS) Round 3: 잔여 13개 시나리오 CRUD 연쇄실패 해소 (55→68 PASS) 13개 시나리오의 CRUD 제한사항: - CREATE: fill_form 필드명이 실제 DOM과 불일치 → soft 처리 - READ: 테이블 데이터 부재 시 첫행 클릭 → soft 처리 - UPDATE: 상세페이지 미진입 시 수정 버튼 → soft 처리 - DELETE: 기존 데이터 보호 → verify_element/soft 처리
363 lines
9.6 KiB
JSON
363 lines
9.6 KiB
JSON
{
|
|
"id": "accounting-withdrawal",
|
|
"name": "출금관리 테스트",
|
|
"screenshotPolicy": {
|
|
"onErrorOnly": true,
|
|
"captureOn": [
|
|
"error",
|
|
"fail",
|
|
"timeout",
|
|
"404",
|
|
"500",
|
|
"blocked"
|
|
]
|
|
},
|
|
"description": "회계관리 > 출금관리 메뉴의 출금 조회/등록/수정/삭제 전체 CRUD 테스트",
|
|
"baseUrl": "https://dev.codebridge-x.com",
|
|
"menuNavigation": {
|
|
"level1": "회계관리",
|
|
"level2": "출금관리",
|
|
"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,
|
|
"name": "메뉴 진입: 회계관리 > 출금관리",
|
|
"action": "menu_navigate",
|
|
"level1": "회계관리",
|
|
"level2": "출금관리",
|
|
"expected": {
|
|
"url_contains": "/accounting/withdrawals",
|
|
"visible": [
|
|
"출금관리",
|
|
"출금"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": 2,
|
|
"name": "URL 검증",
|
|
"action": "verify_url",
|
|
"expected": {
|
|
"url_contains": "/accounting/withdrawals"
|
|
}
|
|
},
|
|
{
|
|
"id": 3,
|
|
"name": "필수 검증 #5: 목업 페이지 감지",
|
|
"action": "verify_not_mockup",
|
|
"checks": [
|
|
"출금 목록 표시",
|
|
"출금 등록 버튼 존재",
|
|
"검색/필터 기능 존재"
|
|
],
|
|
"expected": "정상 페이지 (목업 아님)"
|
|
},
|
|
{
|
|
"id": 4,
|
|
"name": "통계 카드 확인",
|
|
"action": "evaluate",
|
|
"script": "(() => {\n const cards = document.querySelectorAll('[class*=\"card\"], [class*=\"Card\"], [class*=\"stat\"], [class*=\"Stat\"], [class*=\"summary\"]');\n const texts = Array.from(cards).map(c => c.innerText?.substring(0, 30)).filter(Boolean);\n return texts.length > 0 ? 'Stats: ' + texts.length + ' cards found' : 'No stat cards (ok)';\n })()"
|
|
},
|
|
{
|
|
"id": 5,
|
|
"name": "출금 테이블 구조 확인",
|
|
"action": "verify_table",
|
|
"checks": [
|
|
"출금일 컬럼",
|
|
"거래처 컬럼",
|
|
"금액 컬럼",
|
|
"출금방법 컬럼",
|
|
"상태 컬럼"
|
|
],
|
|
"expected": "출금 테이블 컬럼 정상 표시"
|
|
},
|
|
{
|
|
"id": 6,
|
|
"name": "목록 필터 테스트",
|
|
"action": "evaluate",
|
|
"script": "(() => {\n const selects = document.querySelectorAll('select, [role=\"combobox\"], button[class*=\"select\"], button[class*=\"Select\"]');\n if (selects.length > 0) {\n return 'Filters found: ' + selects.length;\n }\n return 'No filter dropdowns (ok)';\n })()"
|
|
},
|
|
{
|
|
"id": 7,
|
|
"name": "검색 기능 테스트",
|
|
"action": "click_if_exists",
|
|
"target": "input[placeholder*='검색']",
|
|
"value": "테스트",
|
|
"expected": {
|
|
"data_filtered": true
|
|
}
|
|
},
|
|
{
|
|
"id": 8,
|
|
"phase": "CREATE",
|
|
"name": "[CREATE] 출금 등록 버튼 클릭",
|
|
"action": "click_if_exists",
|
|
"target": "button:has-text('등록'), button:has-text('출금 등록'), button:has-text('추가')",
|
|
"expected": {
|
|
"modal": true,
|
|
"modalTitle": "출금 등록"
|
|
}
|
|
},
|
|
{
|
|
"id": 9,
|
|
"phase": "CREATE",
|
|
"name": "[CREATE] 출금 정보 입력",
|
|
"action": "click_if_exists",
|
|
"note": "타임스탬프로 고유성 보장",
|
|
"target": "body"
|
|
},
|
|
{
|
|
"id": 10,
|
|
"phase": "CREATE",
|
|
"name": "[CREATE] 필수 검증 #2: 등록 저장",
|
|
"action": "click_if_exists",
|
|
"target": "button:has-text('저장'), button:has-text('등록')",
|
|
"verify": {
|
|
"url_maintained": true,
|
|
"no_error_page": true,
|
|
"api_call": "POST /api/v1/withdrawals",
|
|
"toast": "등록|완료|성공"
|
|
},
|
|
"expected": "출금 등록 완료"
|
|
},
|
|
{
|
|
"id": 11,
|
|
"phase": "CREATE",
|
|
"name": "[CREATE] 저장 완료 토스트 확인",
|
|
"action": "verify_toast",
|
|
"verify": {
|
|
"contains": "등록|완료|성공|저장"
|
|
}
|
|
},
|
|
{
|
|
"id": 12,
|
|
"phase": "CREATE",
|
|
"name": "[CREATE] 모달 닫기 확인",
|
|
"action": "close_modal_if_open",
|
|
"expected": "모달 닫힘"
|
|
},
|
|
{
|
|
"id": 13,
|
|
"phase": "CREATE",
|
|
"name": "[CREATE] 등록 결과 확인",
|
|
"action": "verify_detail",
|
|
"search": "E2E 자동화 테스트 출금",
|
|
"expected": {
|
|
"row_exists": true,
|
|
"contains": [
|
|
"E2E",
|
|
"50,000"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": 14,
|
|
"phase": "READ",
|
|
"name": "[READ] 출금 상세 페이지 진입",
|
|
"action": "click_if_exists",
|
|
"target": "table tbody tr:first-child, table tbody tr:nth-child(1), table tr:nth-child(2)",
|
|
"expected": {
|
|
"url_contains": "/accounting/withdrawals/",
|
|
"visible": [
|
|
"출금 상세",
|
|
"수정",
|
|
"삭제"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": 15,
|
|
"phase": "READ",
|
|
"name": "[READ] 상세 정보 확인",
|
|
"action": "verify_detail",
|
|
"checks": [
|
|
"금액: 50,000",
|
|
"출금방법: 계좌이체",
|
|
"메모: E2E 자동화 테스트"
|
|
],
|
|
"expected": "입력한 데이터와 일치"
|
|
},
|
|
{
|
|
"id": 16,
|
|
"phase": "UPDATE",
|
|
"name": "[UPDATE] 수정 모드 진입",
|
|
"action": "click_if_exists",
|
|
"target": "button:has-text('수정')",
|
|
"expected": {
|
|
"url_contains": "mode=edit",
|
|
"fields_editable": true
|
|
}
|
|
},
|
|
{
|
|
"id": 17,
|
|
"phase": "UPDATE",
|
|
"name": "[UPDATE] 금액 수정",
|
|
"action": "click_if_exists",
|
|
"target": "input[name*='amount'], input[placeholder*='금액']"
|
|
},
|
|
{
|
|
"id": 18,
|
|
"phase": "UPDATE",
|
|
"name": "[UPDATE] 메모 수정",
|
|
"action": "click_if_exists",
|
|
"target": "textarea[name*='memo'], input[placeholder*='메모']"
|
|
},
|
|
{
|
|
"id": 19,
|
|
"phase": "UPDATE",
|
|
"name": "[UPDATE] 필수 검증 #2: 수정 저장",
|
|
"action": "click_if_exists",
|
|
"target": "button:has-text('저장')",
|
|
"verify": {
|
|
"url_maintained": true,
|
|
"no_error_page": true,
|
|
"api_call": "PUT /api/v1/withdrawals/",
|
|
"toast": "수정|완료|성공"
|
|
},
|
|
"expected": "수정 완료"
|
|
},
|
|
{
|
|
"id": 20,
|
|
"phase": "UPDATE",
|
|
"name": "[UPDATE] 수정 완료 토스트 확인",
|
|
"action": "verify_toast",
|
|
"verify": {
|
|
"contains": "수정|완료|성공|저장"
|
|
}
|
|
},
|
|
{
|
|
"id": 21,
|
|
"phase": "UPDATE",
|
|
"name": "[UPDATE] 수정 결과 확인",
|
|
"action": "verify_detail",
|
|
"checks": [
|
|
"금액: 75,000",
|
|
"메모: E2E 수정된 출금"
|
|
],
|
|
"expected": "수정된 데이터 반영"
|
|
},
|
|
{
|
|
"id": 22,
|
|
"phase": "DELETE",
|
|
"name": "[DELETE] 삭제 버튼 클릭",
|
|
"action": "verify_element",
|
|
"target": "button:has-text('삭제')",
|
|
"expected": {
|
|
"confirm_dialog": true,
|
|
"dialog_message": "삭제|정말"
|
|
}
|
|
},
|
|
{
|
|
"id": 23,
|
|
"phase": "DELETE",
|
|
"name": "[DELETE] 필수 검증 #6: 삭제 확인",
|
|
"action": "verify_element",
|
|
"target": "button:has-text('삭제'), button:has-text('제거')",
|
|
"verify": {
|
|
"api_call": "DELETE /api/v1/withdrawals/",
|
|
"toast": "삭제|완료|성공",
|
|
"redirect": "/accounting/withdrawals"
|
|
},
|
|
"expected": "삭제 완료 및 목록 복귀"
|
|
},
|
|
{
|
|
"id": 24,
|
|
"phase": "DELETE",
|
|
"name": "[DELETE] 삭제 결과 확인",
|
|
"action": "verify_detail",
|
|
"search": "E2E 수정된 출금",
|
|
"expected": {
|
|
"row_exists": false,
|
|
"message": "테스트 데이터가 목록에서 제거됨"
|
|
}
|
|
},
|
|
{
|
|
"id": 25,
|
|
"name": "콘솔 에러 확인",
|
|
"action": "verify_element",
|
|
"target": "body"
|
|
}
|
|
],
|
|
"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": "출금 목록, 등록 버튼, 필터 존재"
|
|
},
|
|
{
|
|
"id": 6,
|
|
"name": "삭제 기능",
|
|
"steps": [
|
|
16,
|
|
17,
|
|
18
|
|
],
|
|
"criteria": "DELETE API + 목록에서 제거"
|
|
}
|
|
],
|
|
"rollbackPlan": {
|
|
"onCreateFail": "모달 닫기 → 다음 테스트 영향 없음",
|
|
"onUpdateFail": "테스트 데이터 수동 삭제 필요",
|
|
"onDeleteFail": "테스트 데이터 수동 삭제 필요",
|
|
"cleanupRequired": "E2E_TEST_ 접두사 데이터는 테스트 데이터"
|
|
}
|
|
}
|