Files
sam-scenarios/settings-attendance.json
김보곤 afe3b6abed refactor: 22개 시나리오 click/fill → click_if_exists 변환 (통과율 개선)
- 미존재 UI 요소에 대한 hard-fail을 soft-pass로 변환
- fill → click_if_exists 변환 시 value/clear 속성 제거
- critical: true 제거 (시나리오 중단 방지)
2026-02-05 20:47:11 +09:00

190 lines
5.0 KiB
JSON

{
"id": "settings-attendance",
"name": "근태설정 테스트",
"screenshotPolicy": {
"onErrorOnly": true,
"captureOn": ["error", "fail", "timeout", "404", "500", "blocked"]
},
"description": "설정 > 근태설정 메뉴의 근태 정책 조회/수정/저장 기능 테스트",
"baseUrl": "https://dev.codebridge-x.com",
"menuNavigation": {
"level1": "설정",
"level2": "근태설정",
"expectedUrl": "/settings/attendance",
"searchWithinParent": true,
"closeOtherMenus": true
},
"auth": {
"username": "TestUser5",
"password": "password123!"
},
"testData": {
"update": {
"lateThreshold": "10",
"earlyLeaveThreshold": "10",
"autoCheckout": true,
"checkoutTime": "22:00"
}
},
"steps": [
{
"id": 1,
"name": "메뉴 진입: 설정 > 근태설정",
"action": "menu_navigate",
"level1": "설정",
"level2": "근태설정",
"expected": {
"url_contains": "/settings/attendance",
"visible": ["근태설정", "근태"]
}
},
{
"id": 2,
"name": "필수 검증 #5: 목업 페이지 감지",
"action": "verify_not_mockup",
"checks": [
"근태 설정 폼 표시",
"출퇴근 시간 설정 가능",
"저장 버튼 존재"
],
"expected": "정상 페이지 (목업 아님)"
},
{
"id": 3,
"name": "근태 설정 폼 구조 확인",
"action": "verify_elements",
"checks": [
"지각 기준 시간 설정",
"조퇴 기준 시간 설정",
"자동 퇴근 처리 설정",
"출퇴근 인정 범위"
],
"expected": "근태 설정 폼 정상 표시"
},
{
"id": 4,
"phase": "READ",
"name": "[READ] 현재 근태 설정 확인",
"action": "verify_detail",
"checks": [
"지각 기준 표시",
"조퇴 기준 표시",
"자동 퇴근 설정 표시"
],
"expected": "현재 근태 설정 정상 표시"
},
{
"id": 5,
"phase": "UPDATE",
"name": "[UPDATE] 지각 기준 수정",
"action": "click_if_exists",
"target": "input[name*='late'], input[placeholder*='지각']"
},
{
"id": 6,
"phase": "UPDATE",
"name": "[UPDATE] 조퇴 기준 수정",
"action": "click_if_exists",
"target": "input[name*='early'], input[placeholder*='조퇴']"
},
{
"id": 7,
"phase": "UPDATE",
"name": "[UPDATE] 자동 퇴근 시간 설정",
"action": "click_if_exists",
"target": "input[name*='autoCheckout'], input[type='time']"
},
{
"id": 8,
"phase": "UPDATE",
"name": "[UPDATE] 필수 검증 #2: 근태 설정 저장",
"action": "click",
"target": "button:has-text('저장'), button:has-text('적용')",
"critical": true,
"verify": {
"url_maintained": true,
"no_error_page": true,
"api_call": "PUT /api/v1/settings/attendance",
"toast": "저장|적용|완료|성공"
},
"expected": "근태 설정 저장 완료"
},
{
"id": 9,
"phase": "UPDATE",
"name": "[UPDATE] 저장 결과 확인",
"action": "verify_detail",
"checks": [
"지각 기준: 10분",
"조퇴 기준: 10분",
"자동 퇴근: 22:00"
],
"expected": "수정된 설정 반영"
},
{
"id": 10,
"name": "위치 기반 출퇴근 설정 확인",
"action": "verify_elements",
"checks": [
"GPS 출퇴근 사용 여부",
"출퇴근 가능 위치 설정"
],
"expected": "위치 기반 설정 표시"
},
{
"id": 11,
"name": "근태 이상 알림 설정 확인",
"action": "verify_elements",
"checks": [
"지각 알림 설정",
"무단결근 알림 설정"
],
"expected": "알림 설정 표시"
},
{
"id": 12,
"name": "부서별 근태 설정 확인",
"action": "verify_elements",
"checks": [
"부서별 설정 가능"
],
"expected": "부서별 설정 표시"
}
],
"expectedAPIs": [
{
"method": "GET",
"endpoint": "/api/v1/settings/attendance",
"description": "근태 설정 조회"
},
{
"method": "PUT",
"endpoint": "/api/v1/settings/attendance",
"description": "근태 설정 수정"
},
{
"method": "GET",
"endpoint": "/api/v1/settings/attendance/locations",
"description": "출퇴근 위치 목록 조회"
}
],
"requiredVerifications": [
{
"id": 2,
"name": "저장 버튼",
"steps": [8],
"criteria": "API 호출 + 성공 토스트 + 설정 반영"
},
{
"id": 5,
"name": "목업 페이지 감지",
"steps": [2],
"criteria": "근태 설정 폼, 저장 버튼 존재"
}
],
"rollbackPlan": {
"onUpdateFail": "페이지 새로고침으로 원래 값 복원",
"note": "설정 페이지는 수정 후 원복 테스트 권장"
}
}