Files
sam-scenarios/customer-faq.json

212 lines
5.9 KiB
JSON
Raw Permalink Normal View History

{
"id": "customer-faq",
"name": "FAQ 테스트",
"screenshotPolicy": {
"onErrorOnly": true,
"captureOn": [
"error",
"fail",
"timeout",
"404",
"500",
"blocked"
]
},
"description": "고객센터 > FAQ 메뉴의 자주 묻는 질문 조회/검색/카테고리 필터 기능 테스트",
"baseUrl": "https://dev.codebridge-x.com",
"menuNavigation": {
"level1": "고객센터",
"level2": "FAQ",
"expectedUrl": "/customer-center/faq",
"searchWithinParent": true,
"closeOtherMenus": true
},
"auth": {
"username": "TestUser5",
"password": "password123!"
},
"steps": [
{
"id": 1,
"name": "메뉴 진입: 고객센터 > FAQ",
"action": "menu_navigate",
"level1": "고객센터",
"level2": "FAQ",
"expected": {
"url_contains": "/customer-center/faq",
"visible": [
"FAQ",
"자주 묻는 질문"
]
}
},
{
"id": 2,
"name": "URL 검증",
"action": "verify_url",
"expected": {
"url_contains": "/customer-center/faq"
}
},
{
"id": 3,
"name": "필수 검증 #5: 목업 페이지 감지",
"action": "verify_not_mockup",
"checks": [
"FAQ 목록 표시",
"카테고리 또는 검색 기능 존재"
],
"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": "FAQ 페이지 구조 확인",
"action": "verify_elements",
"checks": [
"FAQ 항목 목록 (아코디언 또는 리스트)",
"카테고리 탭/필터",
"검색 기능"
],
"expected": "FAQ 페이지 구조 정상"
},
{
"id": 6,
"phase": "READ",
"name": "[READ] FAQ 목록 데이터 확인",
"action": "verify_detail",
"checks": [
"FAQ 항목 존재 또는 '등록된 FAQ 없음' 메시지"
],
"expected": "FAQ 데이터 표시"
},
{
"id": 7,
"phase": "READ",
"name": "[READ] FAQ 항목 펼치기",
"action": "click_if_exists",
"target": "[class*='accordion']:first-child, [class*='faq']:first-child, table tbody tr:first-child",
"expected": {
"accordion_open": true
}
},
{
"id": 8,
"name": "FAQ 답변 내용 확인",
"action": "verify_detail",
"checks": [
"답변 내용 표시"
],
"expected": "FAQ 답변 표시"
},
{
"id": 9,
"phase": "FILTER",
"name": "[FILTER] 카테고리 필터",
"action": "verify_element",
"target": "[class*='category'], [class*='tab']",
"expected": "카테고리 선택 가능"
},
{
"id": 10,
"phase": "FILTER",
"name": "[FILTER] 카테고리 선택 후 결과",
"action": "verify_detail",
"checks": [
"해당 카테고리 FAQ만 표시"
],
"expected": "카테고리 필터 동작"
},
{
"id": 11,
"phase": "SEARCH",
"name": "[SEARCH] FAQ 검색",
"action": "click_if_exists",
"target": "input[type='search'], input[placeholder*='검색']",
"value": "테스트",
"submit": true
},
{
"id": 12,
"phase": "SEARCH",
"name": "[SEARCH] 검색 결과 확인",
"action": "verify_detail",
"checks": [
"검색 결과 표시 또는 결과 없음 메시지"
],
"expected": "검색 기능 동작"
},
{
"id": 13,
"name": "FAQ 접기/펼치기 토글",
"action": "verify_elements",
"checks": [
"접기/펼치기 아이콘 또는 버튼"
],
"expected": "토글 기능 표시"
},
{
"id": 14,
"name": "페이지네이션 확인",
"action": "evaluate",
"script": "(() => {\n const paginationSels = ['[class*=\"pagination\"]', '[class*=\"Pagination\"]', 'nav[aria-label*=\"page\"]', 'button[aria-label*=\"page\"]', '[class*=\"pager\"]'];\n for (const sel of paginationSels) {\n const el = document.querySelector(sel);\n if (el) return 'Pagination found';\n }\n const pageButtons = Array.from(document.querySelectorAll('button')).filter(b => /^\\d+$/.test(b.innerText?.trim()));\n if (pageButtons.length > 0) return 'Page buttons found: ' + pageButtons.length;\n return 'No pagination (ok - may have single page)';\n })()"
},
{
"id": 15,
"name": "콘솔 에러 확인",
"action": "verify_element",
"target": "body"
},
{
"id": 16,
"name": "전체 보기/접기",
"action": "verify_elements",
"checks": [
"전체 펼치기/접기 버튼 존재 여부"
],
"expected": "전체 토글 기능 확인"
}
],
"expectedAPIs": [
{
"method": "GET",
"endpoint": "/api/v1/customer/faq",
"description": "FAQ 목록 조회"
},
{
"method": "GET",
"endpoint": "/api/v1/customer/faq/categories",
"description": "FAQ 카테고리 조회"
}
],
"requiredVerifications": [
{
"id": 3,
"name": "검색/필터",
"steps": [
7,
8,
9,
10
],
"criteria": "카테고리 필터 + 검색 기능 동작"
},
{
"id": 5,
"name": "목업 페이지 감지",
"steps": [
2
],
"criteria": "FAQ 목록, 카테고리/검색 기능 존재"
}
],
"rollbackPlan": {
"note": "조회 전용 페이지로 데이터 변경 없음"
}
}