{ "id": "accounting-expense-forecast", "name": "지출예상내역서 테스트", "screenshotPolicy": { "onErrorOnly": true, "captureOn": [ "error", "fail", "timeout", "404", "500", "blocked" ] }, "description": "회계관리 > 지출예상내역서 메뉴의 지출 예상 조회/필터/인쇄 기능 테스트", "baseUrl": "https://dev.codebridge-x.com", "menuNavigation": { "level1": "회계관리", "level2": "지출예상내역서", "expectedUrl": "/accounting/expected-expenses", "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": "URL 검증", "action": "verify_url", "expected": { "url_contains": "/accounting/expected-expenses" } }, { "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_table", "checks": [ "지출 항목 컬럼", "예상일 컬럼", "금액 컬럼", "비고 컬럼" ], "expected": "지출예상 테이블 표시" }, { "id": 6, "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": 7, "name": "기간 선택 확인", "action": "verify_elements", "checks": [ "기간 선택 가능 (월/주/일)" ], "expected": "기간 선택 가능" }, { "id": 8, "phase": "FILTER", "name": "[FILTER] 월 선택", "action": "click_if_exists", "target": "input[type='month'], select[name*='month'], [class*='month-picker']", "expected": "월 선택 열림" }, { "id": 9, "phase": "FILTER", "name": "[FILTER] 조회 적용", "action": "click_if_exists", "target": "button:has-text('조회'), button:has-text('검색'), button:has-text('적용')", "expected": "필터 적용됨" }, { "id": 10, "phase": "FILTER", "name": "[FILTER] 필터 결과 확인", "action": "verify_detail", "checks": [ "선택한 기간의 지출 예상 표시" ], "expected": "필터 동작 확인" }, { "id": 11, "name": "지출 카테고리별 확인", "action": "verify_elements", "checks": [ "카테고리별 지출 예상 표시" ], "expected": "카테고리별 지출 표시" }, { "id": 12, "name": "합계 금액 확인", "action": "verify_detail", "checks": [ "총 지출 예상 금액 표시" ], "expected": "합계 금액 표시" }, { "id": 13, "name": "일별 지출 예상 확인", "action": "verify_elements", "checks": [ "일별 지출 예상 캘린더 또는 리스트" ], "expected": "일별 지출 표시" }, { "id": 14, "name": "주요 지출 항목 확인", "action": "verify_elements", "checks": [ "주요 지출 항목 하이라이트" ], "expected": "주요 항목 표시" }, { "id": 15, "name": "이전/다음 기간 네비게이션", "action": "verify_elements", "checks": [ "이전/다음 기간 이동 가능" ], "expected": "기간 네비게이션 표시" }, { "id": 16, "name": "콘솔 에러 확인", "action": "verify_element", "target": "body" } ], "expectedAPIs": [ { "method": "GET", "endpoint": "/api/v1/accounting/expected-expenses", "description": "지출예상 목록 조회" }, { "method": "GET", "endpoint": "/api/v1/accounting/expected-expenses/summary", "description": "지출예상 요약 조회" } ], "requiredVerifications": [ { "id": 3, "name": "검색/필터", "steps": [ 5, 6, 7 ], "criteria": "기간 필터 동작" }, { "id": 5, "name": "목업 페이지 감지", "steps": [ 2 ], "criteria": "지출예상 목록, 기간 선택, 합계 표시 존재" } ], "rollbackPlan": { "note": "조회 전용 페이지로 데이터 변경 없음" } }