test: 신규 시나리오 3개 ALL PASS (settings-card, system-dashboard, material-dispatch)

This commit is contained in:
김보곤
2026-03-02 22:06:44 +09:00
parent 9d471a17e3
commit fa38f7031f
3 changed files with 462 additions and 44 deletions

View File

@@ -1,32 +1,182 @@
{
"id": "material-dispatch",
"name": "배차차량관리 테스트",
"name": "배차차량관리 목록/검색/상세/등록폼/필터/페이지네이션 테스트",
"version": "2.0.0",
"screenshotPolicy": {
"onErrorOnly": true,
"captureOn": ["error", "fail", "timeout", "404", "500", "blocked"]
},
"description": "출고관리 > 배차차량관리 메뉴의 배차/차량 조회/등록/검색 기능 테스트",
"description": "출고관리 > 배차차량관리 메뉴의 배차/차량 목록 조회, 검색, 필터, 등록폼, 상세 조회, 페이지네이션 기능 검증",
"baseUrl": "https://dev.codebridge-x.com",
"menuNavigation": {
"level1": "출고관리",
"level2": "배차차량관리",
"expectedUrl": "/shipment/dispatch",
"expectedUrl": "/outbound/vehicle-dispatches",
"searchWithinParent": true,
"closeOtherMenus": true
},
"auth": { "username": "TestUser5", "password": "password123!" },
"steps": [
{ "id": 1, "name": "메뉴 진입: 출고관리 > 배차차량관리", "action": "menu_navigate", "level1": "출고관리", "level2": "배차차량관리", "expected": { "url_contains": "/shipment", "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 tables = document.querySelectorAll('table'); const lists = document.querySelectorAll('[class*=\"list\"], [class*=\"grid\"], [class*=\"card\"]'); return 'Tables: ' + tables.length + ', Lists/Cards: ' + lists.length; })()" },
{ "id": 6, "phase": "SEARCH", "name": "[SEARCH] 검색 필드 확인", "action": "click_if_exists", "target": "input[type='search'], input[placeholder*='검색'], input[type='text']", "expected": "검색 필드 존재 확인" },
{ "id": 7, "name": "등록 버튼 확인", "action": "evaluate", "script": "(() => { const btn = Array.from(document.querySelectorAll('button')).find(b => ['등록','신규','추가','배차'].some(t => b.innerText?.includes(t))); return btn ? 'Create button: ' + btn.innerText.trim() : 'No create button (ok)'; })()" },
{ "id": 8, "name": "상세 행 클릭", "action": "click_if_exists", "target": "table tbody tr:first-child", "expected": { "detail_view": true } },
{ "id": 9, "name": "상세 정보 확인", "action": "verify_detail", "checks": ["배차/차량 상세 정보 표시 또는 데이터 없음"], "expected": "상세 정보 표시" },
{ "id": 10, "name": "목록으로 돌아가기", "action": "click_if_exists", "target": "button:has-text('목록'), a:has-text('목록'), [class*='back']", "expected": "목록 페이지로 복귀" },
{ "id": 11, "name": "콘솔 에러 확인", "action": "verify_element", "target": "body" }
],
"rollbackPlan": { "note": "조회 위주 테스트로 데이터 변경 최소" }
{
"id": 1,
"name": "메뉴 진입: 출고관리 > 배차차량관리",
"action": "menu_navigate",
"level1": "출고관리",
"level2": "배차차량관리",
"expected": { "url_contains": "/outbound", "visible": ["배차", "차량"] }
},
{
"id": 2,
"name": "URL 검증",
"action": "verify_url",
"expected": { "url_contains": "/outbound/vehicle-dispatches" }
},
{
"id": 3,
"name": "필수 검증: 목업 페이지 감지",
"action": "verify_not_mockup",
"checks": ["배차/차량 목록 표시", "등록/추가 버튼 존재", "검색/필터 기능 존재"],
"expected": "정상 페이지 (목업 아님)"
},
{
"id": 4,
"name": "페이지 로드 대기",
"action": "wait",
"timeout": 3000
},
{
"id": 5,
"name": "통계 카드 확인",
"action": "evaluate",
"script": "(() => { const cards = document.querySelectorAll('[class*=\"card\"], [class*=\"Card\"], [class*=\"stat\"], [class*=\"Stat\"], [class*=\"summary\"]'); const texts = Array.from(cards).map(c => c.innerText?.substring(0, 30)).filter(Boolean); return texts.length > 0 ? 'Stats: ' + texts.length + ' cards found' : 'No stat cards (ok)'; })()"
},
{
"id": 6,
"name": "배차/차량 테이블 구조 확인",
"action": "verify_table",
"checks": ["차량번호 또는 배차 컬럼", "운전자 또는 담당자 컬럼"],
"expected": "배차/차량 테이블 컬럼 정상 표시"
},
{
"id": 7,
"name": "테이블 데이터 행 수 및 헤더 확인",
"action": "evaluate",
"script": "(() => { const rows = document.querySelectorAll('table tbody tr'); const headers = Array.from(document.querySelectorAll('table thead th, table th')).map(h => h.innerText?.trim()).filter(Boolean); return 'Table rows: ' + rows.length + ', Headers: ' + JSON.stringify(headers.slice(0, 8)); })()"
},
{
"id": 8,
"name": "탭/필터 UI 확인",
"action": "evaluate",
"script": "(() => { const tabs = document.querySelectorAll('[role=\"tab\"], [class*=\"tab\"]'); const selects = document.querySelectorAll('select, [role=\"combobox\"], button[class*=\"select\"], button[class*=\"Select\"]'); return 'Tabs: ' + tabs.length + ', Filters/Selects: ' + selects.length; })()"
},
{
"id": 9,
"phase": "SEARCH",
"name": "[SEARCH] 검색 기능 테스트",
"action": "search",
"value": "테스트"
},
{
"id": 10,
"phase": "SEARCH",
"name": "[SEARCH] 검색 결과 대기",
"action": "wait",
"duration": 1000
},
{
"id": 11,
"phase": "SEARCH",
"name": "[SEARCH] 검색 결과 데이터 검증",
"action": "evaluate",
"script": "(() => { const rows = document.querySelectorAll('table tbody tr, [role=\"row\"]'); return 'Search result: ' + rows.length + ' rows'; })()"
},
{
"id": 12,
"phase": "SEARCH",
"name": "[SEARCH] 검색 초기화",
"action": "evaluate",
"script": "(() => { const selectors = ['input[type=\"search\"]', 'input[placeholder*=\"검색\"]', 'input[placeholder*=\"Search\"]', 'input[role=\"searchbox\"]', '[class*=\"search\"] input']; for (const sel of selectors) { const el = document.querySelector(sel); if (el) { const nativeSetter = Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, 'value')?.set; if (nativeSetter) nativeSetter.call(el, ''); else el.value = ''; el.dispatchEvent(new Event('input', { bubbles: true })); el.dispatchEvent(new Event('change', { bubbles: true })); return 'Search cleared'; } } return 'No search input found (ok)'; })()"
},
{
"id": 13,
"phase": "SEARCH",
"name": "[SEARCH] 초기화 후 대기",
"action": "wait",
"duration": 1000
},
{
"id": 14,
"phase": "SEARCH",
"name": "[SEARCH] 초기화 후 목록 복원 확인",
"action": "evaluate",
"script": "(() => { const rows = document.querySelectorAll('table tbody tr, [role=\"row\"]'); return 'Restored: ' + rows.length + ' rows'; })()"
},
{
"id": 15,
"phase": "CREATE",
"name": "[CREATE] 등록/추가 버튼 클릭",
"action": "click_if_exists",
"target": "button:has-text('등록'), button:has-text('추가'), button:has-text('신규'), button:has-text('차량 등록'), button:has-text('배차 등록')",
"expected": { "modal_or_page": true }
},
{
"id": 16,
"phase": "CREATE",
"name": "[CREATE] 등록 폼 요소 확인",
"action": "evaluate",
"script": "(() => { const modal = document.querySelector('[role=\"dialog\"], [aria-modal=\"true\"], [class*=\"modal\"]:not([class*=\"tooltip\"]), [class*=\"Modal\"]'); const scope = modal || document; const inputs = scope.querySelectorAll('input:not([type=\"hidden\"]), textarea, select'); const labels = Array.from(scope.querySelectorAll('label')).map(l => l.innerText?.trim()).filter(Boolean).slice(0, 10); return 'Form inputs: ' + inputs.length + ', Labels: ' + JSON.stringify(labels); })()"
},
{
"id": 17,
"phase": "CREATE",
"name": "[CREATE] 등록 모달 닫기",
"action": "close_modal_if_open",
"expected": "모달 닫힘"
},
{
"id": 18,
"phase": "READ",
"name": "[READ] 첫 번째 행 클릭 (상세 조회)",
"action": "click_if_exists",
"target": "table tbody tr:first-child"
},
{
"id": 19,
"phase": "READ",
"name": "[READ] 상세 정보 확인",
"action": "verify_detail",
"checks": ["배차/차량 상세 정보 표시 또는 데이터 없음"],
"expected": "상세 정보 표시"
},
{
"id": 20,
"phase": "READ",
"name": "[READ] 상세 모달 닫기",
"action": "close_modal_if_open",
"expected": "모달 닫힘"
},
{
"id": 21,
"name": "페이지네이션 확인",
"action": "evaluate",
"script": "(() => { const paginationSels = ['[class*=\"pagination\"]', '[class*=\"Pagination\"]', 'nav[aria-label*=\"page\"]', 'button[aria-label*=\"page\"]', '[class*=\"pager\"]']; for (const sel of paginationSels) { const el = document.querySelector(sel); if (el) return 'Pagination found'; } const pageButtons = Array.from(document.querySelectorAll('button')).filter(b => /^\\d+$/.test(b.innerText?.trim())); if (pageButtons.length > 0) return 'Page buttons found: ' + pageButtons.length; return 'No pagination (ok - may have single page)'; })()"
},
{
"id": 22,
"name": "콘솔 에러 확인",
"action": "verify_element",
"target": "body"
},
{
"id": 23,
"name": "배차차량관리 페이지 최종 확인",
"action": "verify_elements",
"checks": ["배차/차량 목록 구조 정상", "등록 버튼 존재"],
"expected": "배차차량관리 페이지 정상"
}
],
"expectedAPIs": [
{ "method": "GET", "endpoint": "/api/v1/shipment/dispatch", "description": "배차차량 목록 조회" }
],
"rollbackPlan": { "note": "READ-only 패턴으로 안정성 우선" }
}

