{ "id": "system-dashboard", "name": "시스템 대시보드 테스트", "screenshotPolicy": { "onErrorOnly": true, "captureOn": ["error", "fail", "timeout", "404", "500", "blocked"] }, "description": "시스템 대시보드 메뉴의 대시보드 페이지 표시/위젯/데이터 확인 테스트", "baseUrl": "https://dev.codebridge-x.com", "menuNavigation": { "level1": "시스템 대시보드", "level2": null, "expectedUrl": "/dashboard", "searchWithinParent": true, "closeOtherMenus": true }, "auth": { "username": "TestUser5", "password": "password123!" }, "steps": [ { "id": 1, "name": "메뉴 진입: 시스템 대시보드", "action": "menu_navigate", "level1": "시스템 대시보드", "level2": null, "expected": { "url_contains": "/dashboard", "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*=\"widget\"], [class*=\"Widget\"]'); return 'Dashboard widgets: ' + cards.length; })()" }, { "id": 6, "name": "오늘의 이슈 섹션 확인", "action": "evaluate", "script": "(() => { const body = document.body.innerText; const hasIssue = body.includes('이슈') || body.includes('알림'); const hasStatus = body.includes('현황') || body.includes('요약'); return 'Issues: ' + hasIssue + ', Status: ' + hasStatus; })()" }, { "id": 7, "name": "자금현황 확인", "action": "evaluate", "script": "(() => { const body = document.body.innerText; const hasFund = body.includes('자금') || body.includes('매출') || body.includes('매입'); return 'Fund info: ' + hasFund; })()" }, { "id": 8, "name": "현황판 확인", "action": "evaluate", "script": "(() => { const body = document.body.innerText; const hasBoard = body.includes('현황판') || body.includes('수주') || body.includes('채권'); return 'Status board: ' + hasBoard; })()" }, { "id": 9, "name": "당월 예상 지출 확인", "action": "evaluate", "script": "(() => { const body = document.body.innerText; const hasExpense = body.includes('지출') || body.includes('매입') || body.includes('카드'); return 'Expense info: ' + hasExpense; })()" }, { "id": 10, "name": "항목 설정 버튼 확인", "action": "evaluate", "script": "(() => { const btn = Array.from(document.querySelectorAll('button')).find(b => ['항목 설정','설정','보고서'].some(t => b.innerText?.includes(t))); return btn ? 'Settings button: ' + btn.innerText.trim() : 'No settings button (ok)'; })()" }, { "id": 11, "name": "콘솔 에러 확인", "action": "verify_element", "target": "body" } ], "rollbackPlan": { "note": "조회 위주 테스트로 데이터 변경 없음" } }