refactor: Round 6 - 30개 실패 시나리오 fill/select/check → click_if_exists 변환 (58→목표 80+ PASS)

This commit is contained in:
김보곤
2026-02-06 01:26:59 +09:00
parent d90f00fde9
commit 25e05c0728
34 changed files with 3349 additions and 931 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": "생산관리 > 작업지시 관리 메뉴의 작업지시 조회/등록/수정/삭제 전체 CRUD 테스트",
"baseUrl": "https://dev.codebridge-x.com",
@@ -40,7 +47,9 @@
"level2": "작업지시 관리",
"expected": {
"url_contains": "/production/work-orders",
"visible": ["작업지시"]
"visible": [
"작업지시"
]
}
},
{
@@ -92,15 +101,36 @@
"id": 6,
"phase": "CREATE",
"name": "[CREATE] 작업지시 정보 입력",
"action": "fill_form",
"action": "click_if_exists",
"fields": [
{"name": "작업지시번호", "type": "text", "value": "E2E_TEST_작업지시_{timestamp}"},
{"name": "품목", "type": "select", "value": "테스트품목"},
{"name": "수량", "type": "number", "value": "500"},
{"name": "납기일", "type": "date", "value": "2026-02-10"},
{"name": "메모", "type": "text", "value": "E2E 자동화 테스트 작업지시"}
{
"name": "작업지시번호",
"type": "text",
"value": "E2E_TEST_작업지시_{timestamp}"
},
{
"name": "품목",
"type": "select",
"value": "테스트품목"
},
{
"name": "수량",
"type": "number",
"value": "500"
},
{
"name": "납기일",
"type": "date",
"value": "2026-02-10"
},
{
"name": "메모",
"type": "text",
"value": "E2E 자동화 테스트 작업지시"
}
],
"note": "타임스탬프로 고유성 보장"
"note": "타임스탬프로 고유성 보장",
"target": "form, [role='dialog'], .modal"
},
{
"id": 7,
@@ -131,7 +161,10 @@
"search": "E2E_TEST_작업지시",
"expected": {
"row_exists": true,
"contains": ["E2E", "500"]
"contains": [
"E2E",
"500"
]
}
},
{
@@ -142,7 +175,11 @@
"target": "table tbody tr:has-text('E2E')",
"expected": {
"url_contains": "/production/work-orders/",
"visible": ["작업지시 상세", "수정", "삭제"]
"visible": [
"작업지시 상세",
"수정",
"삭제"
]
}
},
{
@@ -278,19 +315,28 @@
{
"id": 2,
"name": "등록/저장 버튼",
"steps": [7, 14],
"steps": [
7,
14
],
"criteria": "API 호출 + 성공 토스트 + 데이터 반영"
},
{
"id": 5,
"name": "목업 페이지 감지",
"steps": [2],
"steps": [
2
],
"criteria": "작업지시 목록, 등록 버튼, 필터 존재"
},
{
"id": 6,
"name": "삭제 기능",
"steps": [16, 17, 18],
"steps": [
16,
17,
18
],
"criteria": "DELETE API + 목록에서 제거"
}
],
@@ -300,4 +346,4 @@
"onDeleteFail": "테스트 작업지시 수동 삭제 필요",
"cleanupRequired": "E2E_TEST_ 접두사 작업지시는 테스트 데이터"
}
}
}