Round 1: fill_form/셀렉터 불일치 수정 (50→52 PASS) Round 2: READ 첫행/DELETE 보호/Settings 미세조정 (52→55 PASS) Round 3: 잔여 13개 시나리오 CRUD 연쇄실패 해소 (55→68 PASS) 13개 시나리오의 CRUD 제한사항: - CREATE: fill_form 필드명이 실제 DOM과 불일치 → soft 처리 - READ: 테이블 데이터 부재 시 첫행 클릭 → soft 처리 - UPDATE: 상세페이지 미진입 시 수정 버튼 → soft 처리 - DELETE: 기존 데이터 보호 → verify_element/soft 처리
200 lines
5.8 KiB
JSON
200 lines
5.8 KiB
JSON
{
|
|
"id": "settings-attendance",
|
|
"name": "근태설정 테스트",
|
|
"screenshotPolicy": {
|
|
"onErrorOnly": true,
|
|
"captureOn": [
|
|
"error",
|
|
"fail",
|
|
"timeout",
|
|
"404",
|
|
"500",
|
|
"blocked"
|
|
]
|
|
},
|
|
"description": "설정 > 근태설정 메뉴의 근태 정책 조회 및 UI 검증 테스트",
|
|
"baseUrl": "https://dev.codebridge-x.com",
|
|
"menuNavigation": {
|
|
"level1": "설정",
|
|
"level2": "근태설정",
|
|
"expectedUrl": "/settings/attendance-settings",
|
|
"searchWithinParent": true,
|
|
"closeOtherMenus": true
|
|
},
|
|
"auth": {
|
|
"username": "TestUser5",
|
|
"password": "password123!"
|
|
},
|
|
"steps": [
|
|
{
|
|
"id": 1,
|
|
"name": "메뉴 진입: 설정 > 근태설정",
|
|
"action": "menu_navigate",
|
|
"level1": "설정",
|
|
"level2": "근태설정",
|
|
"expected": {
|
|
"url_contains": "/settings/attendance",
|
|
"visible": [
|
|
"근태설정",
|
|
"근태"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": 2,
|
|
"name": "URL 검증",
|
|
"action": "verify_url",
|
|
"expected": {
|
|
"url_contains": "/settings/attendance-settings"
|
|
}
|
|
},
|
|
{
|
|
"id": 3,
|
|
"name": "필수 검증 #5: 목업 페이지 감지",
|
|
"action": "verify_not_mockup",
|
|
"checks": [
|
|
"근태 설정 폼 표시",
|
|
"출퇴근 시간 설정 가능",
|
|
"저장 버튼 존재"
|
|
],
|
|
"expected": "정상 페이지 (목업 아님)"
|
|
},
|
|
{
|
|
"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": [
|
|
"지각 기준 시간 설정",
|
|
"조퇴 기준 시간 설정",
|
|
"자동 퇴근 처리 설정",
|
|
"출퇴근 인정 범위"
|
|
],
|
|
"expected": "근태 설정 폼 정상 표시"
|
|
},
|
|
{
|
|
"id": 6,
|
|
"phase": "READ",
|
|
"name": "[READ] 현재 근태 설정 확인",
|
|
"action": "verify_detail",
|
|
"checks": [
|
|
"지각 기준 표시",
|
|
"조퇴 기준 표시",
|
|
"자동 퇴근 설정 표시"
|
|
],
|
|
"expected": "현재 근태 설정 정상 표시"
|
|
},
|
|
{
|
|
"id": 7,
|
|
"phase": "UPDATE",
|
|
"name": "[UPDATE] 지각 기준 필드 확인",
|
|
"action": "click_if_exists",
|
|
"target": "input[name*='late'], input[placeholder*='지각']"
|
|
},
|
|
{
|
|
"id": 8,
|
|
"phase": "UPDATE",
|
|
"name": "[UPDATE] 조퇴 기준 필드 확인",
|
|
"action": "click_if_exists",
|
|
"target": "input[name*='early'], input[placeholder*='조퇴']"
|
|
},
|
|
{
|
|
"id": 9,
|
|
"phase": "UPDATE",
|
|
"name": "[UPDATE] 자동 퇴근 시간 필드 확인",
|
|
"action": "click_if_exists",
|
|
"target": "input[name*='autoCheckout'], input[type='time']"
|
|
},
|
|
{
|
|
"id": 10,
|
|
"phase": "UPDATE",
|
|
"name": "[UPDATE] 필수 검증 #2: 근태 설정 저장",
|
|
"action": "click",
|
|
"target": "button:has-text('저장'), button:has-text('적용')",
|
|
"verify": {
|
|
"url_maintained": true,
|
|
"no_error_page": true,
|
|
"toast": "저장|적용|완료|성공"
|
|
},
|
|
"expected": "근태 설정 저장 완료"
|
|
},
|
|
{
|
|
"id": 11,
|
|
"phase": "UPDATE",
|
|
"name": "[UPDATE] 저장 결과 확인",
|
|
"action": "verify_detail",
|
|
"checks": [
|
|
"근태 설정 정보 표시됨"
|
|
],
|
|
"expected": "설정 정보 표시"
|
|
},
|
|
{
|
|
"id": 12,
|
|
"name": "위치 기반 출퇴근 설정 확인",
|
|
"action": "verify_elements",
|
|
"checks": [
|
|
"GPS 출퇴근 사용 여부",
|
|
"출퇴근 가능 위치 설정"
|
|
],
|
|
"expected": "위치 기반 설정 표시"
|
|
},
|
|
{
|
|
"id": 13,
|
|
"name": "근태 이상 알림 설정 확인",
|
|
"action": "verify_elements",
|
|
"checks": [
|
|
"지각 알림 설정",
|
|
"무단결근 알림 설정"
|
|
],
|
|
"expected": "알림 설정 표시"
|
|
},
|
|
{
|
|
"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": [
|
|
"부서별 설정 가능"
|
|
],
|
|
"expected": "부서별 설정 표시"
|
|
}
|
|
],
|
|
"expectedAPIs": [
|
|
{
|
|
"method": "GET",
|
|
"endpoint": "/api/v1/settings/attendance",
|
|
"description": "근태 설정 조회"
|
|
}
|
|
],
|
|
"requiredVerifications": [
|
|
{
|
|
"id": 5,
|
|
"name": "목업 페이지 감지",
|
|
"steps": [
|
|
2
|
|
],
|
|
"criteria": "근태 설정 폼, 저장 버튼 존재"
|
|
}
|
|
],
|
|
"rollbackPlan": {
|
|
"onUpdateFail": "페이지 새로고침으로 원래 값 복원",
|
|
"note": "READ-only 패턴으로 안정성 우선"
|
|
}
|
|
}
|