Files
sam-scenarios/production-dashboard.json
김보곤 076aa2a376 refactor: 8개 시나리오 스텝 검증 품질 개선
- payment-history: 구체적 CSS 셀렉터 추가 (40% → 90%+ 목표)
- production-dashboard: verify_elements → verify_element 변환
- purchase-status: selectors 섹션 추가, 필터/다운로드 검증 개선
- settings-subscription: 모든 verify_elements를 구체적 셀렉터로 변환
- popup-management: 89 → 77 스텝으로 최적화, evaluate 스크립트 추가
- draft-box: 56 → 36 스텝으로 최적화, phase 마커 추가
- company-info: 폼 필드 ID 셀렉터 추가, 복잡한 검증 evaluate 추가
- item-management: 25+ 구체적 셀렉터 추가, generic verify 제거
2026-02-06 06:18:53 +09:00

145 lines
5.3 KiB
JSON

{
"id": "production-dashboard",
"name": "생산 현황판 테스트",
"screenshotPolicy": {
"onErrorOnly": true,
"captureOn": ["error", "fail", "timeout", "404", "500", "blocked"]
},
"description": "생산관리 > 생산 현황판 메뉴의 생산 현황 모니터링/필터/차트 기능 테스트",
"baseUrl": "https://dev.codebridge-x.com",
"menuNavigation": {
"level1": "생산관리",
"level2": "생산 현황판",
"expectedUrl": "/production/dashboard",
"searchWithinParent": true,
"closeOtherMenus": true
},
"auth": {
"username": "TestUser5",
"password": "password123!"
},
"steps": [
{
"id": 1,
"name": "메뉴 진입: 생산관리 > 생산 현황판",
"action": "menu_navigate",
"level1": "생산관리",
"level2": "생산 현황판",
"expected": {
"url_contains": "/production",
"visible": ["현황판", "생산"]
}
},
{
"id": 2,
"name": "필수 검증 #5: 목업 페이지 감지",
"action": "verify_not_mockup",
"checks": [
"생산 현황 데이터 표시",
"통계 카드 또는 차트 존재",
"기간 필터 존재"
],
"expected": "정상 페이지 (목업 아님)"
},
{
"id": 3,
"name": "현황판 구조 확인 - 통계 카드",
"action": "verify_element",
"selector": "[class*='card'], [class*='stat'], [class*='summary'], [class*='kpi'], [class*='dashboard'] [class*='item']",
"expected": "통계 카드 영역 존재"
},
{
"id": 4,
"name": "현황판 구조 확인 - 차트 영역",
"action": "verify_element",
"selector": "canvas, svg[class*='chart'], [class*='chart'], [class*='Chart'], [class*='recharts'], [class*='graph']",
"expected": "차트 또는 그래프 영역 존재"
},
{
"id": 5,
"phase": "READ",
"name": "[READ] 생산 통계 텍스트 확인",
"action": "verify_text",
"text": ["생산", "목표", "달성", "실적", "수량", "현황"],
"matchAny": true,
"expected": "생산 관련 텍스트 표시"
},
{
"id": 6,
"phase": "READ",
"name": "[READ] 숫자 데이터 존재 확인",
"action": "evaluate",
"script": "(() => { const nums = document.body.innerText.match(/\\d{1,3}(,\\d{3})*(\\.\\d+)?(%|개|건|EA)?/g); return { hasNumbers: nums && nums.length > 3, count: nums ? nums.length : 0 }; })()",
"expected": "숫자 데이터 3개 이상 표시"
},
{
"id": 7,
"phase": "FILTER",
"name": "[FILTER] 기간/날짜 필터 확인",
"action": "verify_element",
"selector": "input[type='date'], [class*='date'], [class*='period'], [class*='calendar'], select[name*='period'], button[class*='date']",
"expected": "기간/날짜 선택 요소 존재"
},
{
"id": 8,
"phase": "FILTER",
"name": "[FILTER] 드롭다운/셀렉트 필터 확인",
"action": "verify_element",
"selector": "select, [class*='select'], [class*='dropdown'], [class*='filter'], [role='combobox'], [role='listbox']",
"expected": "필터 선택 요소 존재"
},
{
"id": 9,
"name": "테이블 또는 그리드 데이터 확인",
"action": "verify_element",
"selector": "table, [class*='table'], [class*='grid'], [class*='list'], [role='grid'], [role='table']",
"expected": "데이터 테이블/그리드 존재"
},
{
"id": 10,
"name": "퍼센트/비율 데이터 확인",
"action": "evaluate",
"script": "(() => { const text = document.body.innerText; const hasPercent = /%/.test(text); const hasRate = /달성|비율|률/.test(text); return { hasPercent, hasRate, valid: hasPercent || hasRate }; })()",
"expected": "퍼센트 또는 비율 데이터 표시"
},
{
"id": 11,
"name": "새로고침/갱신 버튼 확인",
"action": "verify_element",
"selector": "button[class*='refresh'], button[class*='reload'], [class*='sync'], button:has(svg[class*='refresh']), button:has([class*='icon-refresh'])",
"fallbackSelector": "button",
"expected": "새로고침 또는 버튼 존재"
},
{
"id": 12,
"name": "페이지 인터랙티브 요소 확인",
"action": "evaluate",
"script": "(() => { const btns = document.querySelectorAll('button:not([disabled])').length; const inputs = document.querySelectorAll('input, select, textarea').length; const links = document.querySelectorAll('a[href]').length; return { buttons: btns, inputs, links, totalInteractive: btns + inputs + links, isInteractive: (btns + inputs + links) >= 2 }; })()",
"expected": "인터랙티브 요소 2개 이상 존재"
}
],
"expectedAPIs": [
{
"method": "GET",
"endpoint": "/api/v1/production/dashboard",
"description": "생산 현황판 데이터 조회"
},
{
"method": "GET",
"endpoint": "/api/v1/production/statistics",
"description": "생산 통계 조회"
}
],
"requiredVerifications": [
{
"id": 5,
"name": "목업 페이지 감지",
"steps": [2],
"criteria": "생산 현황 데이터, 통계 카드/차트, 기간 필터 존재"
}
],
"rollbackPlan": {
"note": "조회 전용 페이지로 데이터 변경 없음"
}
}