Files
sam-scenarios/standard-process-mgmt.json
kimbokon 8b71c82003 fix: E2E 시나리오 셀렉터/URL 수정
- customer-inquiry: expectedUrl /customer-center/inquiry → /customer-center/qna (실제 라우트에 맞게 수정)
- standard-process-mgmt: expectedUrl /standard/process → /master-data/process-management (실제 라우트에 맞게 수정)
- standard-unit-price: 미구현 메뉴로 enabled=false 설정 (단가표관리 페이지 미존재)

Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
2026-03-07 21:59:17 +09:00

33 lines
2.9 KiB
JSON

{
"id": "standard-process-mgmt",
"name": "공정관리 테스트",
"screenshotPolicy": {
"onErrorOnly": true,
"captureOn": ["error", "fail", "timeout", "404", "500", "blocked"]
},
"description": "기준정보 관리 > 공정관리 메뉴의 공정 조회/등록/검색 기능 테스트",
"baseUrl": "https://dev.codebridge-x.com",
"menuNavigation": {
"level1": "기준정보 관리",
"level2": "공정관리",
"expectedUrl": "/master-data/process-management",
"searchWithinParent": true,
"closeOtherMenus": true
},
"auth": { "username": "TestUser5", "password": "password123!" },
"steps": [
{ "id": 1, "name": "메뉴 진입: 기준정보 관리 > 공정관리", "action": "menu_navigate", "level1": "기준정보 관리", "level2": "공정관리", "expected": { "url_contains": "/master-data/process", "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": "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": "verify_table", "checks": ["공정 데이터 컬럼"], "expected": "공정 테이블 표시" },
{ "id": 7, "phase": "SEARCH", "name": "[SEARCH] 검색 기능", "action": "fill", "target": "input[type='search'], input[placeholder*='검색']", "value": "테스트", "submit": true },
{ "id": 8, "phase": "SEARCH", "name": "[SEARCH] 검색 결과 확인", "action": "verify_detail", "checks": ["검색 결과 표시 또는 결과 없음 메시지"], "expected": "검색 기능 동작" },
{ "id": 9, "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": 10, "name": "상세 행 클릭", "action": "click_if_exists", "target": "table tbody tr:first-child", "expected": { "detail_view": true } },
{ "id": 11, "name": "상세 정보 확인", "action": "verify_detail", "checks": ["공정 상세 정보 표시 또는 데이터 없음"], "expected": "상세 정보 표시" },
{ "id": 12, "name": "콘솔 에러 확인", "action": "verify_element", "target": "body" }
],
"rollbackPlan": { "note": "조회 위주 테스트로 데이터 변경 최소" }
}