364 lines
11 KiB
JSON
364 lines
11 KiB
JSON
{
|
|
"id": "order-management",
|
|
"name": "수주관리 테스트",
|
|
"screenshotPolicy": {
|
|
"onErrorOnly": true,
|
|
"captureOn": ["error", "fail", "timeout", "404", "500", "blocked"]
|
|
},
|
|
"description": "판매관리 > 수주관리 페이지의 수주 등록/조회/수정/삭제 기능을 테스트하는 E2E 테스트",
|
|
"baseUrl": "https://dev.codebridge-x.com",
|
|
"url": "/sales/order",
|
|
"menuNavigation": {
|
|
"level1": "판매관리",
|
|
"level2": "수주관리",
|
|
"expectedUrl": "/sales/order"
|
|
},
|
|
"menuNavigationEnhanced": {
|
|
"strategy": "scroll-and-search",
|
|
"sidebar": {
|
|
"scrollContainer": ".sidebar-scroll",
|
|
"scrollStep": 200,
|
|
"maxScrollAttempts": 5,
|
|
"waitAfterScroll": 300
|
|
},
|
|
"level1": {
|
|
"text": "판매관리",
|
|
"expandable": true,
|
|
"waitAfterClick": 500
|
|
},
|
|
"level2": {
|
|
"text": "수주관리",
|
|
"waitAfterClick": 300
|
|
},
|
|
"fallbackUrl": "/sales/order",
|
|
"expectedUrl": "/sales/order"
|
|
},
|
|
"timeout": 90000,
|
|
"tags": ["sales", "order", "crud"],
|
|
|
|
"login": {
|
|
"url": "https://dev.codebridge-x.com/login",
|
|
"credentials": {
|
|
"id": "TestUser5",
|
|
"password": "password123!"
|
|
},
|
|
"successIndicator": "대시보드"
|
|
},
|
|
|
|
"testData": {
|
|
"order": {
|
|
"customer": "(주)삼성전자",
|
|
"siteName": "E2E 테스트 현장",
|
|
"deliveryDate": "2026-02-28",
|
|
"deliveryMethod": "택배",
|
|
"note": "E2E 테스트 수주입니다"
|
|
}
|
|
},
|
|
|
|
"steps": [
|
|
{
|
|
"id": "step-0",
|
|
"name": "사이드바 초기화",
|
|
"description": "사이드바를 최상단으로 스크롤하여 메뉴 탐색 준비",
|
|
"actions": [
|
|
{
|
|
"type": "evaluate",
|
|
"script": "document.querySelector('.sidebar-scroll')?.scrollTo({top:0,behavior:'instant'})"
|
|
},
|
|
{ "type": "wait", "duration": 500 }
|
|
]
|
|
},
|
|
{
|
|
"id": "step-1",
|
|
"name": "판매관리 메뉴 진입",
|
|
"description": "판매관리 > 수주관리 메뉴로 이동",
|
|
"actions": [
|
|
{
|
|
"type": "scrollAndFind",
|
|
"container": ".sidebar-scroll",
|
|
"target": "판매관리",
|
|
"scrollStep": 200,
|
|
"maxAttempts": 5
|
|
},
|
|
{ "type": "click", "target": "판매관리" },
|
|
{ "type": "wait", "duration": 500 },
|
|
{ "type": "click", "target": "수주관리" }
|
|
],
|
|
"expect": {
|
|
"url": "/sales/order",
|
|
"visible": ["수주 목록", "수주 등록"]
|
|
},
|
|
"fallback": {
|
|
"type": "navigate",
|
|
"url": "/sales/order"
|
|
}
|
|
},
|
|
{
|
|
"id": "step-2",
|
|
"name": "페이지 구조 확인",
|
|
"description": "통계 카드와 테이블 구조 확인",
|
|
"verify": {
|
|
"visible": ["이번 달 수주", "분할 대기", "생산지시 대기", "출하 대기"],
|
|
"tableColumns": ["번호", "로트번호", "견적번호", "발주처", "현장명", "상태", "출고예정일", "배송방식"]
|
|
}
|
|
},
|
|
{
|
|
"id": "step-3",
|
|
"name": "필수 검증 #3: 상태 탭 필터 테스트",
|
|
"description": "상태별 탭 동작 확인",
|
|
"actions": [
|
|
{ "type": "click", "target": "수주등록", "role": "tab" },
|
|
{ "type": "wait", "duration": 300 }
|
|
],
|
|
"expect": {
|
|
"tabActive": "수주등록",
|
|
"dataFiltered": true
|
|
}
|
|
},
|
|
{
|
|
"id": "step-4",
|
|
"name": "필수 검증 #3: 수주확정 탭 필터",
|
|
"description": "수주확정 탭 클릭하여 필터링 확인",
|
|
"actions": [
|
|
{ "type": "click", "target": "수주확정", "role": "tab" },
|
|
{ "type": "wait", "duration": 300 }
|
|
],
|
|
"expect": {
|
|
"tabActive": "수주확정",
|
|
"dataFiltered": true
|
|
}
|
|
},
|
|
{
|
|
"id": "step-5",
|
|
"name": "전체 탭으로 복귀",
|
|
"description": "전체 탭 클릭하여 모든 수주 표시",
|
|
"actions": [
|
|
{ "type": "click", "target": "전체", "role": "tab" },
|
|
{ "type": "wait", "duration": 300 }
|
|
],
|
|
"expect": {
|
|
"tabActive": "전체",
|
|
"allDataShown": true
|
|
}
|
|
},
|
|
{
|
|
"id": "step-6",
|
|
"name": "필수 검증 #2: 수주 등록 모달/페이지 열기",
|
|
"description": "수주 등록 버튼 클릭하여 등록 화면 열기",
|
|
"actions": [
|
|
{ "type": "click", "target": "수주 등록" }
|
|
],
|
|
"expect": {
|
|
"pageOrModal": "수주 등록",
|
|
"visible": ["발주처", "현장명", "출고예정일", "배송방식"]
|
|
}
|
|
},
|
|
{
|
|
"id": "step-7",
|
|
"name": "수주 등록 폼 입력",
|
|
"description": "수주 정보 입력",
|
|
"actions": [
|
|
{ "type": "click", "target": "발주처", "role": "combobox" },
|
|
{ "type": "click", "target": "{testData.order.customer}", "role": "option" },
|
|
{ "type": "fill", "target": "현장명", "value": "{testData.order.siteName}" },
|
|
{ "type": "fill", "target": "출고예정일", "value": "{testData.order.deliveryDate}" },
|
|
{ "type": "click", "target": "배송방식", "role": "combobox" },
|
|
{ "type": "click", "target": "{testData.order.deliveryMethod}", "role": "option" }
|
|
]
|
|
},
|
|
{
|
|
"id": "step-8",
|
|
"name": "필수 검증 #2: 수주 등록 저장",
|
|
"description": "등록/저장 버튼 클릭하여 수주 저장",
|
|
"actions": [
|
|
{ "type": "click", "target": "저장" }
|
|
],
|
|
"expect": {
|
|
"urlMaintained": true,
|
|
"noErrorPage": true,
|
|
"toast": ["등록", "저장", "완료", "성공"]
|
|
},
|
|
"verify": {
|
|
"apiCall": "POST /api/sales/order"
|
|
}
|
|
},
|
|
{
|
|
"id": "step-9",
|
|
"name": "필수 검증 #4: 등록 데이터 반영 확인",
|
|
"critical": true,
|
|
"note": "토스트 성공 메시지만으로 PASS 판정 불가. 실제 데이터 등록 확인 필수!",
|
|
"description": "테이블에서 등록된 수주 확인",
|
|
"actions": [
|
|
{ "type": "navigate", "url": "/sales/order" },
|
|
{ "type": "wait", "duration": 500 }
|
|
],
|
|
"verify": {
|
|
"tableContains": ["{testData.order.siteName}"],
|
|
"recordCountIncreased": true
|
|
}
|
|
},
|
|
{
|
|
"id": "step-10",
|
|
"name": "수주 상세 열기",
|
|
"description": "등록된 수주 항목 클릭하여 상세 보기",
|
|
"actions": [
|
|
{
|
|
"type": "findRow",
|
|
"contains": "{testData.order.siteName}",
|
|
"then": {
|
|
"type": "click",
|
|
"target": "row"
|
|
}
|
|
}
|
|
],
|
|
"expect": {
|
|
"pageOrModal": "수주 상세",
|
|
"visible": ["수정", "삭제", "수주확정", "생산지시"]
|
|
}
|
|
},
|
|
{
|
|
"id": "step-11",
|
|
"name": "수주 정보 수정",
|
|
"description": "수주 정보 수정 테스트",
|
|
"actions": [
|
|
{ "type": "click", "target": "수정" },
|
|
{ "type": "wait", "duration": 300 },
|
|
{ "type": "click", "target": "배송방식", "role": "combobox" },
|
|
{ "type": "click", "target": "상차", "role": "option" },
|
|
{ "type": "click", "target": "저장" }
|
|
],
|
|
"expect": {
|
|
"toast": ["수정", "저장", "완료", "성공"],
|
|
"noErrorPage": true
|
|
}
|
|
},
|
|
{
|
|
"id": "step-12",
|
|
"name": "필수 검증 #4: 수정 데이터 반영 확인",
|
|
"critical": true,
|
|
"note": "토스트 성공 메시지만으로 PASS 판정 불가. 실제 데이터 변경 확인 필수!",
|
|
"description": "테이블에서 수정된 수주 확인",
|
|
"verify": {
|
|
"tableContains": "상차"
|
|
}
|
|
},
|
|
{
|
|
"id": "step-13",
|
|
"name": "수주 삭제 준비",
|
|
"description": "삭제할 수주 선택",
|
|
"actions": [
|
|
{
|
|
"type": "findRow",
|
|
"contains": "{testData.order.siteName}",
|
|
"then": {
|
|
"type": "click",
|
|
"target": "row"
|
|
}
|
|
}
|
|
],
|
|
"expect": {
|
|
"pageOrModal": "수주 상세",
|
|
"visible": ["삭제"]
|
|
}
|
|
},
|
|
{
|
|
"id": "step-14",
|
|
"name": "수주 삭제",
|
|
"description": "삭제 버튼 클릭하여 수주 삭제",
|
|
"actions": [
|
|
{ "type": "click", "target": "삭제" }
|
|
],
|
|
"expect": {
|
|
"confirmDialog": true,
|
|
"dialogText": ["삭제", "하시겠습니까"]
|
|
}
|
|
},
|
|
{
|
|
"id": "step-15",
|
|
"name": "삭제 확인",
|
|
"description": "삭제 확인 다이얼로그에서 확인 클릭",
|
|
"actions": [
|
|
{ "type": "click", "target": "확인" }
|
|
],
|
|
"expect": {
|
|
"toast": ["삭제", "완료", "성공"],
|
|
"noErrorPage": true
|
|
}
|
|
},
|
|
{
|
|
"id": "step-16",
|
|
"name": "필수 검증 #4: 삭제 데이터 반영 확인",
|
|
"critical": true,
|
|
"note": "토스트 성공 메시지만으로 PASS 판정 불가. 실제 데이터 삭제 확인 필수!",
|
|
"description": "테이블에서 삭제된 수주가 없는지 확인",
|
|
"verify": {
|
|
"tableNotContains": "{testData.order.siteName}",
|
|
"recordCountDecreased": true
|
|
}
|
|
}
|
|
],
|
|
|
|
"assertions": [
|
|
{
|
|
"type": "url",
|
|
"expected": "/sales/order",
|
|
"message": "수주관리 페이지에 머물러야 함"
|
|
},
|
|
{
|
|
"type": "elementExists",
|
|
"selector": "button:has-text('수주 등록')",
|
|
"message": "수주 등록 버튼이 표시되어야 함"
|
|
}
|
|
],
|
|
|
|
"mandatoryVerifications": {
|
|
"description": "E2E_TEST_CONFIG.md 기준 필수 검증 항목",
|
|
"items": [
|
|
{
|
|
"id": 2,
|
|
"name": "등록/저장 버튼",
|
|
"trigger": "수주 등록 버튼",
|
|
"verification": "URL 유지 + 에러 페이지 없음 + 성공 토스트 + 데이터 반영",
|
|
"failCondition": "404/500 에러 페이지 이동"
|
|
},
|
|
{
|
|
"id": 3,
|
|
"name": "검색/필터",
|
|
"trigger": "상태 탭 필터",
|
|
"verification": "데이터 변화 확인",
|
|
"failCondition": "필터 적용 후 데이터 무변화"
|
|
},
|
|
{
|
|
"id": 4,
|
|
"name": "데이터 반영 확인",
|
|
"trigger": "CRUD 완료 후",
|
|
"verification": "실제 데이터 등록/수정/삭제 확인",
|
|
"failCondition": "토스트만 확인하고 데이터 미확인"
|
|
}
|
|
]
|
|
},
|
|
|
|
"cleanup": {
|
|
"enabled": true,
|
|
"description": "테스트 중 생성된 수주 데이터 삭제",
|
|
"actions": [
|
|
{
|
|
"type": "deleteTestData",
|
|
"condition": "contains:E2E 테스트"
|
|
}
|
|
]
|
|
},
|
|
|
|
"notes": {
|
|
"testScope": "수주 등록 → 조회 → 수정 → 삭제 전체 CRUD 테스트",
|
|
"pageFeatures": {
|
|
"statsCards": ["이번 달 수주", "분할 대기", "생산지시 대기", "출하 대기"],
|
|
"statusTabs": ["전체", "수주등록", "수주확정", "생산지시완료", "미수"],
|
|
"viewModes": ["카드 뷰", "테이블 뷰"]
|
|
},
|
|
"tableColumns": ["번호", "로트번호", "견적번호", "발주처", "현장명", "상태", "출고예정일", "배송방식"],
|
|
"workflow": "수주등록 → 수주확정 → 생산지시 → 생산완료 → 출하완료",
|
|
"prerequisites": "로그인된 사용자에게 수주 관리 권한 필요"
|
|
}
|
|
}
|