View File

@@ -1,33 +1,182 @@
{
"id": "settings-card",
"name": "카드관리 테스트",
"name": "카드관리 목록/검색/상세/등록폼/페이지네이션 테스트",
"version": "2.0.0",
"screenshotPolicy": {
"onErrorOnly": true,
"captureOn": ["error", "fail", "timeout", "404", "500", "blocked"]
},
"description": "설정 > 카드관리 메뉴의 카드 조회/등록/검색 기능 테스트",
"description": "설정 > 카드관리 메뉴의 카드 목록 조회, 검색, 필터, 등록폼, 상세 조회, 페이지네이션 기능 검증",
"baseUrl": "https://dev.codebridge-x.com",
"menuNavigation": {
"level1": "설정",
"level2": "카드관리",
"expectedUrl": "/settings/card",
"expectedUrl": "/hr/card-management",
"searchWithinParent": true,
"closeOtherMenus": true
},
"auth": { "username": "TestUser5", "password": "password123!" },
"steps": [
{ "id": 1, "name": "메뉴 진입: 설정 > 카드관리", "action": "menu_navigate", "level1": "설정", "level2": "카드관리", "expected": { "url_contains": "/settings", "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 tables = document.querySelectorAll('table'); const lists = document.querySelectorAll('[class*=\"list\"], [class*=\"grid\"], [class*=\"card\"]'); return 'Tables: ' + tables.length + ', Lists/Cards: ' + lists.length; })()" },
{ "id": 6, "phase": "SEARCH", "name": "[SEARCH] 검색 필드 확인", "action": "click_if_exists", "target": "input[type='search'], input[placeholder*='검색'], input[type='text']", "expected": "검색 필드 존재 확인" },
{ "id": 7, "name": "등록/추가 버튼 확인", "action": "evaluate", "script": "(() => { const btn = Array.from(document.querySelectorAll('button')).find(b => ['등록','신규','추가','카드'].some(t => b.innerText?.includes(t))); return btn ? 'Create button: ' + btn.innerText.trim() : 'No create button (ok)'; })()" },
{ "id": 8, "name": "카드 목록/설정 확인", "action": "evaluate", "script": "(() => { const rows = document.querySelectorAll('table tbody tr'); const items = document.querySelectorAll('[class*=\"item\"], [class*=\"row\"], [class*=\"card-item\"]'); return 'Table rows: ' + rows.length + ', Items: ' + items.length; })()" },
{ "id": 9, "name": "상세 행 클릭", "action": "click_if_exists", "target": "table tbody tr:first-child", "expected": { "detail_view": true } },
{ "id": 10, "name": "상세 정보 확인", "action": "verify_detail", "checks": ["카드 상세 정보 표시 또는 데이터 없음"], "expected": "상세 정보 표시" },
{ "id": 11, "name": "목록으로 돌아가기", "action": "click_if_exists", "target": "button:has-text('목록'), a:has-text('목록'), [class*='back']", "expected": "목록 페이지로 복귀" },
{ "id": 12, "name": "콘솔 에러 확인", "action": "verify_element", "target": "body" }
],
"rollbackPlan": { "note": "조회 위주 테스트로 데이터 변경 최소" }
{
"id": 1,
"name": "메뉴 진입: 설정 > 카드관리",
"action": "menu_navigate",
"level1": "설정",
"level2": "카드관리",
"expected": { "url_contains": "/card", "visible": ["카드"] }
},
{
"id": 2,
"name": "URL 검증",
"action": "verify_url",
"expected": { "url_contains": "/hr/card-management" }
},
{
"id": 3,
"name": "필수 검증: 목업 페이지 감지",
"action": "verify_not_mockup",
"checks": ["카드 목록 표시", "등록/추가 버튼 존재", "검색/필터 기능 존재"],
"expected": "정상 페이지 (목업 아님)"
},
{
"id": 4,
"name": "페이지 로드 대기",
"action": "wait",
"timeout": 3000
},
{
"id": 5,
"name": "통계 카드 확인",
"action": "evaluate",
"script": "(() => { const cards = document.querySelectorAll('[class*=\"card\"], [class*=\"Card\"], [class*=\"stat\"], [class*=\"Stat\"], [class*=\"summary\"]'); const texts = Array.from(cards).map(c => c.innerText?.substring(0, 30)).filter(Boolean); return texts.length > 0 ? 'Stats: ' + texts.length + ' cards found' : 'No stat cards (ok)'; })()"
},
{
"id": 6,
"name": "카드 테이블 구조 확인",
"action": "verify_table",
"checks": ["카드명 또는 카드번호 컬럼", "카드사 또는 유형 컬럼"],
"expected": "카드 테이블 컬럼 정상 표시"
},
{
"id": 7,
"name": "테이블 데이터 행 수 확인",
"action": "evaluate",
"script": "(() => { const rows = document.querySelectorAll('table tbody tr'); return 'Table rows: ' + rows.length + (rows.length > 0 ? ' (data exists)' : ' (empty table)'); })()"
},
{
"id": 8,
"name": "목록 필터/드롭다운 확인",
"action": "evaluate",
"script": "(() => { const selects = document.querySelectorAll('select, [role=\"combobox\"], button[class*=\"select\"], button[class*=\"Select\"]'); return selects.length > 0 ? 'Filters found: ' + selects.length : 'No filter dropdowns (ok)'; })()"
},
{
"id": 9,
"phase": "SEARCH",
"name": "[SEARCH] 검색 기능 테스트",
"action": "search",
"value": "테스트"
},
{
"id": 10,
"phase": "SEARCH",
"name": "[SEARCH] 검색 결과 대기",
"action": "wait",
"duration": 1000
},
{
"id": 11,
"phase": "SEARCH",
"name": "[SEARCH] 검색 결과 데이터 검증",
"action": "evaluate",
"script": "(() => { const rows = document.querySelectorAll('table tbody tr, [role=\"row\"]'); return 'Search result: ' + rows.length + ' rows'; })()"
},
{
"id": 12,
"phase": "SEARCH",
"name": "[SEARCH] 검색 초기화",
"action": "evaluate",
"script": "(() => { const selectors = ['input[type=\"search\"]', 'input[placeholder*=\"검색\"]', 'input[placeholder*=\"Search\"]', 'input[role=\"searchbox\"]', '[class*=\"search\"] input']; for (const sel of selectors) { const el = document.querySelector(sel); if (el) { const nativeSetter = Object.getOwnPropertyDescriptor(HTMLInputElement.prototype, 'value')?.set; if (nativeSetter) nativeSetter.call(el, ''); else el.value = ''; el.dispatchEvent(new Event('input', { bubbles: true })); el.dispatchEvent(new Event('change', { bubbles: true })); return 'Search cleared'; } } return 'No search input found (ok)'; })()"
},
{
"id": 13,
"phase": "SEARCH",
"name": "[SEARCH] 초기화 후 대기",
"action": "wait",
"duration": 1000
},
{
"id": 14,
"phase": "SEARCH",
"name": "[SEARCH] 초기화 후 목록 복원 확인",
"action": "evaluate",
"script": "(() => { const rows = document.querySelectorAll('table tbody tr, [role=\"row\"]'); return 'Restored: ' + rows.length + ' rows'; })()"
},
{
"id": 15,
"phase": "CREATE",
"name": "[CREATE] 등록/추가 버튼 클릭",
"action": "click_if_exists",
"target": "button:has-text('등록'), button:has-text('추가'), button:has-text('신규'), button:has-text('카드 등록')",
"expected": { "modal_or_page": true }
},
{
"id": 16,
"phase": "CREATE",
"name": "[CREATE] 등록 폼 요소 확인",
"action": "evaluate",
"script": "(() => { const modal = document.querySelector('[role=\"dialog\"], [aria-modal=\"true\"], [class*=\"modal\"]:not([class*=\"tooltip\"]), [class*=\"Modal\"]'); const scope = modal || document; const inputs = scope.querySelectorAll('input:not([type=\"hidden\"]), textarea, select'); const labels = Array.from(scope.querySelectorAll('label')).map(l => l.innerText?.trim()).filter(Boolean).slice(0, 10); return 'Form inputs: ' + inputs.length + ', Labels: ' + JSON.stringify(labels); })()"
},
{
"id": 17,
"phase": "CREATE",
"name": "[CREATE] 등록 모달 닫기",
"action": "close_modal_if_open",
"expected": "모달 닫힘"
},
{
"id": 18,
"phase": "READ",
"name": "[READ] 첫 번째 행 클릭 (상세 조회)",
"action": "click_if_exists",
"target": "table tbody tr:first-child"
},
{
"id": 19,
"phase": "READ",
"name": "[READ] 상세 정보 확인",
"action": "verify_detail",
"checks": ["카드 상세 정보 표시 또는 데이터 없음"],
"expected": "카드 상세 정보 표시"
},
{
"id": 20,
"phase": "READ",
"name": "[READ] 상세 모달 닫기",
"action": "close_modal_if_open",
"expected": "모달 닫힘"
},
{
"id": 21,
"name": "페이지네이션 확인",
"action": "evaluate",
"script": "(() => { const paginationSels = ['[class*=\"pagination\"]', '[class*=\"Pagination\"]', 'nav[aria-label*=\"page\"]', 'button[aria-label*=\"page\"]', '[class*=\"pager\"]']; for (const sel of paginationSels) { const el = document.querySelector(sel); if (el) return 'Pagination found'; } const pageButtons = Array.from(document.querySelectorAll('button')).filter(b => /^\\d+$/.test(b.innerText?.trim())); if (pageButtons.length > 0) return 'Page buttons found: ' + pageButtons.length; return 'No pagination (ok - may have single page)'; })()"
},
{
"id": 22,
"name": "콘솔 에러 확인",
"action": "verify_element",
"target": "body"
},
{
"id": 23,
"name": "카드관리 페이지 최종 확인",
"action": "verify_elements",
"checks": ["카드 목록 구조 정상", "등록 버튼 존재"],
"expected": "카드관리 페이지 정상"
}
],
"expectedAPIs": [
{ "method": "GET", "endpoint": "/api/v1/settings/cards", "description": "카드 목록 조회" }
],
"rollbackPlan": { "note": "READ-only 패턴으로 안정성 우선" }
}

