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

31 lines
2.7 KiB
JSON
Raw Permalink 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": "페이지 로드 대기", "action": "wait", "timeout": 3000 },
{ "id": 3, "name": "필수 검증: 목업 페이지 감지", "action": "verify_not_mockup", "checks": ["일보 데이터 표시", "필터 또는 날짜 선택 가능"], "expected": "정상 페이지 (목업 아님)" },
{ "id": 4, "name": "테이블 로드 대기", "action": "wait_for_table", "timeout": 5000 },
{ "id": 5, "name": "통계 카드 확인", "action": "evaluate", "script": "(() => { const cards = document.querySelectorAll('[class*=\"card\"], [class*=\"Card\"], [class*=\"stat\"], [class*=\"summary\"]'); return cards.length > 0 ? 'Stats: ' + cards.length + ' cards' : 'No stat cards (ok)'; })()" },
{ "id": 6, "name": "일보 테이블 구조 확인", "action": "verify_table", "checks": ["일보 데이터 컬럼"], "expected": "일보 테이블 표시" },
{ "id": 7, "phase": "FILTER", "name": "[FILTER] 날짜 필터", "action": "click_if_exists", "target": "input[type='date']:first-of-type, [class*='datepicker']:first-of-type", "expected": "날짜 선택 열림" },
{ "id": 8, "phase": "FILTER", "name": "[FILTER] 조회 버튼", "action": "click_if_exists", "target": "button:has-text('조회'), button:has-text('검색'), button:has-text('적용')", "expected": "필터 적용" },
{ "id": 9, "name": "인쇄/다운로드 버튼 확인", "action": "evaluate", "script": "(() => { const btns = Array.from(document.querySelectorAll('button')).filter(b => ['인쇄','엑셀','Excel','다운로드','PDF'].some(t => b.innerText?.includes(t))); return btns.length > 0 ? 'Export buttons: ' + btns.map(b=>b.innerText.trim()).join(', ') : 'No export buttons (ok)'; })()" },
{ "id": 10, "name": "콘솔 에러 확인", "action": "verify_element", "target": "body" }
],
"rollbackPlan": { "note": "조회 전용 페이지로 데이터 변경 없음" }
}