Files
sam-scenarios/accounting-daily-report.json

201 lines
5.4 KiB
JSON
Raw Normal View History

{
"id": "accounting-daily-report",
"name": "일일 일보 테스트",
"screenshotPolicy": {
"onErrorOnly": true,
"captureOn": ["error", "fail", "timeout", "404", "500", "blocked"]
},
"description": "회계관리 > 일일 일보 메뉴의 일일 리포트 조회/날짜선택/인쇄/다운로드 기능 테스트",
"baseUrl": "https://dev.codebridge-x.com",
"menuNavigation": {
"level1": "회계관리",
"level2": "일일 일보",
"expectedUrl": "/accounting/daily-report",
"searchWithinParent": true,
"closeOtherMenus": true
},
"auth": {
"username": "TestUser5",
"password": "password123!"
},
"steps": [
{
"id": 1,
"name": "메뉴 진입: 회계관리 > 일일 일보",
"action": "menu_navigate",
"level1": "회계관리",
"level2": "일일 일보",
"expected": {
"url_contains": "/accounting",
"visible": ["일일", "일보"]
}
},
{
"id": 2,
"name": "필수 검증 #5: 목업 페이지 감지",
"action": "verify_not_mockup",
"checks": [
"일일 일보 리포트 영역 표시",
"날짜 선택 가능",
"조회 기능 존재"
],
"expected": "정상 페이지 (목업 아님)"
},
{
"id": 3,
"name": "일일 일보 페이지 구조 확인",
"action": "verify_elements",
"checks": [
"날짜 선택 (DatePicker)",
"조회 버튼",
"리포트 표시 영역"
],
"expected": "일일 일보 페이지 정상 표시"
},
{
"id": 4,
"phase": "READ",
"name": "[READ] 오늘 날짜 일보 확인",
"action": "verify_detail",
"checks": [
"현재 날짜 기준 일보 표시",
"리포트 데이터 또는 '데이터 없음' 메시지"
],
"expected": "오늘 일보 조회"
},
{
"id": 5,
"phase": "FILTER",
"name": "[FILTER] 날짜 선택",
"action": "click",
"target": "input[type='date'], [class*='datepicker'], button:has-text('날짜')",
"expected": "날짜 선택기 열림"
},
{
"id": 6,
"phase": "FILTER",
"name": "[FILTER] 특정 날짜 선택",
"action": "fill",
"target": "input[type='date'], input[name*='date']",
"value": "2025-01-15",
"expected": "날짜 입력"
},
{
"id": 7,
"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/daily-report"
}
},
{
"id": 8,
"phase": "READ",
"name": "[READ] 일보 리포트 내용 확인",
"action": "verify_elements",
"checks": [
"입금 내역 영역",
"출금 내역 영역",
"잔액 현황"
],
"expected": "일보 리포트 상세 표시"
},
{
"id": 9,
"name": "입금 합계 확인",
"action": "verify_detail",
"checks": [
"입금 합계 금액 표시"
],
"expected": "입금 합계 표시"
},
{
"id": 10,
"name": "출금 합계 확인",
"action": "verify_detail",
"checks": [
"출금 합계 금액 표시"
],
"expected": "출금 합계 표시"
},
{
"id": 11,
"name": "잔액 계산 확인",
"action": "verify_detail",
"checks": [
"전일 잔액",
"금일 입금",
"금일 출금",
"금일 잔액"
],
"expected": "잔액 계산 정상"
},
{
"id": 12,
"name": "필수 검증 #1: 인쇄 기능",
"action": "click_if_exists",
"target": "button:has-text('인쇄'), button:has-text('Print'), button[class*='print']",
"expected": "인쇄 다이얼로그 표시"
},
{
"id": 13,
"name": "인쇄 창 닫기",
"action": "close_modal_if_open",
"expected": "인쇄 창 닫힘"
},
{
"id": 14,
"name": "엑셀 다운로드",
"action": "click",
"target": "button:has-text('엑셀'), button:has-text('Excel'), button:has-text('다운로드')",
"verify": {
"api_call": "GET /api/v1/accounting/daily-report/export",
"file_download": true
},
"expected": "엑셀 파일 다운로드"
},
{
"id": 15,
"name": "이전/다음 날짜 이동",
"action": "verify_elements",
"checks": [
"이전 날짜 버튼 또는 화살표",
"다음 날짜 버튼 또는 화살표"
],
"expected": "날짜 이동 버튼 표시"
}
],
"expectedAPIs": [
{
"method": "GET",
"endpoint": "/api/v1/accounting/daily-report",
"description": "일일 일보 조회"
},
{
"method": "GET",
"endpoint": "/api/v1/accounting/daily-report/export",
"description": "일일 일보 엑셀 다운로드"
}
],
"requiredVerifications": [
{
"id": 1,
"name": "인쇄 기능",
"steps": [12],
"criteria": "인쇄 다이얼로그 표시"
},
{
"id": 5,
"name": "목업 페이지 감지",
"steps": [2],
"criteria": "일보 리포트 영역, 날짜 선택, 조회 기능 존재"
}
],
"rollbackPlan": {
"note": "조회 전용 페이지로 데이터 변경 없음"
}
}