Files
sam-scenarios/item-standard-management.json
light cff20a6c0e refactor: navigation 속성 추가 (targetUrl, urlPattern, menuHints)
- 54개 시나리오 파일에 URL 기반 메뉴 탐색을 위한 navigation 속성 추가
- targetUrl: 정확한 페이지 URL 경로
- urlPattern: ko 버전 포함 URL 패턴 (regex)
- menuHints: 메뉴명 힌트 배열 (fallback용)

메뉴 탐색 실패율 41.8% → URL 기반 방식으로 개선 예정

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 21:47:29 +09:00

455 lines
15 KiB
JSON

{
"id": "item-standard-management",
"name": "품목기준관리 테스트",
"screenshotPolicy": {
"onErrorOnly": true,
"captureOn": ["error", "fail", "timeout", "404", "500", "blocked"]
},
"description": "기준정보 관리 > 품목기준관리 페이지의 섹션/항목 조회/추가/수정/삭제 기능을 테스트하는 E2E 테스트",
"baseUrl": "https://dev.codebridge-x.com",
"url": "/master-data/item-standard",
"navigation": {
"targetUrl": "/master-data/item-standard",
"urlPattern": "/master-data/item-standard|/ko/master-data/item-standard",
"menuHints": ["품목기준관리", "품목 기준 관리", "기준정보 관리"]
},
"menuNavigation": {
"level1": "기준정보 관리",
"level2": "품목기준관리",
"expectedUrl": "/master-data/item-standard"
},
"menuNavigationEnhanced": {
"strategy": "scroll-and-search",
"sidebar": {
"scrollContainer": ".sidebar-scroll",
"scrollStep": 200,
"maxScrollAttempts": 5,
"waitAfterScroll": 300
},
"level1": {
"text": "기준정보 관리",
"expandable": true,
"waitAfterClick": 500
},
"level2": {
"text": "품목기준관리",
"waitAfterClick": 300
},
"fallbackUrl": "/master-data/item-standard",
"expectedUrl": "/master-data/item-standard"
},
"timeout": 90000,
"tags": ["master-data", "item-standard", "builder", "crud"],
"login": {
"url": "https://dev.codebridge-x.com/login",
"credentials": {
"id": "TestUser5",
"password": "password123!"
},
"successIndicator": "대시보드"
},
"testData": {
"newSection": {
"name": "E2E 테스트 섹션"
},
"newItem": {
"name": "E2E 테스트 항목",
"type": "텍스트",
"required": true
}
},
"steps": [
{
"id": "step-0",
"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 }
],
"expect": {
"sidebarReady": true
}
},
{
"id": "step-1",
"name": "기준정보 관리 메뉴 진입",
"description": "기준정보 관리 > 품목기준관리 메뉴로 이동",
"actions": [
{
"type": "scrollAndFind",
"container": ".sidebar-scroll",
"target": "기준정보 관리",
"scrollStep": 200,
"maxAttempts": 5
},
{ "type": "click", "target": "기준정보 관리" },
{ "type": "wait", "duration": 500 },
{ "type": "click", "target": "품목기준관리" }
],
"expect": {
"url": "/master-data/item-standard",
"visible": ["품목기준관리", "계층구조", "섹션", "항목"]
},
"fallback": {
"type": "navigate",
"url": "/master-data/item-standard"
}
},
{
"id": "step-2",
"name": "페이지 구조 확인",
"description": "탭과 섹션 목록 구조 확인",
"verify": {
"visible": ["계층구조", "섹션", "항목", "속성", "페이지"],
"sectionList": ["소모품 등록", "원자재 등록", "부자재 등록", "부품 등록", "제품 등록"]
}
},
{
"id": "step-3",
"name": "섹션 선택",
"description": "소모품 등록 섹션 클릭하여 항목 확인",
"actions": [
{ "type": "click", "target": "소모품 등록" }
],
"expect": {
"visible": ["소모품 등록", "섹션 추가", "항목 추가"],
"itemsLoaded": true
}
},
{
"id": "step-4",
"name": "항목 목록 확인",
"description": "기본정보 항목들이 표시되는지 확인",
"verify": {
"visible": ["기본정보", "품목명", "규격(사양)", "단위", "비고"],
"itemDetails": ["텍스트", "드롭다운", "필수", "순서", "필드ID"]
}
},
{
"id": "step-5",
"name": "필수 검증 #2: 섹션 추가 기능",
"description": "섹션 추가 버튼 클릭하여 모달 열기",
"actions": [
{ "type": "openModal", "target": "섹션 추가", "description": "섹션 추가 모달 열기" }
],
"modalConfig": {
"containerSelector": "[role='dialog'], .modal",
"animationDelay": 300,
"waitForSelector": "[role='dialog']"
},
"expect": {
"modal": "섹션 추가",
"visible": ["섹션명", "저장", "취소"]
}
},
{
"id": "step-6",
"name": "새 섹션 정보 입력",
"description": "모달 내 섹션 이름 입력 및 저장",
"actions": [
{ "type": "fillInModal", "target": "섹션명", "value": "{testData.newSection.name}", "options": { "waitAfter": 100 } },
{ "type": "clickInModal", "target": "저장", "options": { "waitAfter": 500 } }
],
"expect": {
"toast": ["추가", "등록", "성공"],
"modalClosed": true
},
"verify": {
"apiCall": "POST /api/master-data/item-standard/section"
}
},
{
"id": "step-7",
"name": "필수 검증 #4: 섹션 추가 반영 확인",
"critical": true,
"note": "토스트 성공 메시지만으로 PASS 판정 불가. 실제 데이터 추가 확인 필수!",
"description": "추가된 섹션이 목록에 표시되는지 확인",
"verify": {
"sectionListContains": "{testData.newSection.name}"
}
},
{
"id": "step-8",
"name": "필수 검증 #2: 항목 추가 기능",
"description": "항목 추가 버튼 클릭하여 모달 열기",
"actions": [
{ "type": "click", "target": "{testData.newSection.name}" },
{ "type": "wait", "duration": 300 },
{ "type": "openModal", "target": "항목 추가", "description": "항목 추가 모달 열기" }
],
"modalConfig": {
"containerSelector": "[role='dialog'], .modal",
"animationDelay": 300,
"waitForSelector": "[role='dialog']"
},
"expect": {
"modal": "항목 추가",
"visible": ["항목명", "타입", "필수여부", "저장"]
}
},
{
"id": "step-9",
"name": "새 항목 정보 입력",
"description": "모달 내 항목 정보 입력 및 저장",
"actions": [
{ "type": "fillInModal", "target": "항목명", "value": "{testData.newItem.name}", "options": { "waitAfter": 100 } },
{ "type": "selectInModal", "target": "타입", "value": "{testData.newItem.type}", "options": { "waitAfter": 200 } },
{ "type": "clickInModal", "target": "필수", "description": "필수여부 체크", "options": { "waitAfter": 100 } },
{ "type": "clickInModal", "target": "저장", "options": { "waitAfter": 500 } }
],
"expect": {
"toast": ["추가", "등록", "성공"],
"modalClosed": true
},
"verify": {
"apiCall": "POST /api/master-data/item-standard/item"
}
},
{
"id": "step-10",
"name": "필수 검증 #4: 항목 추가 반영 확인",
"critical": true,
"note": "토스트 성공 메시지만으로 PASS 판정 불가. 실제 데이터 추가 확인 필수!",
"description": "추가된 항목이 목록에 표시되는지 확인",
"verify": {
"itemListContains": "{testData.newItem.name}"
}
},
{
"id": "step-11",
"name": "항목 수정",
"description": "추가된 항목 클릭하여 수정 모달 열기",
"actions": [
{ "type": "click", "target": "{testData.newItem.name}" },
{ "type": "wait", "duration": 300 },
{ "type": "openModal", "target": "수정", "description": "항목 수정 모달 열기" }
],
"modalConfig": {
"containerSelector": "[role='dialog'], .modal",
"animationDelay": 300,
"waitForSelector": "[role='dialog']"
},
"expect": {
"modal": "항목 수정",
"fieldEditable": true
}
},
{
"id": "step-12",
"name": "항목 정보 변경 및 저장",
"description": "모달 내 항목 이름 변경 후 저장",
"actions": [
{ "type": "fillInModal", "target": "항목명", "value": "E2E 테스트 항목 수정", "options": { "waitAfter": 100 } },
{ "type": "clickInModal", "target": "저장", "options": { "waitAfter": 500 } }
],
"expect": {
"toast": ["수정", "저장", "성공"],
"modalClosed": true
}
},
{
"id": "step-13",
"name": "필수 검증 #4: 항목 수정 반영 확인",
"critical": true,
"note": "토스트 성공 메시지만으로 PASS 판정 불가. 실제 데이터 변경 확인 필수!",
"description": "수정된 항목명이 목록에 표시되는지 확인",
"verify": {
"itemListContains": "E2E 테스트 항목 수정"
}
},
{
"id": "step-14",
"name": "항목 삭제",
"description": "수정된 항목 삭제",
"actions": [
{ "type": "click", "target": "E2E 테스트 항목 수정" },
{ "type": "click", "target": "삭제" }
],
"expect": {
"confirmDialog": true,
"dialogText": ["삭제", "하시겠습니까"]
}
},
{
"id": "step-15",
"name": "항목 삭제 확인",
"description": "삭제 확인 다이얼로그에서 확인 클릭",
"actions": [
{ "type": "click", "target": "확인" }
],
"expect": {
"toast": ["삭제", "성공"],
"modalClosed": true
}
},
{
"id": "step-16",
"name": "필수 검증 #4: 항목 삭제 반영 확인",
"critical": true,
"note": "토스트 성공 메시지만으로 PASS 판정 불가. 실제 데이터 삭제 확인 필수!",
"description": "삭제된 항목이 목록에서 제거되었는지 확인",
"verify": {
"itemListNotContains": "E2E 테스트 항목 수정"
}
},
{
"id": "step-17",
"name": "섹션 삭제",
"description": "테스트 섹션 삭제",
"actions": [
{ "type": "click", "target": "{testData.newSection.name}" },
{ "type": "click", "target": "섹션 삭제", "description": "섹션 삭제 버튼" }
],
"expect": {
"confirmDialog": true,
"dialogText": ["삭제", "하시겠습니까"]
}
},
{
"id": "step-18",
"name": "섹션 삭제 확인",
"description": "삭제 확인 다이얼로그에서 확인 클릭",
"actions": [
{ "type": "click", "target": "확인" }
],
"expect": {
"toast": ["삭제", "성공"]
}
},
{
"id": "step-19",
"name": "필수 검증 #4: 섹션 삭제 반영 확인",
"critical": true,
"note": "토스트 성공 메시지만으로 PASS 판정 불가. 실제 데이터 삭제 확인 필수!",
"description": "삭제된 섹션이 목록에서 제거되었는지 확인",
"verify": {
"sectionListNotContains": "{testData.newSection.name}"
}
},
{
"id": "step-20",
"name": "다른 탭 확인 - 항목",
"description": "항목 탭 클릭하여 표시 확인",
"actions": [
{ "type": "click", "target": "항목", "role": "tab" }
],
"expect": {
"tabActive": "항목",
"contentLoaded": true
}
},
{
"id": "step-21",
"name": "다른 탭 확인 - 속성",
"description": "속성 탭 클릭하여 표시 확인",
"actions": [
{ "type": "click", "target": "속성", "role": "tab" }
],
"expect": {
"tabActive": "속성",
"contentLoaded": true
}
},
{
"id": "step-22",
"name": "불러오기 기능 확인",
"description": "불러오기 버튼 동작 확인",
"actions": [
{ "type": "click", "target": "섹션", "role": "tab" },
{ "type": "click", "target": "소모품 등록" },
{ "type": "wait", "duration": 300 },
{ "type": "click", "target": "불러오기" }
],
"expect": {
"modal": "불러오기",
"visible": ["템플릿", "불러오기"]
}
},
{
"id": "step-23",
"name": "불러오기 모달 닫기",
"description": "불러오기 모달 취소",
"actions": [
{ "type": "press", "key": "Escape" }
],
"expect": {
"modalClosed": true
}
}
],
"assertions": [
{
"type": "url",
"expected": "/master-data/item-standard",
"message": "품목기준관리 페이지에 머물러야 함"
},
{
"type": "elementExists",
"selector": "text=품목기준관리",
"message": "품목기준관리 제목이 표시되어야 함"
}
],
"mandatoryVerifications": {
"description": "E2E_TEST_CONFIG.md 기준 필수 검증 항목",
"items": [
{
"id": 2,
"name": "등록/저장 버튼",
"trigger": "섹션 추가, 항목 추가, 저장 버튼",
"verification": "URL 유지 + 에러 페이지 없음 + 성공 토스트 + 데이터 반영",
"failCondition": "404/500 에러 페이지 이동"
},
{
"id": 4,
"name": "모달 등록 완료",
"trigger": "섹션/항목 추가 모달",
"verification": "실제 저장 동작 + 결과 확인",
"failCondition": "열기/닫기만 테스트"
},
{
"id": 5,
"name": "목업/미완성 페이지 감지",
"trigger": "페이지 로드 시",
"verification": "입력 필드 + 동작하는 버튼 + API 호출 확인",
"failCondition": "버튼만 있고 입력 불가, Console LOG만 출력"
}
]
},
"cleanup": {
"enabled": true,
"description": "테스트 중 생성된 섹션/항목 데이터 삭제",
"actions": [
{
"type": "deleteTestData",
"condition": "contains:E2E 테스트"
}
]
},
"notes": {
"testScope": "섹션 추가/수정/삭제 → 항목 추가/수정/삭제 전체 CRUD 테스트",
"pageStructure": {
"tabs": "계층구조, 섹션, 항목, 속성, 페이지",
"sections": "소모품 등록, 원자재 등록, 부자재 등록, 부품 등록, 제품 등록",
"itemFields": "항목명, 타입, 필수여부, 순서, 필드ID"
},
"itemTypes": ["텍스트", "드롭다운", "날짜", "숫자", "체크박스"],
"prerequisites": "로그인된 사용자에게 기준정보 관리 권한 필요"
}
}