Files
sam-scenarios/settings-popup.json
김보곤 f2379c4e5a refactor: 설정/리포트 시나리오 A/B등급 개선 (3개)
- settings-popup (4→18): A등급, 팝업 CRUD
- settings-subscription (3→12): B등급, 구독정보 조회
- report-analysis (4→12): B등급, 종합분석 대시보드

공통 개선:
- searchWithinParent, closeOtherMenus 플래그 추가
- expectedAPIs 추가
- rollbackPlan 추가
2026-02-03 14:02:28 +09:00

263 lines
7.1 KiB
JSON

{
"id": "settings-popup",
"name": "팝업관리 테스트",
"screenshotPolicy": {
"onErrorOnly": true,
"captureOn": ["error", "fail", "timeout", "404", "500", "blocked"]
},
"description": "설정 > 팝업관리 메뉴의 팝업 CRUD 기능 테스트",
"baseUrl": "https://dev.codebridge-x.com",
"menuNavigation": {
"level1": "설정",
"level2": "팝업관리",
"expectedUrl": "/settings/popup-management",
"searchWithinParent": true,
"closeOtherMenus": true
},
"auth": {
"username": "TestUser5",
"password": "password123!"
},
"testData": {
"create": {
"title": "E2E_TEST_팝업_{timestamp}",
"content": "E2E 자동화 테스트용 팝업입니다.",
"startDate": "{today}",
"endDate": "{today+7}"
}
},
"steps": [
{
"id": 1,
"name": "메뉴 진입: 설정 > 팝업관리",
"action": "menu_navigate",
"level1": "설정",
"level2": "팝업관리",
"expected": {
"url_contains": "/settings/popup",
"visible": ["팝업관리", "팝업"]
}
},
{
"id": 2,
"name": "필수 검증 #5: 목업 페이지 감지",
"action": "verify_not_mockup",
"checks": [
"팝업 목록 표시",
"팝업 등록 버튼 존재",
"상태 필터 존재"
],
"expected": "정상 페이지 (목업 아님)"
},
{
"id": 3,
"name": "팝업 테이블 구조 확인",
"action": "verify_table",
"checks": [
"팝업 제목 컬럼",
"상태 컬럼",
"기간 컬럼",
"노출 위치 컬럼"
],
"expected": "팝업 테이블 표시"
},
{
"id": 4,
"name": "기존 팝업 확인",
"action": "verify_elements",
"checks": [
"등록된 팝업 존재 또는 등록된 팝업 없음"
],
"expected": "팝업 목록 상태 확인"
},
{
"id": 5,
"phase": "CREATE",
"name": "[CREATE] 팝업 등록 버튼 클릭",
"action": "click",
"target": "button:has-text('등록'), button:has-text('추가'), button:has-text('신규')",
"expected": {
"modal_open": true
}
},
{
"id": 6,
"phase": "CREATE",
"name": "[CREATE] 팝업 제목 입력",
"action": "fill",
"target": "input[name*='title'], input[placeholder*='제목']",
"value": "E2E_TEST_팝업_{timestamp}",
"clear": true
},
{
"id": 7,
"phase": "CREATE",
"name": "[CREATE] 팝업 내용 입력",
"action": "fill",
"target": "textarea[name*='content'], textarea[placeholder*='내용']",
"value": "E2E 자동화 테스트용 팝업입니다.",
"clear": true
},
{
"id": 8,
"phase": "CREATE",
"name": "[CREATE] 시작일 설정",
"action": "click",
"target": "input[name*='start'], input[placeholder*='시작']",
"expected": "시작일 선택 가능"
},
{
"id": 9,
"phase": "CREATE",
"name": "[CREATE] 종료일 설정",
"action": "click",
"target": "input[name*='end'], input[placeholder*='종료']",
"expected": "종료일 선택 가능"
},
{
"id": 10,
"phase": "CREATE",
"name": "[CREATE] 필수 검증 #2: 팝업 저장",
"action": "click",
"target": "button:has-text('저장'), button:has-text('등록'), button:has-text('확인')",
"critical": true,
"verify": {
"url_maintained": true,
"no_error_page": true,
"api_call": "POST /api/v1/settings/popups",
"toast": "등록|저장|완료|성공"
},
"expected": "팝업 등록 완료"
},
{
"id": 11,
"phase": "READ",
"name": "[READ] 등록된 팝업 검색",
"action": "fill",
"target": "input[type='search'], input[placeholder*='검색']",
"value": "E2E_TEST_팝업",
"submit": true
},
{
"id": 12,
"phase": "READ",
"name": "[READ] 등록된 팝업 확인",
"action": "verify_detail",
"checks": [
"E2E_TEST_팝업 목록에 표시"
],
"expected": "등록된 팝업 확인"
},
{
"id": 13,
"phase": "READ",
"name": "[READ] 팝업 상세/편집 클릭",
"action": "click",
"target": "table tbody tr:has-text('E2E_TEST_팝업')",
"expected": {
"detail_view": true
}
},
{
"id": 14,
"phase": "UPDATE",
"name": "[UPDATE] 팝업 수정 모드",
"action": "click",
"target": "button:has-text('수정'), button:has-text('편집')",
"expected": {
"edit_mode": true
}
},
{
"id": 15,
"phase": "UPDATE",
"name": "[UPDATE] 팝업 제목 변경",
"action": "fill",
"target": "input[name*='title'], input[placeholder*='제목']",
"value": "E2E_TEST_팝업_수정",
"clear": true
},
{
"id": 16,
"phase": "UPDATE",
"name": "[UPDATE] 변경 저장",
"action": "click",
"target": "button:has-text('저장'), button:has-text('확인')",
"verify": {
"api_call": "PUT /api/v1/settings/popups",
"toast": "수정|저장|완료|성공"
},
"expected": "팝업 수정 완료"
},
{
"id": 17,
"phase": "DELETE",
"name": "[DELETE] 팝업 삭제",
"action": "click",
"target": "button:has-text('삭제'), button:has-text('제거')",
"expected": {
"confirm_dialog": true
}
},
{
"id": 18,
"phase": "DELETE",
"name": "[DELETE] 삭제 확인",
"action": "click",
"target": "[role='alertdialog'] button:has-text('확인'), [role='dialog'] button:has-text('삭제')",
"verify": {
"api_call": "DELETE /api/v1/settings/popups",
"toast": "삭제|제거|완료|성공"
},
"expected": "팝업 삭제 완료"
}
],
"expectedAPIs": [
{
"method": "GET",
"endpoint": "/api/v1/settings/popups",
"description": "팝업 목록 조회"
},
{
"method": "POST",
"endpoint": "/api/v1/settings/popups",
"description": "팝업 등록"
},
{
"method": "GET",
"endpoint": "/api/v1/settings/popups/:id",
"description": "팝업 상세 조회"
},
{
"method": "PUT",
"endpoint": "/api/v1/settings/popups/:id",
"description": "팝업 수정"
},
{
"method": "DELETE",
"endpoint": "/api/v1/settings/popups/:id",
"description": "팝업 삭제"
}
],
"requiredVerifications": [
{
"id": 2,
"name": "저장 버튼",
"steps": [10, 16],
"criteria": "API 호출 + 성공 토스트 + 데이터 반영"
},
{
"id": 5,
"name": "목업 페이지 감지",
"steps": [2],
"criteria": "팝업 목록, 등록 버튼, 상태 필터 존재"
}
],
"rollbackPlan": {
"onCreateFail": "등록 모달 닫고 재시도",
"onUpdateFail": "페이지 새로고침 후 재시도",
"onDeleteFail": "수동 삭제 필요",
"cleanupRequired": "E2E_TEST_팝업* 패턴 데이터 삭제"
}
}