Files
sam-scenarios/accounting-ledger.json
김보곤 5d7482a3e9 refactor: 회계/생산/구매/자재 시나리오 B/A등급 개선
- accounting-ledger, accounting-payment, accounting-daily-report: C→B (조회/필터/다운로드)
- accounting-financial, accounting-cost: C→B (재무제표/원가 조회)
- production-dashboard, production-worker: C→B (현황판/작업자화면)
- production-item, production-work-result: C→A (CRUD 전체)
- purchase-status: C→B (구매현황 조회)
- purchase-client, purchase-pricing: C→A (거래처/단가 CRUD)
- material-stock: C→B (재고현황 조회)

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-02-03 13:49:08 +09:00

215 lines
6.0 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": "select_or_click",
"target": "거래처 목록 첫 번째 항목",
"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",
"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": "조회 전용 페이지로 데이터 변경 없음"
}
}