232 lines
6.2 KiB
JSON
232 lines
6.2 KiB
JSON
{
|
|
"id": "accounting-sales",
|
|
"name": "매출관리 테스트",
|
|
"screenshotPolicy": {
|
|
"onErrorOnly": true,
|
|
"captureOn": [
|
|
"error",
|
|
"fail",
|
|
"timeout",
|
|
"404",
|
|
"500",
|
|
"blocked"
|
|
]
|
|
},
|
|
"description": "회계관리 > 매출관리 메뉴의 매출 조회/필터/엑셀 기능 테스트",
|
|
"baseUrl": "https://dev.codebridge-x.com",
|
|
"menuNavigation": {
|
|
"level1": "회계관리",
|
|
"level2": "매출관리",
|
|
"expectedUrl": "/accounting/sales-accounting",
|
|
"searchWithinParent": true,
|
|
"closeOtherMenus": true
|
|
},
|
|
"auth": {
|
|
"username": "TestUser5",
|
|
"password": "password123!"
|
|
},
|
|
"steps": [
|
|
{
|
|
"id": 1,
|
|
"name": "메뉴 진입: 회계관리 > 매출관리",
|
|
"action": "menu_navigate",
|
|
"level1": "회계관리",
|
|
"level2": "매출관리",
|
|
"expected": {
|
|
"url_contains": "/accounting",
|
|
"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": "매출 테이블 구조 확인",
|
|
"action": "verify_table",
|
|
"checks": [
|
|
"거래일 컬럼",
|
|
"거래처 컬럼",
|
|
"품목 컬럼",
|
|
"금액 컬럼",
|
|
"부가세 컬럼"
|
|
],
|
|
"expected": "매출 테이블 표시"
|
|
},
|
|
{
|
|
"id": 5,
|
|
"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": 6,
|
|
"name": "매출 통계 카드 확인",
|
|
"action": "verify_elements",
|
|
"checks": [
|
|
"총 매출액 표시",
|
|
"당월 매출 표시",
|
|
"전월 대비 표시"
|
|
],
|
|
"expected": "통계 카드 표시"
|
|
},
|
|
{
|
|
"id": 7,
|
|
"phase": "FILTER",
|
|
"name": "[FILTER] 기간 필터 - 시작일",
|
|
"action": "click_if_exists",
|
|
"target": "input[type='date']:first-of-type, [class*='datepicker']:first-of-type",
|
|
"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,
|
|
"phase": "FILTER",
|
|
"name": "[FILTER] 거래처별 필터",
|
|
"action": "click_if_exists",
|
|
"target": "select[name*='vendor'], button:has-text('거래처')",
|
|
"expected": "거래처 필터 가능"
|
|
},
|
|
{
|
|
"id": 11,
|
|
"phase": "READ",
|
|
"name": "[READ] 매출 상세 보기",
|
|
"action": "click_if_exists",
|
|
"target": "table tbody tr:first-child",
|
|
"expected": {
|
|
"detail_view": true
|
|
}
|
|
},
|
|
{
|
|
"id": 12,
|
|
"name": "상세 정보 확인",
|
|
"action": "verify_detail",
|
|
"checks": [
|
|
"거래 상세 정보 표시",
|
|
"품목 정보 표시",
|
|
"금액 상세 표시"
|
|
],
|
|
"expected": "매출 상세 정보 표시"
|
|
},
|
|
{
|
|
"id": 13,
|
|
"name": "목록으로 돌아가기",
|
|
"action": "click_if_exists",
|
|
"target": "button:has-text('목록'), a:has-text('목록'), [class*='back']",
|
|
"expected": "목록 페이지로 복귀"
|
|
},
|
|
{
|
|
"id": 14,
|
|
"name": "매출 합계 확인",
|
|
"action": "verify_elements",
|
|
"checks": [
|
|
"매출 합계 금액 표시"
|
|
],
|
|
"expected": "매출 합계 표시"
|
|
},
|
|
{
|
|
"id": 15,
|
|
"name": "엑셀 다운로드 버튼 확인",
|
|
"action": "verify_elements",
|
|
"checks": [
|
|
"엑셀 다운로드 버튼 존재"
|
|
],
|
|
"expected": "엑셀 다운로드 기능 표시"
|
|
},
|
|
{
|
|
"id": 16,
|
|
"name": "인쇄 버튼 확인",
|
|
"action": "verify_elements",
|
|
"checks": [
|
|
"인쇄 버튼 존재"
|
|
],
|
|
"expected": "인쇄 기능 표시"
|
|
},
|
|
{
|
|
"id": 17,
|
|
"name": "페이지네이션 확인",
|
|
"action": "verify_elements",
|
|
"checks": [
|
|
"페이지 번호 표시"
|
|
],
|
|
"expected": "페이지네이션 표시"
|
|
},
|
|
{
|
|
"id": 18,
|
|
"name": "콘솔 에러 확인",
|
|
"action": "verify_element",
|
|
"target": "body"
|
|
}
|
|
],
|
|
"expectedAPIs": [
|
|
{
|
|
"method": "GET",
|
|
"endpoint": "/api/v1/accounting/sales",
|
|
"description": "매출 목록 조회"
|
|
},
|
|
{
|
|
"method": "GET",
|
|
"endpoint": "/api/v1/accounting/sales/summary",
|
|
"description": "매출 요약 조회"
|
|
}
|
|
],
|
|
"requiredVerifications": [
|
|
{
|
|
"id": 3,
|
|
"name": "검색/필터",
|
|
"steps": [
|
|
5,
|
|
6,
|
|
7,
|
|
8
|
|
],
|
|
"criteria": "기간 필터 + 거래처 필터 동작"
|
|
},
|
|
{
|
|
"id": 5,
|
|
"name": "목업 페이지 감지",
|
|
"steps": [
|
|
2
|
|
],
|
|
"criteria": "매출 목록, 기간 필터, 합계 표시 존재"
|
|
}
|
|
],
|
|
"rollbackPlan": {
|
|
"note": "조회 전용 페이지로 데이터 변경 없음"
|
|
}
|
|
}
|