View File

@@ -1,11 +1,12 @@
{
"id": "system-dashboard",
"name": "시스템 대시보드 테스트",
"name": "시스템 대시보드 위젯/통계/현황판/자금현황/지출예상/설정 테스트",
"version": "2.0.0",
"screenshotPolicy": {
"onErrorOnly": true,
"captureOn": ["error", "fail", "timeout", "404", "500", "blocked"]
},
"description": "시스템 대시보드 메뉴의 대시보드 페이지 표시/위젯/데이터 확인 테스트",
"description": "시스템 대시보드 페이지의 위젯, 통계 카드, 자금현황, 매출/매입 현황, 수주현황, 채권/채무, 당월 예상 지출, 항목 설정 기능 종합 검증",
"baseUrl": "https://dev.codebridge-x.com",
"menuNavigation": {
"level1": "시스템 대시보드",
@@ -16,17 +17,135 @@
},
"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" }
{
"id": 1,
"name": "메뉴 진입: 시스템 대시보드",
"action": "menu_navigate",
"level1": "시스템 대시보드",
"level2": null,
"expected": { "url_contains": "/dashboard", "visible": ["대시보드"] }
},
{
"id": 2,
"name": "URL 검증",
"action": "verify_url",
"expected": { "url_contains": "/dashboard" }
},
{
"id": 3,
"name": "필수 검증: 목업 페이지 감지",
"action": "verify_not_mockup",
"checks": ["대시보드 위젯 표시", "데이터 카드 또는 통계 표시", "버튼 동작 가능"],
"expected": "정상 페이지 (목업 아님)"
},
{
"id": 4,
"name": "페이지 로드 대기",
"action": "wait",
"timeout": 3000
},
{
"id": 5,
"name": "대시보드 위젯/카드 개수 확인",
"action": "evaluate",
"script": "(() => { const cards = document.querySelectorAll('[class*=\"card\"], [class*=\"Card\"], [class*=\"widget\"], [class*=\"Widget\"]'); const sections = document.querySelectorAll('section, [class*=\"section\"], [class*=\"Section\"]'); return 'Dashboard cards/widgets: ' + cards.length + ', Sections: ' + sections.length; })()"
},
{
"id": 6,
"name": "오늘의 이슈/알림 섹션 확인",
"action": "evaluate",
"script": "(() => { const body = document.body.innerText; const hasIssue = body.includes('이슈') || body.includes('알림') || body.includes('공지'); const hasNotice = body.includes('게시') || body.includes('공지사항'); return 'Issues section: ' + hasIssue + ', Notice section: ' + hasNotice; })()"
},
{
"id": 7,
"name": "자금현황 데이터 확인",
"action": "evaluate",
"script": "(() => { const body = document.body.innerText; const hasFund = body.includes('자금') || body.includes('잔액') || body.includes('계좌'); const hasAmount = /[0-9,]+원/.test(body) || /[0-9,]+/.test(body); return 'Fund info: ' + hasFund + ', Amount data: ' + hasAmount; })()"
},
{
"id": 8,
"name": "매출/매입 현황 확인",
"action": "evaluate",
"script": "(() => { const body = document.body.innerText; const hasSales = body.includes('매출') || body.includes('수주'); const hasPurchase = body.includes('매입') || body.includes('발주'); return 'Sales info: ' + hasSales + ', Purchase info: ' + hasPurchase; })()"
},
{
"id": 9,
"name": "수주/채권/채무 현황판 확인",
"action": "evaluate",
"script": "(() => { const body = document.body.innerText; const hasOrder = body.includes('수주') || body.includes('현황판'); const hasReceivable = body.includes('채권') || body.includes('미수금'); const hasPayable = body.includes('채무') || body.includes('미지급'); return 'Order status: ' + hasOrder + ', Receivable: ' + hasReceivable + ', Payable: ' + hasPayable; })()"
},
{
"id": 10,
"name": "당월 예상 지출 확인",
"action": "evaluate",
"script": "(() => { const body = document.body.innerText; const hasExpense = body.includes('지출') || body.includes('예상') || body.includes('카드') || body.includes('어음'); return 'Monthly expense info: ' + hasExpense; })()"
},
{
"id": 11,
"name": "차트/그래프 요소 확인",
"action": "evaluate",
"script": "(() => { const charts = document.querySelectorAll('canvas, svg, [class*=\"chart\"], [class*=\"Chart\"], [class*=\"graph\"], [class*=\"Graph\"], [class*=\"recharts\"]'); return 'Chart/graph elements: ' + charts.length; })()"
},
{
"id": 12,
"name": "테이블 데이터 확인",
"action": "evaluate",
"script": "(() => { const tables = document.querySelectorAll('table'); const totalRows = Array.from(tables).reduce((sum, t) => sum + t.querySelectorAll('tbody tr').length, 0); return 'Tables: ' + tables.length + ', Total rows: ' + totalRows; })()"
},
{
"id": 13,
"name": "항목 설정 버튼 확인",
"action": "evaluate",
"script": "(() => { const btns = Array.from(document.querySelectorAll('button')); const settingsBtn = btns.find(b => ['항목 설정', '설정', '위젯 설정', '대시보드 설정'].some(t => b.innerText?.includes(t))); const filterBtn = btns.find(b => ['필터', '기간', '월', '주'].some(t => b.innerText?.includes(t))); return 'Settings button: ' + (settingsBtn ? settingsBtn.innerText.trim() : 'none') + ', Filter button: ' + (filterBtn ? filterBtn.innerText.trim() : 'none'); })()"
},
{
"id": 14,
"name": "기간 필터/날짜 선택 확인",
"action": "click_if_exists",
"target": "button:has-text('필터'), [class*='date-picker'], [class*='DatePicker'], select, button:has-text('월')",
"expected": "필터 또는 날짜 선택 요소 확인"
},
{
"id": 15,
"name": "필터 대기",
"action": "wait",
"duration": 1000
},
{
"id": 16,
"name": "모달/팝업 닫기",
"action": "close_modal_if_open",
"expected": "모달 닫힘"
},
{
"id": 17,
"name": "대시보드 API 호출 확인",
"action": "evaluate",
"script": "(() => { const logs = window.__API_LOGS__ || []; const dashAPIs = logs.filter(l => l.url?.includes('dashboard') || l.url?.includes('summary') || l.url?.includes('statistics')); return 'Dashboard API calls: ' + dashAPIs.length + ', Total API calls: ' + logs.length; })()"
},
{
"id": 18,
"name": "페이지 렌더링 상태 확인",
"action": "evaluate",
"script": "(() => { const domNodes = document.getElementsByTagName('*').length; const images = document.querySelectorAll('img'); const loadedImgs = Array.from(images).filter(i => i.complete).length; return 'DOM nodes: ' + domNodes + ', Images: ' + images.length + ' (loaded: ' + loadedImgs + ')'; })()"
},
{
"id": 19,
"name": "콘솔 에러 확인",
"action": "verify_element",
"target": "body"
},
{
"id": 20,
"name": "시스템 대시보드 최종 확인",
"action": "verify_elements",
"checks": ["대시보드 구조 정상", "위젯/카드 표시"],
"expected": "시스템 대시보드 페이지 정상"
}
],
"expectedAPIs": [
{ "method": "GET", "endpoint": "/api/v1/dashboard", "description": "대시보드 데이터 조회" },
{ "method": "GET", "endpoint": "/api/v1/dashboard/summary", "description": "대시보드 요약 통계" }
],
"rollbackPlan": { "note": "조회 위주 테스트로 데이터 변경 없음" }
}