Files
sam-scenarios/settings-vacation-policy.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

203 lines
5.3 KiB
JSON

{
"id": "settings-vacation-policy",
"name": "휴가정책 테스트",
"screenshotPolicy": {
"onErrorOnly": true,
"captureOn": ["error", "fail", "timeout", "404", "500", "blocked"]
},
"description": "설정 > 휴가정책 메뉴의 휴가 정책 조회/수정/저장 기능 테스트",
"baseUrl": "https://dev.codebridge-x.com",
"menuNavigation": {
"level1": "설정",
"level2": "휴가정책",
"expectedUrl": "/settings/vacation-policy",
"searchWithinParent": true,
"closeOtherMenus": true
},
"auth": {
"username": "TestUser5",
"password": "password123!"
},
"testData": {
"update": {
"annualLeave": "15",
"halfDayEnabled": true,
"carryOverDays": "5",
"memo": "E2E 테스트 휴가정책"
},
"restore": {
"annualLeave": "15",
"halfDayEnabled": true,
"carryOverDays": "5"
}
},
"steps": [
{
"id": 1,
"name": "메뉴 진입: 설정 > 휴가정책",
"action": "menu_navigate",
"level1": "설정",
"level2": "휴가정책",
"expected": {
"url_contains": "/settings/vacation",
"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*='annual'], input[placeholder*='연차']",
"value": "15",
"clear": true
},
{
"id": 6,
"phase": "UPDATE",
"name": "[UPDATE] 반차 사용 설정",
"action": "click",
"target": "input[type='checkbox'][name*='half'], label:has-text('반차')",
"expected": {
"checkbox_toggled": true
}
},
{
"id": 7,
"phase": "UPDATE",
"name": "[UPDATE] 이월 일수 수정",
"action": "fill",
"target": "input[name*='carryOver'], input[placeholder*='이월']",
"value": "5",
"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/vacation-policy",
"toast": "저장|적용|완료|성공"
},
"expected": "휴가 정책 저장 완료"
},
{
"id": 9,
"phase": "UPDATE",
"name": "[UPDATE] 저장 결과 확인",
"action": "verify_detail",
"checks": [
"연차: 15",
"이월 일수: 5"
],
"expected": "수정된 정책 반영"
},
{
"id": 10,
"name": "휴가 유형 관리 확인",
"action": "verify_elements",
"checks": [
"연차 유형 표시",
"병가 유형 표시",
"경조사 유형 표시"
],
"expected": "휴가 유형 목록 표시"
},
{
"id": 11,
"phase": "CREATE",
"name": "[CREATE] 휴가 유형 추가 버튼 확인",
"action": "verify_elements",
"checks": [
"휴가 유형 추가 버튼 존재"
],
"expected": "추가 버튼 표시"
},
{
"id": 12,
"name": "정책 적용 대상 확인",
"action": "verify_elements",
"checks": [
"부서별 적용 설정",
"직급별 적용 설정"
],
"expected": "적용 대상 설정 표시"
}
],
"expectedAPIs": [
{
"method": "GET",
"endpoint": "/api/v1/settings/vacation-policy",
"description": "휴가 정책 조회"
},
{
"method": "PUT",
"endpoint": "/api/v1/settings/vacation-policy",
"description": "휴가 정책 수정"
},
{
"method": "GET",
"endpoint": "/api/v1/vacation-types",
"description": "휴가 유형 목록 조회"
}
],
"requiredVerifications": [
{
"id": 2,
"name": "저장 버튼",
"steps": [8],
"criteria": "API 호출 + 성공 토스트 + 설정 반영"
},
{
"id": 5,
"name": "목업 페이지 감지",
"steps": [2],
"criteria": "휴가 정책 폼, 저장 버튼 존재"
}
],
"rollbackPlan": {
"onUpdateFail": "페이지 새로고침으로 원래 값 복원",
"note": "설정 페이지는 수정 후 원복 테스트 권장"
}
}