feat: 시나리오 2개 추가 + 배차차량관리 메뉴 경로 수정
- settings-card.json: 설정 > 카드관리 시나리오 추가 - system-dashboard.json: 시스템 대시보드 시나리오 추가 - material-dispatch.json: 부모 메뉴 수정 (자재관리 → 출고관리), enabled 복원 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
@@ -5,30 +5,28 @@
|
||||
"onErrorOnly": true,
|
||||
"captureOn": ["error", "fail", "timeout", "404", "500", "blocked"]
|
||||
},
|
||||
"enabled": false,
|
||||
"disabledReason": "메뉴 '배차차량관리'가 자재관리 하위에서 발견되지 않음 (2026-03-01 확인)",
|
||||
"description": "자재관리 > 배차차량관리 메뉴의 배차/차량 조회/등록/검색 기능 테스트",
|
||||
"description": "출고관리 > 배차차량관리 메뉴의 배차/차량 조회/등록/검색 기능 테스트",
|
||||
"baseUrl": "https://dev.codebridge-x.com",
|
||||
"menuNavigation": {
|
||||
"level1": "자재관리",
|
||||
"level1": "출고관리",
|
||||
"level2": "배차차량관리",
|
||||
"expectedUrl": "/material/dispatch",
|
||||
"expectedUrl": "/shipment/dispatch",
|
||||
"searchWithinParent": true,
|
||||
"closeOtherMenus": true
|
||||
},
|
||||
"auth": { "username": "TestUser5", "password": "password123!" },
|
||||
"steps": [
|
||||
{ "id": 1, "name": "메뉴 진입: 자재관리 > 배차차량관리", "action": "menu_navigate", "level1": "자재관리", "level2": "배차차량관리", "expected": { "url_contains": "/material", "visible": ["배차", "차량"] } },
|
||||
{ "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_for_table", "timeout": 5000 },
|
||||
{ "id": 5, "name": "배차 테이블 구조 확인", "action": "verify_table", "checks": ["차량/배차 데이터 컬럼"], "expected": "배차 테이블 표시" },
|
||||
{ "id": 6, "phase": "SEARCH", "name": "[SEARCH] 검색 기능", "action": "fill", "target": "input[type='search'], input[placeholder*='검색']", "value": "테스트", "submit": true },
|
||||
{ "id": 7, "phase": "SEARCH", "name": "[SEARCH] 검색 결과 확인", "action": "verify_detail", "checks": ["검색 결과 표시 또는 결과 없음 메시지"], "expected": "검색 기능 동작" },
|
||||
{ "id": 8, "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": 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": 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": "조회 위주 테스트로 데이터 변경 최소" }
|
||||
}
|
||||
}
|
||||
|
||||
33
settings-card.json
Normal file
33
settings-card.json
Normal file
@@ -0,0 +1,33 @@
|
||||
{
|
||||
"id": "settings-card",
|
||||
"name": "카드관리 테스트",
|
||||
"screenshotPolicy": {
|
||||
"onErrorOnly": true,
|
||||
"captureOn": ["error", "fail", "timeout", "404", "500", "blocked"]
|
||||
},
|
||||
"description": "설정 > 카드관리 메뉴의 카드 조회/등록/검색 기능 테스트",
|
||||
"baseUrl": "https://dev.codebridge-x.com",
|
||||
"menuNavigation": {
|
||||
"level1": "설정",
|
||||
"level2": "카드관리",
|
||||
"expectedUrl": "/settings/card",
|
||||
"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": "조회 위주 테스트로 데이터 변경 최소" }
|
||||
}
|
||||
32
system-dashboard.json
Normal file
32
system-dashboard.json
Normal file
@@ -0,0 +1,32 @@
|
||||
{
|
||||
"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": "조회 위주 테스트로 데이터 변경 없음" }
|
||||
}
|
||||
Reference in New Issue
Block a user