Files
sam-scenarios/accounting-payment.json
김보곤 24509d881e fix: 실제 다운로드 버튼이 없는 6개 페이지 시나리오에서 엑셀/인쇄/PDF 스텝 제거
- accounting-purchase (매입관리): 엑셀/인쇄 스텝 제거
- accounting-sales (매출관리): 엑셀/인쇄 스텝 제거
- accounting-expense-forecast (지출예상내역서): 인쇄/엑셀/PDF 스텝 제거
- accounting-payment (결제내역): 엑셀 다운로드 스텝 제거
- purchase-status (구매현황): 엑셀 다운로드 스텝 제거
- sales-client (거래처관리): 엑셀 다운로드 스텝 제거
2026-03-04 22:03:46 +09:00

228 lines
6.4 KiB
JSON

{
"id": "accounting-payment",
"name": "결제내역 테스트",
"screenshotPolicy": {
"onErrorOnly": true,
"captureOn": [
"error",
"fail",
"timeout",
"404",
"500",
"blocked"
]
},
"description": "회계관리 > 결제내역 메뉴의 결제 내역 조회/필터/검색 기능 테스트",
"baseUrl": "https://dev.codebridge-x.com",
"menuNavigation": {
"level1": "회계관리",
"level2": "결제내역",
"expectedUrl": "/payment-history",
"searchWithinParent": true,
"closeOtherMenus": true
},
"auth": {
"username": "TestUser5",
"password": "password123!"
},
"steps": [
{
"id": 1,
"name": "메뉴 진입: 회계관리 > 결제내역",
"action": "menu_navigate",
"level1": "회계관리",
"level2": "결제내역",
"expected": {
"url_contains": "/payment",
"visible": [
"결제내역",
"결제"
]
}
},
{
"id": 2,
"name": "URL 검증",
"action": "verify_url",
"expected": {
"url_contains": "/payment-history"
}
},
{
"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_elements",
"checks": [
"시작일 선택",
"종료일 선택",
"결제방법 필터",
"조회 버튼"
],
"expected": "결제내역 조회 폼 정상 표시"
},
{
"id": 6,
"phase": "FILTER",
"name": "[FILTER] 기간 필터 - 시작일",
"action": "click_if_exists",
"target": "input[type='date']:first-of-type, input[name*='start']",
"value": "2025-01-01",
"expected": "시작일 입력"
},
{
"id": 7,
"phase": "FILTER",
"name": "[FILTER] 기간 필터 - 종료일",
"action": "click_if_exists",
"target": "input[type='date']:last-of-type, input[name*='end']",
"value": "2025-12-31",
"expected": "종료일 입력"
},
{
"id": 8,
"phase": "FILTER",
"name": "[FILTER] 조회 버튼 클릭",
"action": "click_if_exists",
"target": "button:has-text('조회'), button:has-text('검색')",
"expected": {
"data_loaded": true,
"api_call": "GET /api/v1/payments"
}
},
{
"id": 9,
"phase": "READ",
"name": "[READ] 결제 테이블 구조 확인",
"action": "verify_table",
"checks": [
"결제일 컬럼 표시",
"결제금액 컬럼 표시",
"결제방법 컬럼 표시",
"상태 컬럼 표시"
],
"expected": "결제 테이블 정상 표시"
},
{
"id": 10,
"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": 11,
"phase": "READ",
"name": "[READ] 결제 데이터 표시 확인",
"action": "verify_detail",
"checks": [
"테이블에 데이터 행 존재 또는 '데이터 없음' 메시지",
"금액 포맷 정상"
],
"expected": "결제 데이터 정상 표시"
},
{
"id": 12,
"phase": "FILTER",
"name": "[FILTER] 결제방법 필터 테스트",
"action": "click_if_exists",
"target": "select[name*='method'], button:has-text('결제방법'), [class*='filter']:has-text('방법')",
"expected": "결제방법 필터 옵션 표시"
},
{
"id": 13,
"phase": "FILTER",
"name": "[FILTER] 상태 필터 테스트",
"action": "verify_elements",
"checks": [
"완료/취소/대기 등 상태 필터 가능"
],
"expected": "상태 필터 기능 확인"
},
{
"id": 14,
"phase": "READ",
"name": "[READ] 결제 상세 조회",
"action": "click_if_exists",
"target": "table tbody tr:first-child, [class*='list'] [class*='item']:first-child",
"expected": {
"detail_view": true
}
},
{
"id": 15,
"name": "결제 상세 정보 확인",
"action": "verify_detail",
"checks": [
"결제일시 상세",
"결제금액 상세",
"결제방법 상세",
"거래번호/승인번호"
],
"expected": "결제 상세 정보 표시"
},
{
"id": 16,
"name": "목록으로 돌아가기",
"action": "click_if_exists",
"target": "button:has-text('목록'), button:has-text('뒤로'), [class*='back']",
"expected": "목록 페이지로 복귀"
},
{
"id": 17,
"name": "합계 금액 표시 확인",
"action": "verify_elements",
"checks": [
"총 결제금액 합계 표시"
],
"expected": "합계 영역 표시"
},
{
"id": 18,
"name": "콘솔 에러 확인",
"action": "verify_element",
"target": "body"
}
],
"expectedAPIs": [
{
"method": "GET",
"endpoint": "/api/v1/payments",
"description": "결제내역 목록 조회"
},
{
"method": "GET",
"endpoint": "/api/v1/payments/:id",
"description": "결제 상세 조회"
}
],
"requiredVerifications": [
{
"id": 5,
"name": "목업 페이지 감지",
"steps": [
2
],
"criteria": "결제 내역 목록, 기간 필터, 검색 기능 존재"
}
],
"rollbackPlan": {
"note": "조회 전용 페이지로 데이터 변경 없음"
}
}