refactor: 비표준 포맷 13개 시나리오 Format A 통일

- actions 배열(Format B) → 단일 action(Format A) 변환
- fill_form fields: target 키 → name 키 수정
- verify_detail checks: 객체 배열 → 문자열 배열 수정
- 전체 13개 시나리오 E2E 테스트 PASS 확인
This commit is contained in:
김보곤
2026-02-28 17:21:01 +09:00
parent 21f2a72dee
commit 23827c257d
20 changed files with 634 additions and 2434 deletions

View File

@@ -66,50 +66,16 @@
"id": 1,
"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
}
]
"action": "evaluate",
"script": "(async()=>{document.querySelector('.sidebar-scroll')?.scrollTo({top:0,behavior:'instant'});await new Promise(r=>setTimeout(r,300));Array.from(document.querySelectorAll('button')).find(b=>b.innerText?.includes('모두 펼치기'))?.click();await new Promise(r=>setTimeout(r,2000));})()"
},
{
"id": 2,
"name": "자재관리 메뉴 진입",
"description": "자재관리 > 재고현황 메뉴로 이동",
"actions": [
{
"type": "scrollAndFind",
"container": ".sidebar-scroll",
"target": "자재관리",
"scrollStep": 200,
"maxAttempts": 5
},
{
"type": "click_if_exists",
"target": "자재관리"
},
{
"type": "wait",
"duration": 500
},
{
"type": "click_if_exists",
"target": "재고현황"
}
],
"action": "menu_navigate",
"level1": "자재관리",
"level2": "재고현황",
"expect": {
"url": "/material/stock-status",
"visible": [
@@ -126,6 +92,14 @@
"id": 3,
"name": "페이지 구조 확인",
"description": "통계 카드와 테이블 구조 확인",
"action": "verify_detail",
"checks": [
"전체 품목",
"정상 재고",
"재고 부족",
"재고 없음"
],
"expected": "통계 카드(전체 품목/정상 재고/재고 부족/재고 없음) 및 테이블 컬럼(번호/품목코드/품목명/품목유형/단위/재고량/안전재고/LOT/상태/위치) 확인",
"verify": {
"visible": [
"전체 품목",
@@ -151,17 +125,9 @@
"id": 4,
"name": "필수 검증 #3: 품목유형 탭 필터 - 원자재",
"description": "원자재 탭 클릭하여 필터링 확인",
"actions": [
{
"type": "click_if_exists",
"target": "원자재",
"role": "tab"
},
{
"type": "wait",
"duration": 500
}
],
"action": "click_if_exists",
"target": "원자재",
"role": "tab",
"expect": {
"tabActive": "원자재",
"dataFiltered": true
@@ -171,17 +137,9 @@
"id": 5,
"name": "필수 검증 #3: 품목유형 탭 필터 - 부자재",
"description": "부자재 탭 클릭하여 필터링 확인",
"actions": [
{
"type": "click_if_exists",
"target": "부자재",
"role": "tab"
},
{
"type": "wait",
"duration": 500
}
],
"action": "click_if_exists",
"target": "부자재",
"role": "tab",
"expect": {
"tabActive": "부자재",
"dataFiltered": true
@@ -191,17 +149,9 @@
"id": 6,
"name": "필수 검증 #3: 품목유형 탭 필터 - 소모품",
"description": "소모품 탭 클릭하여 필터링 확인",
"actions": [
{
"type": "click_if_exists",
"target": "소모품",
"role": "tab"
},
{
"type": "wait",
"duration": 500
}
],
"action": "click_if_exists",
"target": "소모품",
"role": "tab",
"expect": {
"tabActive": "소모품",
"dataFiltered": true
@@ -211,17 +161,9 @@
"id": 7,
"name": "전체 탭으로 복귀",
"description": "전체 탭 클릭하여 모든 재고 표시",
"actions": [
{
"type": "click_if_exists",
"target": "전체",
"role": "tab"
},
{
"type": "wait",
"duration": 300
}
],
"action": "click_if_exists",
"target": "전체",
"role": "tab",
"expect": {
"tabActive": "전체",
"allDataShown": true
@@ -231,16 +173,8 @@
"id": 8,
"name": "필수 검증 #1: 엑셀 다운로드",
"description": "엑셀 다운로드 버튼 동작 확인",
"actions": [
{
"type": "click_if_exists",
"target": "엑셀 다운로드"
},
{
"type": "wait",
"duration": 1000
}
],
"action": "click_if_exists",
"target": "엑셀 다운로드",
"expect": {
"downloadTriggered": true,
"noErrorPage": true
@@ -253,12 +187,8 @@
"id": 9,
"name": "재고 상세 열기",
"description": "재고 항목 클릭하여 상세 보기",
"actions": [
{
"type": "evaluate",
"script": "document.querySelector('tbody tr')?.click()"
}
],
"action": "evaluate",
"script": "document.querySelector('tbody tr')?.click()",
"expect": {
"pageOrModal": "재고 상세",
"visible": [
@@ -273,16 +203,8 @@
"id": 10,
"name": "상세 닫기",
"description": "ESC 키로 상세 닫기 또는 뒤로가기",
"actions": [
{
"type": "press",
"key": "Escape"
},
{
"type": "wait",
"duration": 300
}
]
"action": "press_key",
"key": "Escape"
},
{
"id": 11,
@@ -294,16 +216,8 @@
"id": 12,
"name": "페이지네이션 확인",
"description": "페이지네이션 동작 확인",
"actions": [
{
"type": "click_if_exists",
"target": "다음"
},
{
"type": "wait",
"duration": 500
}
],
"action": "click_if_exists",
"target": "다음",
"expect": {
"pageChanged": true
}
@@ -369,4 +283,4 @@
],
"prerequisites": "로그인된 사용자"
}
}
}