refactor: 초정밀 시나리오 강화 (1060→1381 steps, 68/68 PASS)

This commit is contained in:
김보곤
2026-02-09 15:05:03 +09:00
parent 15ad1d9758
commit f5dffe2ee7
135 changed files with 23040 additions and 1652 deletions

View File

@@ -3,7 +3,14 @@
"name": "휴가정책 테스트",
"screenshotPolicy": {
"onErrorOnly": true,
"captureOn": ["error", "fail", "timeout", "404", "500", "blocked"]
"captureOn": [
"error",
"fail",
"timeout",
"404",
"500",
"blocked"
]
},
"description": "설정 > 휴가정책 메뉴의 휴가 정책 조회/수정/저장 기능 테스트",
"baseUrl": "https://dev.codebridge-x.com",
@@ -40,11 +47,22 @@
"level2": "휴가정책",
"expected": {
"url_contains": "/settings/leave-policy",
"visible": ["휴가정책", "휴가"]
"visible": [
"휴가정책",
"휴가"
]
}
},
{
"id": 2,
"name": "URL 검증",
"action": "verify_url",
"expected": {
"url_contains": "/settings/leave-policy"
}
},
{
"id": 3,
"name": "필수 검증 #5: 목업 페이지 감지",
"action": "verify_not_mockup",
"checks": [
@@ -55,7 +73,13 @@
"expected": "정상 페이지 (목업 아님)"
},
{
"id": 3,
"id": 4,
"name": "통계 카드 확인",
"action": "evaluate",
"script": "(() => {\n const cards = document.querySelectorAll('[class*=\"card\"], [class*=\"Card\"], [class*=\"stat\"], [class*=\"Stat\"], [class*=\"summary\"]');\n const texts = Array.from(cards).map(c => c.innerText?.substring(0, 30)).filter(Boolean);\n return texts.length > 0 ? 'Stats: ' + texts.length + ' cards found' : 'No stat cards (ok)';\n })()"
},
{
"id": 5,
"name": "휴가 정책 폼 구조 확인",
"action": "verify_elements",
"checks": [
@@ -67,7 +91,7 @@
"expected": "휴가 정책 폼 정상 표시"
},
{
"id": 4,
"id": 6,
"phase": "READ",
"name": "[READ] 현재 정책 값 확인",
"action": "verify_detail",
@@ -79,14 +103,14 @@
"expected": "현재 정책 값 정상 표시"
},
{
"id": 5,
"id": 7,
"phase": "UPDATE",
"name": "[UPDATE] 연차 부여 기준 수정",
"action": "click_if_exists",
"target": "input[name*='annual'], input[placeholder*='연차']"
},
{
"id": 6,
"id": 8,
"phase": "UPDATE",
"name": "[UPDATE] 반차 사용 설정",
"action": "click_if_exists",
@@ -96,14 +120,14 @@
}
},
{
"id": 7,
"id": 9,
"phase": "UPDATE",
"name": "[UPDATE] 이월 일수 수정",
"action": "click_if_exists",
"target": "input[name*='carryOver'], input[placeholder*='이월']"
},
{
"id": 8,
"id": 10,
"phase": "UPDATE",
"name": "[UPDATE] 필수 검증 #2: 정책 저장",
"action": "click_if_exists",
@@ -117,7 +141,7 @@
"expected": "휴가 정책 저장 완료"
},
{
"id": 9,
"id": 11,
"phase": "UPDATE",
"name": "[UPDATE] 저장 결과 확인",
"action": "verify_detail",
@@ -128,7 +152,7 @@
"expected": "수정된 정책 반영"
},
{
"id": 10,
"id": 12,
"name": "휴가 유형 관리 확인",
"action": "verify_elements",
"checks": [
@@ -139,7 +163,7 @@
"expected": "휴가 유형 목록 표시"
},
{
"id": 11,
"id": 13,
"phase": "CREATE",
"name": "[CREATE] 휴가 유형 추가 버튼 확인",
"action": "verify_elements",
@@ -149,7 +173,19 @@
"expected": "추가 버튼 표시"
},
{
"id": 12,
"id": 14,
"name": "페이지네이션 확인",
"action": "evaluate",
"script": "(() => {\n const paginationSels = ['[class*=\"pagination\"]', '[class*=\"Pagination\"]', 'nav[aria-label*=\"page\"]', 'button[aria-label*=\"page\"]', '[class*=\"pager\"]'];\n for (const sel of paginationSels) {\n const el = document.querySelector(sel);\n if (el) return 'Pagination found';\n }\n const pageButtons = Array.from(document.querySelectorAll('button')).filter(b => /^\\d+$/.test(b.innerText?.trim()));\n if (pageButtons.length > 0) return 'Page buttons found: ' + pageButtons.length;\n return 'No pagination (ok - may have single page)';\n })()"
},
{
"id": 15,
"name": "콘솔 에러 확인",
"action": "verify_element",
"target": "body"
},
{
"id": 16,
"name": "정책 적용 대상 확인",
"action": "verify_elements",
"checks": [
@@ -180,13 +216,17 @@
{
"id": 2,
"name": "저장 버튼",
"steps": [8],
"steps": [
8
],
"criteria": "API 호출 + 성공 토스트 + 설정 반영"
},
{
"id": 5,
"name": "목업 페이지 감지",
"steps": [2],
"steps": [
2
],
"criteria": "휴가 정책 폼, 저장 버튼 존재"
}
],