{ "id": "customer-event", "name": "이벤트 게시판 테스트", "screenshotPolicy": { "onErrorOnly": true, "captureOn": [ "error", "fail", "timeout", "404", "500", "blocked" ] }, "description": "고객센터 > 이벤트 게시판 메뉴의 이벤트 목록 조회/상세보기 기능 테스트", "baseUrl": "https://dev.codebridge-x.com", "menuNavigation": { "level1": "고객센터", "level2": "이벤트 게시판", "expectedUrl": "/customer-center/events", "searchWithinParent": true, "closeOtherMenus": true }, "auth": { "username": "TestUser5", "password": "password123!" }, "steps": [ { "id": 1, "name": "메뉴 진입: 고객센터 > 이벤트 게시판", "action": "menu_navigate", "level1": "고객센터", "level2": "이벤트 게시판", "expected": { "url_contains": "/customer-center", "visible": [ "이벤트" ] } }, { "id": 2, "name": "URL 검증", "action": "verify_url", "expected": { "url_contains": "/customer-center/events" } }, { "id": 3, "name": "필수 검증 #5: 목업 페이지 감지", "action": "verify_not_mockup", "checks": [ "이벤트 목록 표시", "이벤트 카드 또는 리스트" ], "expected": "정상 페이지 (목업 아님)" }, { "id": 4, "name": "통계 카드 확인", "action": "evaluate", "script": "(() => {\n const cards = document.querySelectorAll('[class*=\"card\"], [class*=\"Card\"], [class*=\"stat\"], [class*=\"Stat\"], [class*=\"summary\"]');\n const texts = Array.from(cards).map(c => c.innerText?.substring(0, 30)).filter(Boolean);\n return texts.length > 0 ? 'Stats: ' + texts.length + ' cards found' : 'No stat cards (ok)';\n })()" }, { "id": 5, "name": "이벤트 페이지 구조 확인", "action": "verify_elements", "checks": [ "이벤트 목록 (카드 또는 테이블)", "이벤트 상태 표시 (진행중/종료)", "검색 기능" ], "expected": "이벤트 페이지 구조 정상" }, { "id": 6, "phase": "READ", "name": "[READ] 이벤트 목록 데이터 확인", "action": "verify_detail", "checks": [ "이벤트 항목 존재 또는 '등록된 이벤트 없음' 메시지" ], "expected": "이벤트 데이터 표시" }, { "id": 7, "phase": "FILTER", "name": "[FILTER] 상태별 필터", "action": "verify_elements", "checks": [ "전체/진행중/종료 필터 가능" ], "expected": "상태 필터 표시" }, { "id": 8, "phase": "READ", "name": "[READ] 이벤트 상세 보기", "action": "click_if_exists", "target": "[class*='event']:first-child, table tbody tr:first-child, [class*='card']:first-child", "expected": { "detail_view": true } }, { "id": 9, "name": "이벤트 상세 정보 확인", "action": "verify_detail", "checks": [ "이벤트 제목", "이벤트 기간", "이벤트 내용", "이벤트 이미지 (있을 경우)" ], "expected": "이벤트 상세 정보 표시" }, { "id": 10, "name": "이벤트 참여 버튼 확인", "action": "verify_elements", "checks": [ "참여하기 버튼 존재 여부 (진행중 이벤트)" ], "expected": "참여 버튼 확인" }, { "id": 11, "name": "공유 기능 확인", "action": "verify_elements", "checks": [ "공유 버튼 또는 링크 복사 기능" ], "expected": "공유 기능 표시" }, { "id": 12, "name": "목록으로 돌아가기", "action": "click_if_exists", "target": "button:has-text('목록'), a:has-text('목록'), [class*='back']", "expected": "목록 페이지로 복귀" }, { "id": 13, "name": "페이지네이션 확인", "action": "verify_elements", "checks": [ "페이지 번호 또는 더보기 버튼" ], "expected": "페이지네이션 표시" }, { "id": 14, "name": "테이블 행 클릭 - 상세 페이지 이동", "action": "click_first_row" }, { "id": 15, "name": "상세 페이지 로딩 대기", "action": "wait", "duration": 1000 }, { "id": 16, "name": "상세 페이지 - 콘텐츠 확인", "action": "evaluate", "script": "(() => {\n const inputs = document.querySelectorAll('input:not([type=\"hidden\"]), textarea, select');\n const buttons = document.querySelectorAll('button');\n const hasDetail = inputs.length > 0 || document.body.innerText.includes('상세') || document.body.innerText.includes('수정');\n return hasDetail ? 'Detail page: ' + inputs.length + ' inputs, ' + buttons.length + ' buttons' : 'List page (no detail view)';\n })()" }, { "id": 17, "name": "모달/상세 닫기", "action": "close_modal_if_open" }, { "id": 18, "name": "콘솔 에러 확인", "action": "verify_element", "target": "body" }, { "id": 19, "name": "이벤트 기간 정보 확인", "action": "verify_detail", "checks": [ "시작일/종료일 표시", "D-Day 또는 남은 기간 표시" ], "expected": "기간 정보 표시" } ], "expectedAPIs": [ { "method": "GET", "endpoint": "/api/v1/customer/events", "description": "이벤트 목록 조회" }, { "method": "GET", "endpoint": "/api/v1/customer/events/:id", "description": "이벤트 상세 조회" } ], "requiredVerifications": [ { "id": 5, "name": "목업 페이지 감지", "steps": [ 2 ], "criteria": "이벤트 목록, 이벤트 카드/리스트 존재" } ], "rollbackPlan": { "note": "조회 전용 페이지로 데이터 변경 없음" } }