init: E2E 테스트 시나리오 초기화 (61개 파일)
This commit is contained in:
192
faq.json
Normal file
192
faq.json
Normal file
@@ -0,0 +1,192 @@
|
||||
{
|
||||
"id": "faq",
|
||||
"name": "FAQ 테스트",
|
||||
"screenshotPolicy": {
|
||||
"onErrorOnly": true,
|
||||
"captureOn": ["error", "fail", "timeout", "404", "500", "blocked"]
|
||||
},
|
||||
"description": "고객센터 > FAQ 페이지의 카테고리별 조회, 아코디언 펼치기/접기 기능을 테스트하는 E2E 테스트",
|
||||
"baseUrl": "https://dev.codebridge-x.com",
|
||||
"url": "/support/faq",
|
||||
"menuNavigation": {
|
||||
"level1": "고객센터",
|
||||
"level2": "FAQ",
|
||||
"expectedUrl": "/support/faq"
|
||||
},
|
||||
"menuNavigationEnhanced": {
|
||||
"strategy": "scroll-and-search",
|
||||
"sidebar": {
|
||||
"scrollContainer": ".sidebar-scroll",
|
||||
"scrollStep": 200,
|
||||
"maxScrollAttempts": 5,
|
||||
"waitAfterScroll": 300
|
||||
},
|
||||
"level1": {
|
||||
"text": "고객센터",
|
||||
"expandable": true,
|
||||
"waitAfterClick": 500
|
||||
},
|
||||
"level2": {
|
||||
"text": "FAQ",
|
||||
"waitAfterClick": 300
|
||||
},
|
||||
"fallbackUrl": "/support/faq",
|
||||
"expectedUrl": "/support/faq"
|
||||
},
|
||||
"timeout": 90000,
|
||||
"tags": ["support", "faq", "read-only"],
|
||||
|
||||
"login": {
|
||||
"url": "https://dev.codebridge-x.com/login",
|
||||
"credentials": {
|
||||
"id": "TestUser5",
|
||||
"password": "password123!"
|
||||
},
|
||||
"successIndicator": "대시보드"
|
||||
},
|
||||
|
||||
"steps": [
|
||||
{
|
||||
"id": "step-0",
|
||||
"name": "사이드바 초기화",
|
||||
"description": "사이드바를 스크롤하여 메뉴 탐색 준비",
|
||||
"actions": [
|
||||
{
|
||||
"type": "evaluate",
|
||||
"script": "document.querySelector('.sidebar-scroll')?.scrollTo({top:0,behavior:'instant'})"
|
||||
},
|
||||
{ "type": "wait", "duration": 500 }
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "step-1",
|
||||
"name": "고객센터 메뉴 진입",
|
||||
"description": "고객센터 > FAQ 메뉴로 이동",
|
||||
"actions": [
|
||||
{
|
||||
"type": "scrollAndFind",
|
||||
"container": ".sidebar-scroll",
|
||||
"target": "고객센터",
|
||||
"scrollStep": 200,
|
||||
"maxAttempts": 5
|
||||
},
|
||||
{ "type": "click", "target": "고객센터" },
|
||||
{ "type": "wait", "duration": 500 },
|
||||
{ "type": "click", "target": "FAQ" }
|
||||
],
|
||||
"expect": {
|
||||
"url": "/support/faq",
|
||||
"visible": ["FAQ"]
|
||||
},
|
||||
"fallback": {
|
||||
"type": "navigate",
|
||||
"url": "/support/faq"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "step-2",
|
||||
"name": "페이지 구조 확인",
|
||||
"description": "FAQ 페이지 카테고리 탭 확인",
|
||||
"verify": {
|
||||
"visible": ["FAQ"],
|
||||
"categoryTabs": ["전체", "계정", "결제", "서비스", "인사관리", "회계", "기타"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "step-3",
|
||||
"name": "필수 검증 #3: 카테고리 탭 전환 - 계정",
|
||||
"description": "계정 카테고리 탭 클릭하여 필터링 확인",
|
||||
"actions": [
|
||||
{ "type": "click", "target": "계정", "role": "tab" },
|
||||
{ "type": "wait", "duration": 300 }
|
||||
],
|
||||
"expect": {
|
||||
"tabActive": "계정",
|
||||
"dataFiltered": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "step-4",
|
||||
"name": "필수 검증 #3: 카테고리 탭 전환 - 서비스",
|
||||
"description": "서비스 카테고리 탭 클릭하여 필터링 확인",
|
||||
"actions": [
|
||||
{ "type": "click", "target": "서비스", "role": "tab" },
|
||||
{ "type": "wait", "duration": 300 }
|
||||
],
|
||||
"expect": {
|
||||
"tabActive": "서비스",
|
||||
"dataFiltered": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "step-5",
|
||||
"name": "전체 탭으로 복귀",
|
||||
"description": "전체 탭 클릭하여 모든 FAQ 표시",
|
||||
"actions": [
|
||||
{ "type": "click", "target": "전체", "role": "tab" },
|
||||
{ "type": "wait", "duration": 300 }
|
||||
],
|
||||
"expect": {
|
||||
"tabActive": "전체",
|
||||
"allDataShown": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "step-6",
|
||||
"name": "FAQ 항목 펼치기",
|
||||
"description": "FAQ 질문 클릭하여 답변 펼치기",
|
||||
"actions": [
|
||||
{ "type": "click", "target": "FAQ 사용방법" }
|
||||
],
|
||||
"expect": {
|
||||
"accordionExpanded": true,
|
||||
"answerVisible": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "step-7",
|
||||
"name": "FAQ 항목 접기",
|
||||
"description": "펼쳐진 FAQ 다시 클릭하여 접기",
|
||||
"actions": [
|
||||
{ "type": "click", "target": "FAQ 사용방법" }
|
||||
],
|
||||
"expect": {
|
||||
"accordionCollapsed": true
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
"assertions": [
|
||||
{
|
||||
"type": "url",
|
||||
"expected": "/support/faq",
|
||||
"message": "FAQ 페이지에 머물러야 함"
|
||||
},
|
||||
{
|
||||
"type": "elementExists",
|
||||
"selector": "text=FAQ",
|
||||
"message": "FAQ 제목이 표시되어야 함"
|
||||
}
|
||||
],
|
||||
|
||||
"mandatoryVerifications": {
|
||||
"description": "E2E_TEST_CONFIG.md 기준 필수 검증 항목",
|
||||
"items": [
|
||||
{
|
||||
"id": 3,
|
||||
"name": "검색/필터",
|
||||
"trigger": "카테고리 탭",
|
||||
"verification": "데이터 변화 확인",
|
||||
"failCondition": "필터 적용 후 데이터 무변화"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
"notes": {
|
||||
"testScope": "FAQ 카테고리 필터 → 아코디언 펼치기/접기 테스트",
|
||||
"pageType": "조회 전용 (일반 사용자 등록/수정/삭제 불가)",
|
||||
"categories": ["전체", "계정", "결제", "서비스", "인사관리", "회계", "기타"],
|
||||
"faqFormat": "아코디언 (질문 클릭 시 답변 펼침)",
|
||||
"prerequisites": "로그인된 사용자"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user