255 lines
6.6 KiB
JSON
255 lines
6.6 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": "URL 검증",
|
|
"action": "verify_url",
|
|
"expected": {
|
|
"url_contains": "/hr/attendance"
|
|
}
|
|
},
|
|
{
|
|
"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_table",
|
|
"checks": [
|
|
"날짜 컬럼",
|
|
"출근시간 컬럼",
|
|
"퇴근시간 컬럼",
|
|
"근무시간 컬럼",
|
|
"상태 컬럼"
|
|
],
|
|
"expected": "근태 현황 테이블 표시"
|
|
},
|
|
{
|
|
"id": 6,
|
|
"name": "목록 필터 테스트",
|
|
"action": "evaluate",
|
|
"script": "(() => {\n const selects = document.querySelectorAll('select, [role=\"combobox\"], button[class*=\"select\"], button[class*=\"Select\"]');\n if (selects.length > 0) {\n return 'Filters found: ' + selects.length;\n }\n return 'No filter dropdowns (ok)';\n })()"
|
|
},
|
|
{
|
|
"id": 7,
|
|
"name": "오늘 근태 상태 확인",
|
|
"action": "verify_elements",
|
|
"checks": [
|
|
"오늘 날짜 표시",
|
|
"현재 근무 상태 표시"
|
|
],
|
|
"expected": "오늘 근태 상태 표시"
|
|
},
|
|
{
|
|
"id": 8,
|
|
"name": "출근 버튼 확인",
|
|
"action": "verify_elements",
|
|
"checks": [
|
|
"출근 버튼 존재"
|
|
],
|
|
"expected": "출근 버튼 표시"
|
|
},
|
|
{
|
|
"id": 9,
|
|
"name": "퇴근 버튼 확인",
|
|
"action": "verify_elements",
|
|
"checks": [
|
|
"퇴근 버튼 존재"
|
|
],
|
|
"expected": "퇴근 버튼 표시"
|
|
},
|
|
{
|
|
"id": 10,
|
|
"phase": "FILTER",
|
|
"name": "[FILTER] 기간 필터 - 월 선택",
|
|
"action": "click_if_exists",
|
|
"target": "input[type='month'], select[name*='month'], [class*='month-picker']",
|
|
"expected": "월 선택 열림"
|
|
},
|
|
{
|
|
"id": 11,
|
|
"phase": "FILTER",
|
|
"name": "[FILTER] 조회 적용",
|
|
"action": "click_if_exists",
|
|
"target": "button:has-text('조회'), button:has-text('검색'), button:has-text('적용')",
|
|
"expected": "필터 적용됨"
|
|
},
|
|
{
|
|
"id": 12,
|
|
"phase": "FILTER",
|
|
"name": "[FILTER] 필터 결과 확인",
|
|
"action": "verify_detail",
|
|
"checks": [
|
|
"선택한 월의 근태 데이터 표시"
|
|
],
|
|
"expected": "필터 동작 확인"
|
|
},
|
|
{
|
|
"id": 13,
|
|
"name": "근무 시간 통계 확인",
|
|
"action": "verify_elements",
|
|
"checks": [
|
|
"총 근무시간 표시",
|
|
"정상 출근 일수 표시"
|
|
],
|
|
"expected": "근무 통계 표시"
|
|
},
|
|
{
|
|
"id": 14,
|
|
"name": "지각/조퇴/결근 통계 확인",
|
|
"action": "verify_elements",
|
|
"checks": [
|
|
"지각 횟수 표시",
|
|
"조퇴 횟수 표시",
|
|
"결근 횟수 표시"
|
|
],
|
|
"expected": "근태 이상 통계 표시"
|
|
},
|
|
{
|
|
"id": 15,
|
|
"phase": "READ",
|
|
"name": "[READ] 특정 일자 상세 보기",
|
|
"action": "click_if_exists",
|
|
"target": "table tbody tr:first-child",
|
|
"expected": {
|
|
"detail_view": true
|
|
}
|
|
},
|
|
{
|
|
"id": 16,
|
|
"name": "상세 근태 정보 확인",
|
|
"action": "verify_detail",
|
|
"checks": [
|
|
"출근 시간 표시",
|
|
"퇴근 시간 표시",
|
|
"근무 시간 표시"
|
|
],
|
|
"expected": "상세 근태 정보 표시"
|
|
},
|
|
{
|
|
"id": 17,
|
|
"name": "엑셀 다운로드 버튼 확인",
|
|
"action": "verify_elements",
|
|
"checks": [
|
|
"엑셀 다운로드 버튼 존재"
|
|
],
|
|
"expected": "엑셀 다운로드 기능 표시"
|
|
},
|
|
{
|
|
"id": 18,
|
|
"name": "인쇄 버튼 확인",
|
|
"action": "verify_elements",
|
|
"checks": [
|
|
"인쇄 버튼 존재"
|
|
],
|
|
"expected": "인쇄 기능 표시"
|
|
},
|
|
{
|
|
"id": 19,
|
|
"name": "콘솔 에러 확인",
|
|
"action": "verify_element",
|
|
"target": "body"
|
|
}
|
|
],
|
|
"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": "조회 전용 페이지로 데이터 변경 없음 (출퇴근 체크는 별도 테스트)"
|
|
}
|
|
}
|