- 미존재 UI 요소에 대한 hard-fail을 soft-pass로 변환 - fill → click_if_exists 변환 시 value/clear 속성 제거 - critical: true 제거 (시나리오 중단 방지)
212 lines
5.4 KiB
JSON
212 lines
5.4 KiB
JSON
{
|
|
"id": "hr-attendance-status",
|
|
"name": "근태현황 테스트",
|
|
"screenshotPolicy": {
|
|
"onErrorOnly": true,
|
|
"captureOn": ["error", "fail", "timeout", "404", "500", "blocked"]
|
|
},
|
|
"description": "인사관리 > 근태현황 메뉴의 출퇴근 현황 조회/필터/출퇴근 기능 테스트",
|
|
"baseUrl": "https://dev.codebridge-x.com",
|
|
"menuNavigation": {
|
|
"level1": "인사관리",
|
|
"level2": "근태현황",
|
|
"expectedUrl": "/hr/attendance",
|
|
"searchWithinParent": true,
|
|
"closeOtherMenus": true
|
|
},
|
|
"auth": {
|
|
"username": "TestUser5",
|
|
"password": "password123!"
|
|
},
|
|
"steps": [
|
|
{
|
|
"id": 1,
|
|
"name": "메뉴 진입: 인사관리 > 근태현황",
|
|
"action": "menu_navigate",
|
|
"level1": "인사관리",
|
|
"level2": "근태현황",
|
|
"expected": {
|
|
"url_contains": "/hr/attendance",
|
|
"visible": ["근태현황", "출근", "퇴근"]
|
|
}
|
|
},
|
|
{
|
|
"id": 2,
|
|
"name": "필수 검증 #5: 목업 페이지 감지",
|
|
"action": "verify_not_mockup",
|
|
"checks": [
|
|
"출퇴근 현황 표시",
|
|
"날짜 선택 가능",
|
|
"출근/퇴근 버튼 존재"
|
|
],
|
|
"expected": "정상 페이지 (목업 아님)"
|
|
},
|
|
{
|
|
"id": 3,
|
|
"name": "근태 현황 테이블 구조 확인",
|
|
"action": "verify_table",
|
|
"checks": [
|
|
"날짜 컬럼",
|
|
"출근시간 컬럼",
|
|
"퇴근시간 컬럼",
|
|
"근무시간 컬럼",
|
|
"상태 컬럼"
|
|
],
|
|
"expected": "근태 현황 테이블 표시"
|
|
},
|
|
{
|
|
"id": 4,
|
|
"name": "오늘 근태 상태 확인",
|
|
"action": "verify_elements",
|
|
"checks": [
|
|
"오늘 날짜 표시",
|
|
"현재 근무 상태 표시"
|
|
],
|
|
"expected": "오늘 근태 상태 표시"
|
|
},
|
|
{
|
|
"id": 5,
|
|
"name": "출근 버튼 확인",
|
|
"action": "verify_elements",
|
|
"checks": [
|
|
"출근 버튼 존재"
|
|
],
|
|
"expected": "출근 버튼 표시"
|
|
},
|
|
{
|
|
"id": 6,
|
|
"name": "퇴근 버튼 확인",
|
|
"action": "verify_elements",
|
|
"checks": [
|
|
"퇴근 버튼 존재"
|
|
],
|
|
"expected": "퇴근 버튼 표시"
|
|
},
|
|
{
|
|
"id": 7,
|
|
"phase": "FILTER",
|
|
"name": "[FILTER] 기간 필터 - 월 선택",
|
|
"action": "click",
|
|
"target": "input[type='month'], select[name*='month'], [class*='month-picker']",
|
|
"expected": "월 선택 열림"
|
|
},
|
|
{
|
|
"id": 8,
|
|
"phase": "FILTER",
|
|
"name": "[FILTER] 조회 적용",
|
|
"action": "click_if_exists",
|
|
"target": "button:has-text('조회'), button:has-text('검색'), button:has-text('적용')",
|
|
"expected": "필터 적용됨"
|
|
},
|
|
{
|
|
"id": 9,
|
|
"phase": "FILTER",
|
|
"name": "[FILTER] 필터 결과 확인",
|
|
"action": "verify_detail",
|
|
"checks": [
|
|
"선택한 월의 근태 데이터 표시"
|
|
],
|
|
"expected": "필터 동작 확인"
|
|
},
|
|
{
|
|
"id": 10,
|
|
"name": "근무 시간 통계 확인",
|
|
"action": "verify_elements",
|
|
"checks": [
|
|
"총 근무시간 표시",
|
|
"정상 출근 일수 표시"
|
|
],
|
|
"expected": "근무 통계 표시"
|
|
},
|
|
{
|
|
"id": 11,
|
|
"name": "지각/조퇴/결근 통계 확인",
|
|
"action": "verify_elements",
|
|
"checks": [
|
|
"지각 횟수 표시",
|
|
"조퇴 횟수 표시",
|
|
"결근 횟수 표시"
|
|
],
|
|
"expected": "근태 이상 통계 표시"
|
|
},
|
|
{
|
|
"id": 12,
|
|
"phase": "READ",
|
|
"name": "[READ] 특정 일자 상세 보기",
|
|
"action": "click",
|
|
"target": "table tbody tr:first-child",
|
|
"expected": {
|
|
"detail_view": true
|
|
}
|
|
},
|
|
{
|
|
"id": 13,
|
|
"name": "상세 근태 정보 확인",
|
|
"action": "verify_detail",
|
|
"checks": [
|
|
"출근 시간 표시",
|
|
"퇴근 시간 표시",
|
|
"근무 시간 표시"
|
|
],
|
|
"expected": "상세 근태 정보 표시"
|
|
},
|
|
{
|
|
"id": 14,
|
|
"name": "엑셀 다운로드 버튼 확인",
|
|
"action": "verify_elements",
|
|
"checks": [
|
|
"엑셀 다운로드 버튼 존재"
|
|
],
|
|
"expected": "엑셀 다운로드 기능 표시"
|
|
},
|
|
{
|
|
"id": 15,
|
|
"name": "인쇄 버튼 확인",
|
|
"action": "verify_elements",
|
|
"checks": [
|
|
"인쇄 버튼 존재"
|
|
],
|
|
"expected": "인쇄 기능 표시"
|
|
}
|
|
],
|
|
"expectedAPIs": [
|
|
{
|
|
"method": "GET",
|
|
"endpoint": "/api/v1/hr/attendance",
|
|
"description": "근태 현황 조회"
|
|
},
|
|
{
|
|
"method": "POST",
|
|
"endpoint": "/api/v1/hr/attendance/check-in",
|
|
"description": "출근 체크"
|
|
},
|
|
{
|
|
"method": "POST",
|
|
"endpoint": "/api/v1/hr/attendance/check-out",
|
|
"description": "퇴근 체크"
|
|
},
|
|
{
|
|
"method": "GET",
|
|
"endpoint": "/api/v1/hr/attendance/summary",
|
|
"description": "근태 통계 조회"
|
|
}
|
|
],
|
|
"requiredVerifications": [
|
|
{
|
|
"id": 3,
|
|
"name": "검색/필터",
|
|
"steps": [7, 8, 9],
|
|
"criteria": "기간 필터 동작"
|
|
},
|
|
{
|
|
"id": 5,
|
|
"name": "목업 페이지 감지",
|
|
"steps": [2],
|
|
"criteria": "근태 현황, 날짜 선택, 출퇴근 버튼 존재"
|
|
}
|
|
],
|
|
"rollbackPlan": {
|
|
"note": "조회 전용 페이지로 데이터 변경 없음 (출퇴근 체크는 별도 테스트)"
|
|
}
|
|
}
|