init: E2E 테스트 시나리오 초기화 (61개 파일)
This commit is contained in:
217
account-info.json
Normal file
217
account-info.json
Normal file
@@ -0,0 +1,217 @@
|
||||
{
|
||||
"id": "account-info",
|
||||
"name": "계정정보 테스트",
|
||||
"screenshotPolicy": {
|
||||
"onErrorOnly": true,
|
||||
"captureOn": ["error", "fail", "timeout", "404", "500", "blocked"]
|
||||
},
|
||||
"description": "설정 > 계정정보 페이지의 계정 정보 조회/수정 기능을 테스트하는 E2E 테스트",
|
||||
"baseUrl": "https://dev.codebridge-x.com",
|
||||
"url": "/settings/account",
|
||||
"menuNavigation": {
|
||||
"level1": "설정",
|
||||
"level2": "계정정보",
|
||||
"expectedUrl": "/settings/account"
|
||||
},
|
||||
"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/account",
|
||||
"expectedUrl": "/settings/account"
|
||||
},
|
||||
"timeout": 90000,
|
||||
"tags": ["settings", "account", "profile"],
|
||||
|
||||
"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": "설정 > 계정정보 메뉴로 이동",
|
||||
"actions": [
|
||||
{
|
||||
"type": "scrollAndFind",
|
||||
"container": ".sidebar-scroll",
|
||||
"target": "설정",
|
||||
"scrollStep": 200,
|
||||
"maxAttempts": 5
|
||||
},
|
||||
{ "type": "click", "target": "설정" },
|
||||
{ "type": "wait", "duration": 500 },
|
||||
{ "type": "click", "target": "계정정보" }
|
||||
],
|
||||
"expect": {
|
||||
"url": "/settings/account",
|
||||
"visible": ["계정정보", "계정 정보"]
|
||||
},
|
||||
"fallback": {
|
||||
"type": "navigate",
|
||||
"url": "/settings/account"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "step-2",
|
||||
"name": "페이지 구조 확인",
|
||||
"description": "계정 정보 필드 및 버튼 확인",
|
||||
"verify": {
|
||||
"visible": ["계정 정보", "프로필 사진", "아이디", "비밀번호", "권한", "상태"],
|
||||
"buttons": ["탈퇴", "사용중지", "수정"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "step-3",
|
||||
"name": "프로필 사진 영역 확인",
|
||||
"description": "프로필 사진 업로드 영역 확인",
|
||||
"verify": {
|
||||
"visible": ["프로필 사진", "클릭 또는 드래그", "PNG, JPEG, GIF"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "step-4",
|
||||
"name": "비밀번호 변경 버튼 확인",
|
||||
"description": "비밀번호 변경 버튼 존재 확인",
|
||||
"actions": [
|
||||
{ "type": "click", "target": "변경" }
|
||||
],
|
||||
"expect": {
|
||||
"pageOrModal": "비밀번호 변경",
|
||||
"visible": ["현재 비밀번호", "새 비밀번호"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "step-5",
|
||||
"name": "비밀번호 변경 취소",
|
||||
"description": "ESC 키로 비밀번호 변경 모달 닫기",
|
||||
"actions": [
|
||||
{ "type": "press", "key": "Escape" },
|
||||
{ "type": "wait", "duration": 300 }
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "step-6",
|
||||
"name": "필수 검증 #2: 수정 버튼 클릭",
|
||||
"description": "수정 버튼 클릭하여 정보 수정 모드 진입",
|
||||
"actions": [
|
||||
{ "type": "click", "target": "수정" }
|
||||
],
|
||||
"expect": {
|
||||
"editMode": true,
|
||||
"visible": ["저장", "취소"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "step-7",
|
||||
"name": "수정 취소",
|
||||
"description": "취소 버튼 클릭하여 수정 취소",
|
||||
"actions": [
|
||||
{ "type": "click", "target": "취소" }
|
||||
],
|
||||
"expect": {
|
||||
"editModeClosed": true
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "step-8",
|
||||
"name": "약관 동의 정보 확인",
|
||||
"description": "마케팅 정보 수신 동의 섹션 확인",
|
||||
"verify": {
|
||||
"visible": ["약관 동의 정보", "마케팅 정보 수신 동의", "이메일 수신", "SMS 수신"]
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "step-9",
|
||||
"name": "사용중지 버튼 확인",
|
||||
"description": "사용중지 버튼 존재 확인 (클릭하지 않음)",
|
||||
"verify": {
|
||||
"buttonExists": "사용중지"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "step-10",
|
||||
"name": "탈퇴 버튼 확인",
|
||||
"description": "탈퇴 버튼 존재 확인 (클릭하지 않음)",
|
||||
"verify": {
|
||||
"buttonExists": "탈퇴"
|
||||
}
|
||||
}
|
||||
],
|
||||
|
||||
"assertions": [
|
||||
{
|
||||
"type": "url",
|
||||
"expected": "/settings/account",
|
||||
"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": 5,
|
||||
"name": "목업/미완성 페이지 감지",
|
||||
"trigger": "페이지 로드 시",
|
||||
"verification": "입력 필드 + 동작하는 버튼 확인",
|
||||
"failCondition": "버튼만 있고 입력 불가"
|
||||
}
|
||||
]
|
||||
},
|
||||
|
||||
"notes": {
|
||||
"testScope": "계정 정보 조회 및 수정 버튼 동작 테스트",
|
||||
"pageFeatures": {
|
||||
"profilePhoto": "1250x250px, 10MB 이하 PNG/JPEG/GIF",
|
||||
"accountFields": ["아이디", "비밀번호", "권한", "상태"],
|
||||
"termsAgreement": ["마케팅 정보 수신 동의", "이메일 수신", "SMS 수신"]
|
||||
},
|
||||
"buttons": ["탈퇴", "사용중지", "수정", "변경"],
|
||||
"caution": "탈퇴/사용중지 버튼은 테스트 계정 보호를 위해 클릭하지 않음",
|
||||
"prerequisites": "로그인된 사용자"
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user