refactor: 초정밀 시나리오 강화 (1060→1381 steps, 68/68 PASS)
This commit is contained in:
@@ -4,7 +4,14 @@
|
||||
"name": "입고관리 테스트",
|
||||
"screenshotPolicy": {
|
||||
"onErrorOnly": true,
|
||||
"captureOn": ["error", "fail", "timeout", "404", "500", "blocked"]
|
||||
"captureOn": [
|
||||
"error",
|
||||
"fail",
|
||||
"timeout",
|
||||
"404",
|
||||
"500",
|
||||
"blocked"
|
||||
]
|
||||
},
|
||||
"description": "자재관리 > 입고관리 페이지의 입고 조회 및 상태별 필터링 기능을 테스트하는 E2E 테스트",
|
||||
"baseUrl": "https://dev.codebridge-x.com",
|
||||
@@ -12,7 +19,11 @@
|
||||
"navigation": {
|
||||
"targetUrl": "/material/receiving-management",
|
||||
"urlPattern": "/material/receiving-management|/ko/material/receiving-management",
|
||||
"menuHints": ["입고관리", "입고 관리", "자재관리"]
|
||||
"menuHints": [
|
||||
"입고관리",
|
||||
"입고 관리",
|
||||
"자재관리"
|
||||
]
|
||||
},
|
||||
"menuNavigation": {
|
||||
"level1": "자재관리",
|
||||
@@ -42,16 +53,18 @@
|
||||
"expectedUrl": "/material/receiving-management"
|
||||
},
|
||||
"timeout": 90000,
|
||||
"tags": ["material", "receiving", "read-only"],
|
||||
|
||||
"tags": [
|
||||
"material",
|
||||
"receiving",
|
||||
"read-only"
|
||||
],
|
||||
"auth": {
|
||||
"username": "TestUser5",
|
||||
"password": "password123!"
|
||||
},
|
||||
|
||||
"steps": [
|
||||
{
|
||||
"id": "step-0",
|
||||
"id": 1,
|
||||
"name": "사이드바 메뉴 전체 펼치기",
|
||||
"description": "모두 펼치기 버튼을 클릭하여 전체 메뉴를 펼친 후 메뉴 탐색 준비",
|
||||
"actions": [
|
||||
@@ -59,16 +72,22 @@
|
||||
"type": "evaluate",
|
||||
"script": "document.querySelector('.sidebar-scroll')?.scrollTo({top:0,behavior:'instant'})"
|
||||
},
|
||||
{ "type": "wait", "duration": 300 },
|
||||
{
|
||||
"type": "wait",
|
||||
"duration": 300
|
||||
},
|
||||
{
|
||||
"type": "evaluate",
|
||||
"script": "Array.from(document.querySelectorAll('button')).find(b => b.innerText?.includes('모두 펼치기'))?.click()"
|
||||
},
|
||||
{ "type": "wait", "duration": 2000 }
|
||||
{
|
||||
"type": "wait",
|
||||
"duration": 2000
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "step-1",
|
||||
"id": 2,
|
||||
"name": "자재관리 메뉴 진입",
|
||||
"description": "자재관리 > 입고관리 메뉴로 이동",
|
||||
"actions": [
|
||||
@@ -79,13 +98,24 @@
|
||||
"scrollStep": 200,
|
||||
"maxAttempts": 5
|
||||
},
|
||||
{ "type": "click_if_exists", "target": "자재관리" },
|
||||
{ "type": "wait", "duration": 500 },
|
||||
{ "type": "click_if_exists", "target": "입고관리" }
|
||||
{
|
||||
"type": "click_if_exists",
|
||||
"target": "자재관리"
|
||||
},
|
||||
{
|
||||
"type": "wait",
|
||||
"duration": 500
|
||||
},
|
||||
{
|
||||
"type": "click_if_exists",
|
||||
"target": "입고관리"
|
||||
}
|
||||
],
|
||||
"expect": {
|
||||
"url": "/material/receiving-management",
|
||||
"visible": ["입고 목록"]
|
||||
"visible": [
|
||||
"입고 목록"
|
||||
]
|
||||
},
|
||||
"fallback": {
|
||||
"type": "navigate",
|
||||
@@ -93,21 +123,43 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "step-2",
|
||||
"id": 3,
|
||||
"name": "페이지 구조 확인",
|
||||
"description": "통계 카드와 테이블 구조 확인",
|
||||
"verify": {
|
||||
"visible": ["입고대기", "배송중", "검사대기", "금일입고"],
|
||||
"tableColumns": ["번호", "발주번호", "품목코드", "품목명", "공급업체", "발주수량", "입고수량", "LOT번호", "상태"]
|
||||
"visible": [
|
||||
"입고대기",
|
||||
"배송중",
|
||||
"검사대기",
|
||||
"금일입고"
|
||||
],
|
||||
"tableColumns": [
|
||||
"번호",
|
||||
"발주번호",
|
||||
"품목코드",
|
||||
"품목명",
|
||||
"공급업체",
|
||||
"발주수량",
|
||||
"입고수량",
|
||||
"LOT번호",
|
||||
"상태"
|
||||
]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "step-3",
|
||||
"id": 4,
|
||||
"name": "필수 검증 #3: 상태 탭 필터 - 입고대기",
|
||||
"description": "입고대기 탭 클릭하여 필터링 확인",
|
||||
"actions": [
|
||||
{ "type": "click_if_exists", "target": "입고대기", "role": "tab" },
|
||||
{ "type": "wait", "duration": 300 }
|
||||
{
|
||||
"type": "click_if_exists",
|
||||
"target": "입고대기",
|
||||
"role": "tab"
|
||||
},
|
||||
{
|
||||
"type": "wait",
|
||||
"duration": 300
|
||||
}
|
||||
],
|
||||
"expect": {
|
||||
"tabActive": "입고대기",
|
||||
@@ -115,12 +167,19 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "step-4",
|
||||
"id": 5,
|
||||
"name": "필수 검증 #3: 상태 탭 필터 - 입고완료",
|
||||
"description": "입고완료 탭 클릭하여 필터링 확인",
|
||||
"actions": [
|
||||
{ "type": "click_if_exists", "target": "입고완료", "role": "tab" },
|
||||
{ "type": "wait", "duration": 300 }
|
||||
{
|
||||
"type": "click_if_exists",
|
||||
"target": "입고완료",
|
||||
"role": "tab"
|
||||
},
|
||||
{
|
||||
"type": "wait",
|
||||
"duration": 300
|
||||
}
|
||||
],
|
||||
"expect": {
|
||||
"tabActive": "입고완료",
|
||||
@@ -128,12 +187,19 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "step-5",
|
||||
"id": 6,
|
||||
"name": "전체 탭으로 복귀",
|
||||
"description": "전체 탭 클릭하여 모든 입고 표시",
|
||||
"actions": [
|
||||
{ "type": "click_if_exists", "target": "전체", "role": "tab" },
|
||||
{ "type": "wait", "duration": 300 }
|
||||
{
|
||||
"type": "click_if_exists",
|
||||
"target": "전체",
|
||||
"role": "tab"
|
||||
},
|
||||
{
|
||||
"type": "wait",
|
||||
"duration": 300
|
||||
}
|
||||
],
|
||||
"expect": {
|
||||
"tabActive": "전체",
|
||||
@@ -141,7 +207,7 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "step-6",
|
||||
"id": 7,
|
||||
"name": "빈 상태 확인",
|
||||
"description": "데이터가 없을 때 빈 상태 메시지 확인",
|
||||
"verify": {
|
||||
@@ -149,16 +215,26 @@
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "step-7",
|
||||
"id": 8,
|
||||
"name": "콘솔 에러 확인",
|
||||
"action": "verify_element",
|
||||
"target": "body"
|
||||
},
|
||||
{
|
||||
"id": 9,
|
||||
"name": "통계 카드 값 확인",
|
||||
"description": "입고대기/배송중/검사대기/금일입고 카운트 표시 확인",
|
||||
"verify": {
|
||||
"statsCards": ["입고대기", "배송중", "검사대기", "금일입고"],
|
||||
"statsCards": [
|
||||
"입고대기",
|
||||
"배송중",
|
||||
"검사대기",
|
||||
"금일입고"
|
||||
],
|
||||
"countsDisplayed": true
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
"assertions": [
|
||||
{
|
||||
"type": "url",
|
||||
@@ -171,7 +247,6 @@
|
||||
"message": "입고 목록 제목이 표시되어야 함"
|
||||
}
|
||||
],
|
||||
|
||||
"mandatoryVerifications": {
|
||||
"description": "E2E_TEST_CONFIG.md 기준 필수 검증 항목",
|
||||
"items": [
|
||||
@@ -184,13 +259,31 @@
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
"notes": {
|
||||
"testScope": "입고 목록 조회 및 상태별 필터링 테스트",
|
||||
"pageType": "조회 전용 (발주 기반 입고 처리)",
|
||||
"statsCards": ["입고대기", "배송중", "검사대기", "금일입고"],
|
||||
"statusTabs": ["전체", "입고대기", "입고완료"],
|
||||
"tableColumns": ["번호", "발주번호", "품목코드", "품목명", "공급업체", "발주수량", "입고수량", "LOT번호", "상태"],
|
||||
"statsCards": [
|
||||
"입고대기",
|
||||
"배송중",
|
||||
"검사대기",
|
||||
"금일입고"
|
||||
],
|
||||
"statusTabs": [
|
||||
"전체",
|
||||
"입고대기",
|
||||
"입고완료"
|
||||
],
|
||||
"tableColumns": [
|
||||
"번호",
|
||||
"발주번호",
|
||||
"품목코드",
|
||||
"품목명",
|
||||
"공급업체",
|
||||
"발주수량",
|
||||
"입고수량",
|
||||
"LOT번호",
|
||||
"상태"
|
||||
],
|
||||
"workflow": "발주 → 배송중 → 검사대기 → 입고완료",
|
||||
"prerequisites": "로그인된 사용자, 발주 데이터 존재 시 입고 가능"
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user