- accounting-ledger, accounting-payment, accounting-daily-report: C→B (조회/필터/다운로드) - accounting-financial, accounting-cost: C→B (재무제표/원가 조회) - production-dashboard, production-worker: C→B (현황판/작업자화면) - production-item, production-work-result: C→A (CRUD 전체) - purchase-status: C→B (구매현황 조회) - purchase-client, purchase-pricing: C→A (거래처/단가 CRUD) - material-stock: C→B (재고현황 조회) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
209 lines
5.3 KiB
JSON
209 lines
5.3 KiB
JSON
{
|
|
"id": "purchase-status",
|
|
"name": "구매현황 테스트",
|
|
"screenshotPolicy": {
|
|
"onErrorOnly": true,
|
|
"captureOn": ["error", "fail", "timeout", "404", "500", "blocked"]
|
|
},
|
|
"description": "구매관리 > 구매현황 메뉴의 구매 현황 조회/필터/통계 기능 테스트",
|
|
"baseUrl": "https://dev.codebridge-x.com",
|
|
"menuNavigation": {
|
|
"level1": "구매관리",
|
|
"level2": "구매현황",
|
|
"expectedUrl": "/purchase/status",
|
|
"searchWithinParent": true,
|
|
"closeOtherMenus": true
|
|
},
|
|
"auth": {
|
|
"username": "TestUser5",
|
|
"password": "password123!"
|
|
},
|
|
"steps": [
|
|
{
|
|
"id": 1,
|
|
"name": "메뉴 진입: 구매관리 > 구매현황",
|
|
"action": "menu_navigate",
|
|
"level1": "구매관리",
|
|
"level2": "구매현황",
|
|
"expected": {
|
|
"url_contains": "/purchase",
|
|
"visible": ["구매현황", "구매"]
|
|
}
|
|
},
|
|
{
|
|
"id": 2,
|
|
"name": "필수 검증 #5: 목업 페이지 감지",
|
|
"action": "verify_not_mockup",
|
|
"checks": [
|
|
"구매 현황 표시",
|
|
"기간 필터 존재",
|
|
"통계 또는 차트 존재"
|
|
],
|
|
"expected": "정상 페이지 (목업 아님)"
|
|
},
|
|
{
|
|
"id": 3,
|
|
"name": "구매현황 페이지 구조 확인",
|
|
"action": "verify_elements",
|
|
"checks": [
|
|
"구매 통계 카드",
|
|
"기간 선택 필터",
|
|
"구매 목록 테이블 또는 차트"
|
|
],
|
|
"expected": "구매현황 페이지 정상 표시"
|
|
},
|
|
{
|
|
"id": 4,
|
|
"phase": "READ",
|
|
"name": "[READ] 구매 통계 확인",
|
|
"action": "verify_detail",
|
|
"checks": [
|
|
"총 구매금액",
|
|
"구매 건수",
|
|
"평균 구매금액"
|
|
],
|
|
"expected": "구매 통계 표시"
|
|
},
|
|
{
|
|
"id": 5,
|
|
"phase": "FILTER",
|
|
"name": "[FILTER] 기간 필터 - 시작일",
|
|
"action": "fill",
|
|
"target": "input[type='date']:first-of-type, input[name*='start']",
|
|
"value": "2025-01-01"
|
|
},
|
|
{
|
|
"id": 6,
|
|
"phase": "FILTER",
|
|
"name": "[FILTER] 기간 필터 - 종료일",
|
|
"action": "fill",
|
|
"target": "input[type='date']:last-of-type, input[name*='end']",
|
|
"value": "2025-12-31"
|
|
},
|
|
{
|
|
"id": 7,
|
|
"phase": "FILTER",
|
|
"name": "[FILTER] 조회 실행",
|
|
"action": "click",
|
|
"target": "button:has-text('조회'), button:has-text('검색')",
|
|
"expected": {
|
|
"data_loaded": true,
|
|
"api_call": "GET /api/v1/purchase/status"
|
|
}
|
|
},
|
|
{
|
|
"id": 8,
|
|
"name": "구매 현황 테이블 확인",
|
|
"action": "verify_table",
|
|
"checks": [
|
|
"발주일 컬럼",
|
|
"거래처 컬럼",
|
|
"품목 컬럼",
|
|
"금액 컬럼",
|
|
"상태 컬럼"
|
|
],
|
|
"expected": "구매 현황 테이블 표시"
|
|
},
|
|
{
|
|
"id": 9,
|
|
"name": "상태별 필터 확인",
|
|
"action": "verify_elements",
|
|
"checks": [
|
|
"진행중/완료/취소 상태 필터"
|
|
],
|
|
"expected": "상태 필터 표시"
|
|
},
|
|
{
|
|
"id": 10,
|
|
"name": "거래처별 통계 확인",
|
|
"action": "verify_elements",
|
|
"checks": [
|
|
"거래처별 구매금액 표시"
|
|
],
|
|
"expected": "거래처별 통계 표시"
|
|
},
|
|
{
|
|
"id": 11,
|
|
"name": "품목별 통계 확인",
|
|
"action": "verify_elements",
|
|
"checks": [
|
|
"품목별 구매금액 표시"
|
|
],
|
|
"expected": "품목별 통계 표시"
|
|
},
|
|
{
|
|
"id": 12,
|
|
"name": "월별 추이 차트 확인",
|
|
"action": "verify_elements",
|
|
"checks": [
|
|
"월별 구매 추이 차트"
|
|
],
|
|
"expected": "추이 차트 표시"
|
|
},
|
|
{
|
|
"id": 13,
|
|
"name": "필수 검증 #1: 엑셀 다운로드",
|
|
"action": "click",
|
|
"target": "button:has-text('엑셀'), button:has-text('Excel'), button:has-text('다운로드')",
|
|
"critical": true,
|
|
"verify": {
|
|
"api_call": "GET /api/v1/purchase/status/export",
|
|
"file_download": true
|
|
},
|
|
"expected": "엑셀 파일 다운로드"
|
|
},
|
|
{
|
|
"id": 14,
|
|
"name": "인쇄 기능 확인",
|
|
"action": "verify_elements",
|
|
"checks": [
|
|
"인쇄 버튼 존재"
|
|
],
|
|
"expected": "인쇄 기능 표시"
|
|
},
|
|
{
|
|
"id": 15,
|
|
"name": "전년 대비 비교 확인",
|
|
"action": "verify_elements",
|
|
"checks": [
|
|
"전년 동기 대비 증감 표시"
|
|
],
|
|
"expected": "비교 분석 표시"
|
|
}
|
|
],
|
|
"expectedAPIs": [
|
|
{
|
|
"method": "GET",
|
|
"endpoint": "/api/v1/purchase/status",
|
|
"description": "구매현황 조회"
|
|
},
|
|
{
|
|
"method": "GET",
|
|
"endpoint": "/api/v1/purchase/statistics",
|
|
"description": "구매 통계 조회"
|
|
},
|
|
{
|
|
"method": "GET",
|
|
"endpoint": "/api/v1/purchase/status/export",
|
|
"description": "구매현황 엑셀 다운로드"
|
|
}
|
|
],
|
|
"requiredVerifications": [
|
|
{
|
|
"id": 1,
|
|
"name": "엑셀 다운로드",
|
|
"steps": [13],
|
|
"criteria": "API 호출 + 파일 다운로드"
|
|
},
|
|
{
|
|
"id": 5,
|
|
"name": "목업 페이지 감지",
|
|
"steps": [2],
|
|
"criteria": "구매 현황, 기간 필터, 통계/차트 존재"
|
|
}
|
|
],
|
|
"rollbackPlan": {
|
|
"note": "조회 전용 페이지로 데이터 변경 없음"
|
|
}
|
|
}
|