Files
sam-scenarios/purchase-status.json
김보곤 40244054fb fix: 신규 시나리오 6개 수정 (테이블 없는 페이지 + 검색 셀렉터)
- purchase-order/status/vendor: wait_for_table → wait (테이블 없는 페이지)
- accounting-tax-issue/mgmt: fill → click_if_exists (검색 input 없음)
- sales-site-mgmt: wait_for_table → wait (테이블 없는 페이지)
- material-dispatch: enabled=false (메뉴 미존재)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-01 10:59:34 +09:00

31 lines
2.7 KiB
JSON

{
"id": "purchase-status",
"name": "구매현황 테스트",
"screenshotPolicy": {
"onErrorOnly": true,
"captureOn": ["error", "fail", "timeout", "404", "500", "blocked"]
},
"description": "구매관리 > 구매현황 메뉴의 구매 현황 조회/필터 기능 테스트",
"baseUrl": "https://dev.codebridge-x.com",
"menuNavigation": {
"level1": "구매관리",
"level2": "구매현황",
"expectedUrl": "/purchase/status",
"searchWithinParent": true,
"closeOtherMenus": true
},
"auth": { "username": "TestUser5", "password": "password123!" },
"steps": [
{ "id": 1, "name": "메뉴 진입: 구매관리 > 구매현황", "action": "menu_navigate", "level1": "구매관리", "level2": "구매현황", "expected": { "url_contains": "/purchase", "visible": ["구매", "현황"] } },
{ "id": 2, "name": "페이지 로드 대기", "action": "wait", "timeout": 3000 },
{ "id": 3, "name": "필수 검증: 목업 페이지 감지", "action": "verify_not_mockup", "checks": ["구매 현황 데이터 표시", "필터 또는 검색 가능"], "expected": "정상 페이지 (목업 아님)" },
{ "id": 4, "name": "콘텐츠 로드 대기", "action": "wait", "timeout": 2000 },
{ "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": "evaluate", "script": "(() => { const tables = document.querySelectorAll('table'); const lists = document.querySelectorAll('[class*=\"list\"], [class*=\"grid\"], [class*=\"card\"]'); return 'Tables: ' + tables.length + ', Lists/Cards: ' + lists.length; })()" },
{ "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 btn = Array.from(document.querySelectorAll('button')).find(b => ['엑셀','Excel','다운로드'].some(t => b.innerText?.includes(t))); return btn ? 'Excel button: ' + btn.innerText.trim() : 'No excel button (ok)'; })()" },
{ "id": 10, "name": "콘솔 에러 확인", "action": "verify_element", "target": "body" }
],
"rollbackPlan": { "note": "조회 전용 페이지로 데이터 변경 없음" }
}