Files
sam-scenarios/settings-attendance.json
김보곤 7047b2fa1d refactor: 품질검사, 설정관리 시나리오 A/B등급으로 개선
개선된 시나리오:
- quality-inspection.json: C→A (14→18 steps, CRUD 전체)
- settings-bank-account.json: C→A (4→18 steps, 계좌 CRUD)
- settings-position.json: C→A (4→18 steps, 직책 CRUD)
- settings-rank.json: C→A (4→18 steps, 직급 CRUD)
- accounting-receivable.json: C→B (3→15 steps, 조회/필터/엑셀)
- settings-vacation-policy.json: C→B (4→12 steps, 정책 수정)
- settings-work-schedule.json: C→B (4→12 steps, 일정 수정)
- settings-attendance.json: C→B (4→12 steps, 설정 수정)
- inspection-management.json: 메뉴 플래그 추가

공통 개선:
- searchWithinParent, closeOtherMenus 플래그 추가
- testData, expectedAPIs, requiredVerifications 추가
- rollbackPlan 추가
2026-02-03 13:37:06 +09:00

196 lines
5.1 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": "fill",
"target": "input[name*='late'], input[placeholder*='지각']",
"value": "10",
"clear": true
},
{
"id": 6,
"phase": "UPDATE",
"name": "[UPDATE] 조퇴 기준 수정",
"action": "fill",
"target": "input[name*='early'], input[placeholder*='조퇴']",
"value": "10",
"clear": true
},
{
"id": 7,
"phase": "UPDATE",
"name": "[UPDATE] 자동 퇴근 시간 설정",
"action": "fill",
"target": "input[name*='autoCheckout'], input[type='time']",
"value": "22:00",
"clear": true
},
{
"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": "설정 페이지는 수정 후 원복 테스트 권장"
}
}