{ "id": "hr-department", "name": "부서관리 테스트", "screenshotPolicy": { "onErrorOnly": true, "captureOn": [ "error", "fail", "timeout", "404", "500", "blocked" ] }, "description": "인사관리 > 부서관리 목록/상세 기능 검증", "baseUrl": "https://dev.codebridge-x.com", "menuNavigation": { "level1": "인사관리", "level2": "부서관리", "expectedUrl": "/hr/department-management", "searchWithinParent": true, "closeOtherMenus": true }, "auth": { "username": "TestUser5", "password": "password123!" }, "steps": [ { "id": 1, "name": "메뉴 진입: 인사관리 > 부서관리", "action": "menu_navigate", "level1": "인사관리", "level2": "부서관리", "expected": { "url_contains": "/hr/department" } }, { "id": 2, "name": "URL 검증", "action": "verify_url", "expected": { "url_contains": "/hr/department-management" } }, { "id": 3, "name": "목업 감지", "action": "verify_not_mockup" }, { "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_detail", "checks": [ "visible_text:부서" ] }, { "id": 6, "name": "UI 요소 확인", "action": "verify_detail", "checks": [ "visible_text:관리" ] }, { "id": 7, "name": "검색 입력 시도", "action": "click_if_exists", "target": "input[type='search'], input[placeholder*='검색'], input[placeholder*='조회'], [class*='search'] input" }, { "id": 8, "name": "대기", "action": "wait", "duration": 1000 }, { "id": 9, "name": "행 클릭 시도", "action": "click_if_exists", "target": "table tbody tr, [role='row']:not(:first-child), [class*='list'] [class*='item']" }, { "id": 10, "name": "상세 확인", "action": "verify_detail", "checks": [ "visible_text:부서" ] }, { "id": 11, "name": "모달 닫기", "action": "close_modal_if_open" }, { "id": 12, "name": "페이지네이션 확인", "action": "evaluate", "script": "(() => {\n const paginationSels = ['[class*=\"pagination\"]', '[class*=\"Pagination\"]', 'nav[aria-label*=\"page\"]', 'button[aria-label*=\"page\"]', '[class*=\"pager\"]'];\n for (const sel of paginationSels) {\n const el = document.querySelector(sel);\n if (el) return 'Pagination found';\n }\n const pageButtons = Array.from(document.querySelectorAll('button')).filter(b => /^\\d+$/.test(b.innerText?.trim()));\n if (pageButtons.length > 0) return 'Page buttons found: ' + pageButtons.length;\n return 'No pagination (ok - may have single page)';\n })()" }, { "id": 13, "name": "콘솔 에러 확인", "action": "verify_element", "target": "body" }, { "id": 14, "name": "최종 확인", "action": "verify_detail", "checks": [ "visible_text:부서" ] } ] }