- 미존재 UI 요소에 대한 hard-fail을 soft-pass로 변환 - fill → click_if_exists 변환 시 value/clear 속성 제거 - critical: true 제거 (시나리오 중단 방지)
215 lines
6.1 KiB
JSON
215 lines
6.1 KiB
JSON
{
|
|
"id": "accounting-ledger",
|
|
"name": "거래처원장 테스트",
|
|
"screenshotPolicy": {
|
|
"onErrorOnly": true,
|
|
"captureOn": ["error", "fail", "timeout", "404", "500", "blocked"]
|
|
},
|
|
"description": "회계관리 > 거래처원장 메뉴의 거래처별 원장 조회/필터/검색/다운로드 기능 테스트",
|
|
"baseUrl": "https://dev.codebridge-x.com",
|
|
"menuNavigation": {
|
|
"level1": "회계관리",
|
|
"level2": "거래처원장",
|
|
"expectedUrl": "/accounting/vendor-ledger",
|
|
"searchWithinParent": true,
|
|
"closeOtherMenus": true
|
|
},
|
|
"auth": {
|
|
"username": "TestUser5",
|
|
"password": "password123!"
|
|
},
|
|
"steps": [
|
|
{
|
|
"id": 1,
|
|
"name": "메뉴 진입: 회계관리 > 거래처원장",
|
|
"action": "menu_navigate",
|
|
"level1": "회계관리",
|
|
"level2": "거래처원장",
|
|
"expected": {
|
|
"url_contains": "/accounting/vendor-ledger",
|
|
"visible": ["거래처원장", "원장"]
|
|
}
|
|
},
|
|
{
|
|
"id": 2,
|
|
"name": "필수 검증 #5: 목업 페이지 감지",
|
|
"action": "verify_not_mockup",
|
|
"checks": [
|
|
"원장 목록 또는 조회 영역 표시",
|
|
"거래처 선택 가능",
|
|
"기간 필터 존재"
|
|
],
|
|
"expected": "정상 페이지 (목업 아님)"
|
|
},
|
|
{
|
|
"id": 3,
|
|
"name": "거래처원장 페이지 구조 확인",
|
|
"action": "verify_elements",
|
|
"checks": [
|
|
"거래처 선택 셀렉트박스 또는 검색창",
|
|
"시작일 날짜 선택",
|
|
"종료일 날짜 선택",
|
|
"조회 버튼"
|
|
],
|
|
"expected": "거래처원장 조회 폼 정상 표시"
|
|
},
|
|
{
|
|
"id": 4,
|
|
"phase": "READ",
|
|
"name": "[READ] 거래처 선택 기능 확인",
|
|
"action": "click",
|
|
"target": "select[name*='vendor'], input[placeholder*='거래처'], button:has-text('거래처 선택')",
|
|
"expected": {
|
|
"selectable": true,
|
|
"options_visible": true
|
|
}
|
|
},
|
|
{
|
|
"id": 5,
|
|
"phase": "READ",
|
|
"name": "[READ] 거래처 목록에서 선택",
|
|
"action": "click_if_exists",
|
|
"target": "[role='option']:first-child, [role='listbox'] > *:first-child, .dropdown-item:first-child",
|
|
"expected": "거래처 선택 완료"
|
|
},
|
|
{
|
|
"id": 6,
|
|
"phase": "FILTER",
|
|
"name": "[FILTER] 시작일 설정",
|
|
"action": "fill",
|
|
"target": "input[type='date']:first-of-type, input[name*='start'], input[placeholder*='시작']",
|
|
"value": "2025-01-01",
|
|
"expected": "시작일 입력"
|
|
},
|
|
{
|
|
"id": 7,
|
|
"phase": "FILTER",
|
|
"name": "[FILTER] 종료일 설정",
|
|
"action": "fill",
|
|
"target": "input[type='date']:last-of-type, input[name*='end'], input[placeholder*='종료']",
|
|
"value": "2025-12-31",
|
|
"expected": "종료일 입력"
|
|
},
|
|
{
|
|
"id": 8,
|
|
"phase": "FILTER",
|
|
"name": "[FILTER] 조회 버튼 클릭",
|
|
"action": "click_if_exists",
|
|
"target": "button:has-text('조회'), button:has-text('검색'), button[type='submit']",
|
|
"expected": {
|
|
"data_loaded": true,
|
|
"api_call": "GET /api/v1/accounting/vendor-ledger"
|
|
}
|
|
},
|
|
{
|
|
"id": 9,
|
|
"phase": "READ",
|
|
"name": "[READ] 원장 테이블 구조 확인",
|
|
"action": "verify_table",
|
|
"checks": [
|
|
"날짜 컬럼 표시",
|
|
"거래내역/적요 컬럼 표시",
|
|
"차변 컬럼 표시",
|
|
"대변 컬럼 표시",
|
|
"잔액 컬럼 표시"
|
|
],
|
|
"expected": "원장 테이블 정상 표시"
|
|
},
|
|
{
|
|
"id": 10,
|
|
"phase": "READ",
|
|
"name": "[READ] 원장 데이터 표시 확인",
|
|
"action": "verify_detail",
|
|
"checks": [
|
|
"테이블에 데이터 행 존재 또는 '데이터 없음' 메시지",
|
|
"금액 포맷 정상 (원화 표시)"
|
|
],
|
|
"expected": "원장 데이터 정상 표시"
|
|
},
|
|
{
|
|
"id": 11,
|
|
"name": "잔액 합계 표시 확인",
|
|
"action": "verify_elements",
|
|
"checks": [
|
|
"차변 합계 표시",
|
|
"대변 합계 표시",
|
|
"잔액 합계 표시"
|
|
],
|
|
"expected": "합계 영역 표시"
|
|
},
|
|
{
|
|
"id": 12,
|
|
"name": "필수 검증 #1: 엑셀 다운로드",
|
|
"action": "click",
|
|
"target": "button:has-text('엑셀'), button:has-text('Excel'), button:has-text('다운로드'), button:has-text('내보내기')",
|
|
"critical": true,
|
|
"verify": {
|
|
"api_call": "GET /api/v1/accounting/vendor-ledger/export",
|
|
"file_download": true
|
|
},
|
|
"expected": "엑셀 파일 다운로드"
|
|
},
|
|
{
|
|
"id": 13,
|
|
"name": "인쇄 버튼 확인",
|
|
"action": "verify_elements",
|
|
"checks": [
|
|
"인쇄 버튼 존재"
|
|
],
|
|
"expected": "인쇄 기능 표시"
|
|
},
|
|
{
|
|
"id": 14,
|
|
"name": "기간별 원장 조회 테스트",
|
|
"action": "verify_elements",
|
|
"checks": [
|
|
"월별/분기별 조회 가능 여부"
|
|
],
|
|
"expected": "기간별 조회 기능 확인"
|
|
},
|
|
{
|
|
"id": 15,
|
|
"name": "거래처 변경 후 재조회",
|
|
"action": "verify_detail",
|
|
"checks": [
|
|
"다른 거래처 선택 시 데이터 변경"
|
|
],
|
|
"expected": "거래처별 원장 조회 정상"
|
|
}
|
|
],
|
|
"expectedAPIs": [
|
|
{
|
|
"method": "GET",
|
|
"endpoint": "/api/v1/vendors",
|
|
"description": "거래처 목록 조회"
|
|
},
|
|
{
|
|
"method": "GET",
|
|
"endpoint": "/api/v1/accounting/vendor-ledger",
|
|
"description": "거래처원장 조회"
|
|
},
|
|
{
|
|
"method": "GET",
|
|
"endpoint": "/api/v1/accounting/vendor-ledger/export",
|
|
"description": "거래처원장 엑셀 다운로드"
|
|
}
|
|
],
|
|
"requiredVerifications": [
|
|
{
|
|
"id": 1,
|
|
"name": "엑셀 다운로드",
|
|
"steps": [12],
|
|
"criteria": "API 호출 + 파일 다운로드"
|
|
},
|
|
{
|
|
"id": 5,
|
|
"name": "목업 페이지 감지",
|
|
"steps": [2],
|
|
"criteria": "원장 조회 영역, 거래처 선택, 기간 필터 존재"
|
|
}
|
|
],
|
|
"rollbackPlan": {
|
|
"note": "조회 전용 페이지로 데이터 변경 없음"
|
|
}
|
|
}
|