Files
sam-scenarios/position-management.json
light 8580c891eb fix: 시나리오 URL 및 메뉴 존재 여부 수정
- announcement-board.json 삭제 (공지사항 메뉴 미존재)
- bank-account-management.json URL 수정: /settings/bank-account → /settings/accounts
- company-info.json URL 수정: /settings/company → /company-info

Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
2026-01-30 16:26:52 +09:00

309 lines
8.7 KiB
JSON

{
"id": "position-management",
"name": "직책관리 테스트",
"screenshotPolicy": {
"onErrorOnly": true,
"captureOn": ["error", "fail", "timeout", "404", "500", "blocked"]
},
"description": "설정 > 직책관리 페이지의 직책 등록/조회/수정/삭제 기능을 테스트하는 E2E 테스트",
"baseUrl": "https://dev.codebridge-x.com",
"url": "/settings/position",
"menuNavigation": {
"level1": "설정",
"level2": "직책관리",
"expectedUrl": "/settings/position"
},
"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": "/settings/position",
"expectedUrl": "/settings/position"
},
"timeout": 90000,
"tags": ["settings", "position", "crud"],
"login": {
"url": "https://dev.codebridge-x.com/login",
"credentials": {
"id": "TestUser5",
"password": "password123!"
},
"successIndicator": "대시보드"
},
"testData": {
"position": {
"name": "E2E테스트직책"
}
},
"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 }
]
},
{
"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": "/settings/position",
"visible": ["직책관리", "추가"]
},
"fallback": {
"type": "navigate",
"url": "/settings/position"
}
},
{
"id": "step-2",
"name": "페이지 구조 확인",
"description": "직책 목록 구조 확인",
"verify": {
"visible": ["직책관리", "추가", "드래그"],
"listExists": true
}
},
{
"id": "step-3",
"name": "필수 검증 #2: 직책 추가 모달 열기",
"description": "추가 버튼 클릭하여 모달 열기",
"actions": [
{ "type": "openModal", "target": "추가", "description": "직책 추가 모달 열기" }
],
"modalConfig": {
"containerSelector": "[role='dialog'], .modal",
"animationDelay": 300,
"waitForSelector": "[role='dialog']"
},
"expect": {
"modal": "직책 추가",
"visible": ["직책명"]
}
},
{
"id": "step-4",
"name": "직책 추가 폼 입력",
"description": "직책 정보 입력 (모달 내부)",
"actions": [
{
"type": "fillInModal",
"target": "직책명",
"value": "{testData.position.name}",
"description": "모달 내 직책명 필드에 값 입력",
"options": { "waitAfter": 200, "retries": 2 }
}
]
},
{
"id": "step-5",
"name": "필수 검증 #2: 직책 추가 저장",
"description": "모달 내 저장 버튼 클릭하여 직책 저장",
"actions": [
{
"type": "clickInModal",
"target": "저장",
"description": "모달 내 저장 버튼 클릭",
"options": { "waitAfter": 500 }
}
],
"expect": {
"urlMaintained": true,
"noErrorPage": true,
"toast": ["등록", "추가", "완료", "성공"],
"modalClosed": true
},
"verify": {
"apiCall": "POST /api/settings/position"
}
},
{
"id": "step-6",
"name": "필수 검증 #4: 등록 데이터 반영 확인",
"critical": true,
"note": "토스트 성공 메시지만으로 PASS 판정 불가. 실제 데이터 등록 확인 필수!",
"description": "목록에서 등록된 직책 확인",
"verify": {
"listContains": ["{testData.position.name}"],
"recordCountIncreased": true
}
},
{
"id": "step-7",
"name": "직책 수정 버튼 클릭",
"description": "등록된 직책의 수정 버튼 클릭",
"actions": [
{
"type": "findItem",
"contains": "{testData.position.name}",
"then": {
"type": "click",
"target": "수정"
}
}
],
"expect": {
"modal": "직책 수정",
"visible": ["직책명"]
}
},
{
"id": "step-8",
"name": "직책 정보 수정",
"description": "직책 정보 수정 테스트",
"actions": [
{ "type": "clear", "target": "직책명" },
{ "type": "fill", "target": "직책명", "value": "E2E테스트직책수정" },
{ "type": "click", "target": "저장" }
],
"expect": {
"toast": ["수정", "완료", "성공"],
"modalClosed": true
}
},
{
"id": "step-9",
"name": "필수 검증 #4: 수정 데이터 반영 확인",
"critical": true,
"note": "토스트 성공 메시지만으로 PASS 판정 불가. 실제 데이터 변경 확인 필수!",
"description": "목록에서 수정된 직책 확인",
"verify": {
"listContains": "E2E테스트직책수정"
}
},
{
"id": "step-10",
"name": "직책 삭제 버튼 클릭",
"description": "수정된 직책의 삭제 버튼 클릭",
"actions": [
{
"type": "findItem",
"contains": "E2E테스트직책수정",
"then": {
"type": "click",
"target": "삭제"
}
}
],
"expect": {
"confirmDialog": true,
"dialogText": ["삭제", "하시겠습니까"]
}
},
{
"id": "step-11",
"name": "삭제 확인",
"description": "삭제 확인 다이얼로그에서 확인 클릭",
"actions": [
{ "type": "click", "target": "확인" }
],
"expect": {
"toast": ["삭제", "완료", "성공"]
}
},
{
"id": "step-12",
"name": "필수 검증 #4: 삭제 데이터 반영 확인",
"critical": true,
"note": "토스트 성공 메시지만으로 PASS 판정 불가. 실제 데이터 삭제 확인 필수!",
"description": "목록에서 삭제된 직책이 없는지 확인",
"verify": {
"listNotContains": "E2E테스트직책",
"recordCountDecreased": true
}
}
],
"assertions": [
{
"type": "url",
"expected": "/settings/position",
"message": "직책관리 페이지에 머물러야 함"
},
{
"type": "elementExists",
"selector": "button:has-text('추가')",
"message": "추가 버튼이 표시되어야 함"
}
],
"mandatoryVerifications": {
"description": "E2E_TEST_CONFIG.md 기준 필수 검증 항목",
"items": [
{
"id": 2,
"name": "등록/저장 버튼",
"trigger": "추가 버튼",
"verification": "URL 유지 + 에러 페이지 없음 + 성공 토스트 + 데이터 반영",
"failCondition": "404/500 에러 페이지 이동"
},
{
"id": 4,
"name": "모달 등록 완료",
"trigger": "직책 추가 모달",
"verification": "실제 저장 동작 + 결과 확인",
"failCondition": "열기/닫기만 테스트"
}
]
},
"cleanup": {
"enabled": true,
"description": "테스트 중 생성된 직책 데이터 삭제",
"actions": [
{
"type": "deleteTestData",
"condition": "contains:E2E테스트"
}
]
},
"notes": {
"testScope": "직책 추가 → 조회 → 수정 → 삭제 전체 CRUD 테스트",
"pageFeatures": {
"dragAndDrop": "직책 순서 변경 가능",
"inlineButtons": "각 직책 항목에 수정/삭제 버튼"
},
"prerequisites": "로그인된 사용자에게 직책 관리 권한 필요"
}
}