{ "id": "shipment-management", "name": "출하관리 테스트", "screenshotPolicy": { "onErrorOnly": true, "captureOn": ["error", "fail", "timeout", "404", "500", "blocked"] }, "description": "출고관리 > 출하관리 페이지의 출하 등록/조회/수정 기능을 테스트하는 E2E 테스트", "baseUrl": "https://dev.codebridge-x.com", "url": "/shipping/shipment", "navigation": { "targetUrl": "/shipping/shipment", "urlPattern": "/shipping/shipment|/ko/shipping/shipment", "menuHints": ["출하관리", "출하 관리", "출고관리"] }, "menuNavigation": { "level1": "출고관리", "level2": "출하관리", "expectedUrl": "/shipping/shipment" }, "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": "/shipping/shipment", "expectedUrl": "/shipping/shipment" }, "timeout": 90000, "tags": ["shipping", "shipment", "crud"], "login": { "url": "https://dev.codebridge-x.com/login", "credentials": { "id": "TestUser5", "password": "password123!" }, "successIndicator": "대시보드" }, "testData": { "shipment": { "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": 300 }, { "type": "evaluate", "script": "Array.from(document.querySelectorAll('button')).find(b => b.innerText?.includes('모두 펼치기'))?.click()" }, { "type": "wait", "duration": 2000 } ] }, { "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": "/shipping/shipment", "visible": ["출하 목록", "출하 등록"] }, "fallback": { "type": "navigate", "url": "/shipping/shipment" } }, { "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": "출하 등록 폼 필드 확인", "verify": { "formFields": ["수주", "출고예정일", "배송방식", "담당자"] } }, { "id": "step-8", "name": "출하 등록 취소", "description": "취소 버튼 또는 ESC로 등록 취소", "actions": [ { "type": "press", "key": "Escape" }, { "type": "wait", "duration": 300 } ] }, { "id": "step-9", "name": "출하 상세 열기", "description": "출하 항목 클릭하여 상세 보기", "actions": [ { "type": "evaluate", "script": "document.querySelector('tbody tr')?.click()" } ], "expect": { "pageOrModal": "출하 상세", "visible": ["출고번호", "상태", "발주처", "현장명"] } }, { "id": "step-10", "name": "출하 상세 정보 확인", "description": "출하 상세 정보 표시 확인", "verify": { "visible": ["출고번호", "출고예정일", "상태", "배송방식", "발주처", "현장명"] } }, { "id": "step-11", "name": "상세 닫기", "description": "ESC 키로 상세 닫기", "actions": [ { "type": "press", "key": "Escape" }, { "type": "wait", "duration": 300 } ] } ], "assertions": [ { "type": "url", "expected": "/shipping/shipment", "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": "필터 적용 후 데이터 무변화" } ] }, "notes": { "testScope": "출하 등록 → 조회 → 상태 필터링 테스트", "statsCards": ["당일 출하", "출고 대기", "배송중", "긴급 출하"], "statusTabs": ["전체", "출고예정", "출하대기", "배송중", "배송완료"], "tableColumns": ["번호", "출고번호", "로트번호", "출고예정일", "상태", "출하가능", "배송", "발주처", "현장명", "담당", "납기"], "workflow": "수주확정 → 출고예정 → 출하대기 → 배송중 → 배송완료", "prerequisites": "로그인된 사용자, 수주확정된 데이터 존재 시 출하 등록 가능" } }