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

@@ -67,50 +67,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/receiving-management",
"visible": [
@@ -126,6 +92,14 @@
"id": 3,
"name": "페이지 구조 확인",
"description": "통계 카드와 테이블 구조 확인",
"action": "verify_detail",
"checks": [
"입고대기",
"배송중",
"검사대기",
"금일입고"
],
"expected": "통계 카드(입고대기/배송중/검사대기/금일입고) 및 테이블 컬럼(번호/발주번호/품목코드/품목명/공급업체/발주수량/입고수량/LOT번호/상태) 확인",
"verify": {
"visible": [
"입고대기",
@@ -150,17 +124,9 @@
"id": 4,
"name": "필수 검증 #3: 상태 탭 필터 - 입고대기",
"description": "입고대기 탭 클릭하여 필터링 확인",
"actions": [
{
"type": "click_if_exists",
"target": "입고대기",
"role": "tab"
},
{
"type": "wait",
"duration": 300
}
],
"action": "click_if_exists",
"target": "입고대기",
"role": "tab",
"expect": {
"tabActive": "입고대기",
"dataFiltered": true
@@ -170,17 +136,9 @@
"id": 5,
"name": "필수 검증 #3: 상태 탭 필터 - 입고완료",
"description": "입고완료 탭 클릭하여 필터링 확인",
"actions": [
{
"type": "click_if_exists",
"target": "입고완료",
"role": "tab"
},
{
"type": "wait",
"duration": 300
}
],
"action": "click_if_exists",
"target": "입고완료",
"role": "tab",
"expect": {
"tabActive": "입고완료",
"dataFiltered": true
@@ -190,17 +148,9 @@
"id": 6,
"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
@@ -210,6 +160,9 @@
"id": 7,
"name": "빈 상태 확인",
"description": "데이터가 없을 때 빈 상태 메시지 확인",
"action": "verify_element",
"target": "body",
"expected": "검색 결과가 없습니다",
"verify": {
"emptyStateVisible": "검색 결과가 없습니다"
}
@@ -224,6 +177,13 @@
"id": 9,
"name": "통계 카드 값 확인",
"description": "입고대기/배송중/검사대기/금일입고 카운트 표시 확인",
"action": "verify_elements",
"checks": [
"입고대기",
"배송중",
"검사대기",
"금일입고"
],
"verify": {
"statsCards": [
"입고대기",
@@ -287,4 +247,4 @@
"workflow": "발주 → 배송중 → 검사대기 → 입고완료",
"prerequisites": "로그인된 사용자, 발주 데이터 존재 시 입고 가능"
}
}
}