- item-management: 생산관리>스크린생산 → 품목관리>품목기준관리 (올바른 메뉴) - login: step18 프로필버튼 evaluate로 변경, step22 actions→evaluate 변환 - department-add: step7 click_first_row → evaluate (트리뷰 호환) Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
187 lines
5.6 KiB
JSON
187 lines
5.6 KiB
JSON
{
|
|
"id": "item-management",
|
|
"name": "품목관리 테스트",
|
|
"screenshotPolicy": {
|
|
"onErrorOnly": true,
|
|
"captureOn": [
|
|
"error",
|
|
"fail",
|
|
"timeout",
|
|
"404",
|
|
"500",
|
|
"blocked"
|
|
]
|
|
},
|
|
"description": "품목관리 > 품목기준관리 메뉴의 품목 목록 조회 및 UI 검증 테스트",
|
|
"baseUrl": "https://dev.codebridge-x.com",
|
|
"menuNavigation": {
|
|
"level1": "품목관리",
|
|
"level2": "품목기준관리",
|
|
"expectedUrl": "/master-data/item-master-data-management",
|
|
"searchWithinParent": true,
|
|
"closeOtherMenus": true
|
|
},
|
|
"auth": {
|
|
"username": "TestUser5",
|
|
"password": "password123!"
|
|
},
|
|
"steps": [
|
|
{
|
|
"id": 1,
|
|
"name": "메뉴 진입: 품목관리 > 품목기준관리",
|
|
"action": "menu_navigate",
|
|
"level1": "품목관리",
|
|
"level2": "품목기준관리",
|
|
"expected": {
|
|
"url_contains": "/master-data",
|
|
"visible": [
|
|
"품목관리",
|
|
"품목"
|
|
]
|
|
}
|
|
},
|
|
{
|
|
"id": 2,
|
|
"name": "필수 검증 #5: 목업 페이지 감지",
|
|
"action": "verify_not_mockup",
|
|
"checks": [
|
|
"품목 목록 또는 통계 카드 표시",
|
|
"품목 등록 버튼 존재",
|
|
"검색 기능 존재"
|
|
],
|
|
"expected": "정상 페이지 (목업 아님)"
|
|
},
|
|
{
|
|
"id": 3,
|
|
"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": 4,
|
|
"name": "품목 UI 구조 확인",
|
|
"action": "verify_elements",
|
|
"checks": [
|
|
"통계 카드 영역",
|
|
"품목 목록 테이블",
|
|
"검색 입력 필드",
|
|
"탭/필터 버튼"
|
|
],
|
|
"expected": "품목관리 UI 정상 표시"
|
|
},
|
|
{
|
|
"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,
|
|
"phase": "READ",
|
|
"name": "[READ] 품목 목록 데이터 확인",
|
|
"action": "verify_detail",
|
|
"checks": [
|
|
"품목 목록 데이터 표시됨"
|
|
],
|
|
"expected": "품목 목록 정상"
|
|
},
|
|
{
|
|
"id": 8,
|
|
"phase": "READ",
|
|
"name": "[READ] 첫 번째 행 클릭",
|
|
"action": "click_if_exists",
|
|
"target": "table tbody tr:first-child"
|
|
},
|
|
{
|
|
"id": 9,
|
|
"phase": "READ",
|
|
"name": "[READ] 품목 상세 정보 확인",
|
|
"action": "verify_detail",
|
|
"checks": [
|
|
"품목 상세 정보 표시"
|
|
],
|
|
"expected": "품목 상세 정보 확인"
|
|
},
|
|
{
|
|
"id": 10,
|
|
"name": "상세 모달/페이지 닫기",
|
|
"action": "click_if_exists",
|
|
"target": "닫기"
|
|
},
|
|
{
|
|
"id": 11,
|
|
"name": "모달 닫기 확인",
|
|
"action": "close_modal_if_open",
|
|
"expected": "모달 닫힘"
|
|
},
|
|
{
|
|
"id": 12,
|
|
"name": "탭/필터 기능 확인",
|
|
"action": "click_if_exists",
|
|
"target": "전체"
|
|
},
|
|
{
|
|
"id": 13,
|
|
"name": "등록 버튼 존재 확인",
|
|
"action": "verify_elements",
|
|
"checks": [
|
|
"품목 등록 버튼 존재"
|
|
],
|
|
"expected": "등록 버튼 표시"
|
|
},
|
|
{
|
|
"id": 14,
|
|
"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": 15,
|
|
"name": "콘솔 에러 확인",
|
|
"action": "verify_element",
|
|
"target": "body"
|
|
},
|
|
{
|
|
"id": 16,
|
|
"name": "품목관리 페이지 최종 확인",
|
|
"action": "verify_elements",
|
|
"checks": [
|
|
"품목 목록 구조 정상",
|
|
"통계 카드 또는 요약 정보 표시"
|
|
],
|
|
"expected": "품목관리 페이지 정상"
|
|
}
|
|
],
|
|
"expectedAPIs": [
|
|
{
|
|
"method": "GET",
|
|
"endpoint": "/api/items",
|
|
"description": "품목 목록 조회"
|
|
}
|
|
],
|
|
"requiredVerifications": [
|
|
{
|
|
"id": 5,
|
|
"name": "목업 페이지 감지",
|
|
"steps": [
|
|
2
|
|
],
|
|
"criteria": "품목 목록, 등록 버튼, 검색 기능 존재"
|
|
}
|
|
],
|
|
"rollbackPlan": {
|
|
"note": "READ-only 패턴으로 안정성 우선, 비표준 포맷 제거"
|
|
}
|
|
}
|