refactor: 초정밀 시나리오 강화 (1060→1381 steps, 68/68 PASS)

This commit is contained in:
김보곤
2026-02-09 15:05:03 +09:00
parent 15ad1d9758
commit f5dffe2ee7
135 changed files with 23040 additions and 1652 deletions

View File

@@ -3,7 +3,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",
@@ -11,7 +18,11 @@
"navigation": {
"targetUrl": "/material/stock-status",
"urlPattern": "/material/stock-status|/ko/material/stock-status",
"menuHints": ["재고현황", "재고 현황", "자재관리"]
"menuHints": [
"재고현황",
"재고 현황",
"자재관리"
]
},
"menuNavigation": {
"level1": "자재관리",
@@ -41,16 +52,18 @@
"expectedUrl": "/material/stock-status"
},
"timeout": 90000,
"tags": ["material", "inventory", "read-only"],
"tags": [
"material",
"inventory",
"read-only"
],
"auth": {
"username": "TestUser5",
"password": "password123!"
},
"steps": [
{
"id": "step-0",
"id": 1,
"name": "사이드바 메뉴 전체 펼치기",
"description": "모두 펼치기 버튼을 클릭하여 전체 메뉴를 펼친 후 메뉴 탐색 준비",
"actions": [
@@ -58,16 +71,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": [
@@ -78,13 +97,25 @@
"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/stock-status",
"visible": ["재고 목록", "엑셀 다운로드"]
"visible": [
"재고 목록",
"엑셀 다운로드"
]
},
"fallback": {
"type": "navigate",
@@ -92,21 +123,44 @@
}
},
{
"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": 500 }
{
"type": "click_if_exists",
"target": "원자재",
"role": "tab"
},
{
"type": "wait",
"duration": 500
}
],
"expect": {
"tabActive": "원자재",
@@ -114,12 +168,19 @@
}
},
{
"id": "step-4",
"id": 5,
"name": "필수 검증 #3: 품목유형 탭 필터 - 부자재",
"description": "부자재 탭 클릭하여 필터링 확인",
"actions": [
{ "type": "click_if_exists", "target": "부자재", "role": "tab" },
{ "type": "wait", "duration": 500 }
{
"type": "click_if_exists",
"target": "부자재",
"role": "tab"
},
{
"type": "wait",
"duration": 500
}
],
"expect": {
"tabActive": "부자재",
@@ -127,12 +188,19 @@
}
},
{
"id": "step-5",
"id": 6,
"name": "필수 검증 #3: 품목유형 탭 필터 - 소모품",
"description": "소모품 탭 클릭하여 필터링 확인",
"actions": [
{ "type": "click_if_exists", "target": "소모품", "role": "tab" },
{ "type": "wait", "duration": 500 }
{
"type": "click_if_exists",
"target": "소모품",
"role": "tab"
},
{
"type": "wait",
"duration": 500
}
],
"expect": {
"tabActive": "소모품",
@@ -140,12 +208,19 @@
}
},
{
"id": "step-6",
"id": 7,
"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": "전체",
@@ -153,12 +228,18 @@
}
},
{
"id": "step-7",
"id": 8,
"name": "필수 검증 #1: 엑셀 다운로드",
"description": "엑셀 다운로드 버튼 동작 확인",
"actions": [
{ "type": "click_if_exists", "target": "엑셀 다운로드" },
{ "type": "wait", "duration": 1000 }
{
"type": "click_if_exists",
"target": "엑셀 다운로드"
},
{
"type": "wait",
"duration": 1000
}
],
"expect": {
"downloadTriggered": true,
@@ -169,7 +250,7 @@
}
},
{
"id": "step-8",
"id": 9,
"name": "재고 상세 열기",
"description": "재고 항목 클릭하여 상세 보기",
"actions": [
@@ -180,32 +261,54 @@
],
"expect": {
"pageOrModal": "재고 상세",
"visible": ["품목코드", "품목명", "재고량", "LOT"]
"visible": [
"품목코드",
"품목명",
"재고량",
"LOT"
]
}
},
{
"id": "step-9",
"id": 10,
"name": "상세 닫기",
"description": "ESC 키로 상세 닫기 또는 뒤로가기",
"actions": [
{ "type": "press", "key": "Escape" },
{ "type": "wait", "duration": 300 }
{
"type": "press",
"key": "Escape"
},
{
"type": "wait",
"duration": 300
}
]
},
{
"id": "step-10",
"id": 11,
"name": "콘솔 에러 확인",
"action": "verify_element",
"target": "body"
},
{
"id": 12,
"name": "페이지네이션 확인",
"description": "페이지네이션 동작 확인",
"actions": [
{ "type": "click_if_exists", "target": "다음" },
{ "type": "wait", "duration": 500 }
{
"type": "click_if_exists",
"target": "다음"
},
{
"type": "wait",
"duration": 500
}
],
"expect": {
"pageChanged": true
}
}
],
"assertions": [
{
"type": "url",
@@ -218,7 +321,6 @@
"message": "엑셀 다운로드 버튼이 표시되어야 함"
}
],
"mandatoryVerifications": {
"description": "E2E_TEST_CONFIG.md 기준 필수 검증 항목",
"items": [
@@ -238,13 +340,33 @@
}
]
},
"notes": {
"testScope": "재고현황 조회 및 필터링, 엑셀 다운로드 테스트",
"pageType": "조회 전용 (입고관리에서 재고 증가, 출하관리에서 재고 감소)",
"statsCards": ["전체 품목", "정상 재고", "재고 부족", "재고 없음"],
"typeTabs": ["전체", "원자재", "부자재", "소모품"],
"tableColumns": ["번호", "품목코드", "품목명", "품목유형", "단위", "재고", "안전재고", "LOT", "상태", "위치"],
"statsCards": [
"전체 품목",
"정상 재고",
"재고 부족",
"재고 없음"
],
"typeTabs": [
"전체",
"원자재",
"부자재",
"소모품"
],
"tableColumns": [
"번호",
"품목코드",
"품목명",
"품목유형",
"단위",
"재고량",
"안전재고",
"LOT",
"상태",
"위치"
],
"prerequisites": "로그인된 사용자"
}
}