Files
sam-scenarios/settings-account.json

200 lines
5.3 KiB
JSON
Raw Normal View History

{
"id": "settings-account",
"name": "계정정보 테스트",
"screenshotPolicy": {
"onErrorOnly": true,
"captureOn": ["error", "fail", "timeout", "404", "500", "blocked"]
},
"description": "설정 > 계정정보 메뉴의 계정 정보 조회/수정/비밀번호 변경 기능 테스트",
"baseUrl": "https://dev.codebridge-x.com",
"menuNavigation": {
"level1": "설정",
"level2": "계정정보",
"expectedUrl": "/settings/account",
"searchWithinParent": true,
"closeOtherMenus": true
},
"auth": {
"username": "TestUser5",
"password": "password123!"
},
"testData": {
"update": {
"displayName": "E2E 테스트 사용자",
"phone": "010-1234-5678"
}
},
"steps": [
{
"id": 1,
"name": "메뉴 진입: 설정 > 계정정보",
"action": "menu_navigate",
"level1": "설정",
"level2": "계정정보",
"expected": {
"url_contains": "/settings/account",
"visible": ["계정정보", "프로필"]
}
},
{
"id": 2,
"name": "필수 검증 #5: 목업 페이지 감지",
"action": "verify_not_mockup",
"checks": [
"계정 정보 폼 표시",
"프로필 이미지 영역 존재",
"수정 버튼 존재"
],
"expected": "정상 페이지 (목업 아님)"
},
{
"id": 3,
"name": "계정 정보 폼 구조 확인",
"action": "verify_elements",
"checks": [
"사용자명 표시",
"이메일 표시",
"연락처 표시",
"프로필 이미지 영역"
],
"expected": "계정 정보 폼 정상 표시"
},
{
"id": 4,
"phase": "READ",
"name": "[READ] 현재 계정 정보 확인",
"action": "verify_detail",
"checks": [
"사용자명: TestUser5",
"이메일 표시됨",
"연락처 표시됨"
],
"expected": "현재 계정 정보 정상 표시"
},
{
"id": 5,
"phase": "UPDATE",
"name": "[UPDATE] 프로필 수정 모드 진입",
"action": "click",
"target": "button:has-text('수정'), button:has-text('편집')",
"expected": {
"edit_mode": true,
"fields_editable": true
}
},
{
"id": 6,
"phase": "UPDATE",
"name": "[UPDATE] 표시 이름 수정",
"action": "click_if_exists",
"target": "input[name*='displayName'], input[name*='name'], input[placeholder*='이름']"
},
{
"id": 7,
"phase": "UPDATE",
"name": "[UPDATE] 연락처 수정",
"action": "click_if_exists",
"target": "input[name*='phone'], input[type='tel']"
},
{
"id": 8,
"phase": "UPDATE",
"name": "[UPDATE] 필수 검증 #2: 프로필 저장",
"action": "click_if_exists",
"target": "button:has-text('저장'), button:has-text('확인')",
"verify": {
"url_maintained": true,
"no_error_page": true,
"api_call": "PUT /api/v1/users/profile",
"toast": "저장|수정|완료|성공"
},
"expected": "프로필 저장 완료"
},
{
"id": 9,
"phase": "UPDATE",
"name": "[UPDATE] 저장 결과 확인",
"action": "verify_detail",
"checks": [
"표시 이름: E2E 테스트",
"연락처: 010-1234"
],
"expected": "수정된 정보 반영"
},
{
"id": 10,
"name": "비밀번호 변경 버튼 확인",
"action": "verify_elements",
"checks": [
"비밀번호 변경 버튼 존재"
],
"expected": "비밀번호 변경 버튼 표시"
},
{
"id": 11,
"name": "비밀번호 변경 모달 열기",
"action": "click",
"target": "button:has-text('비밀번호 변경'), button:has-text('비밀번호')",
"expected": {
"modal_open": true,
"visible": ["현재 비밀번호", "새 비밀번호", "비밀번호 확인"]
}
},
{
"id": 12,
"name": "비밀번호 변경 모달 닫기",
"action": "close_modal_if_open",
"expected": "모달 닫힘"
},
{
"id": 13,
"name": "프로필 이미지 변경 확인",
"action": "verify_elements",
"checks": [
"프로필 이미지 변경 버튼"
],
"expected": "이미지 변경 기능 표시"
}
],
"expectedAPIs": [
{
"method": "GET",
"endpoint": "/api/v1/users/profile",
"description": "프로필 정보 조회"
},
{
"method": "PUT",
"endpoint": "/api/v1/users/profile",
"description": "프로필 정보 수정"
},
{
"method": "PUT",
"endpoint": "/api/v1/users/password",
"description": "비밀번호 변경"
},
{
"method": "POST",
"endpoint": "/api/v1/users/profile/image",
"description": "프로필 이미지 업로드"
}
],
"requiredVerifications": [
{
"id": 2,
"name": "저장 버튼",
"steps": [8],
"criteria": "API 호출 + 성공 토스트 + 정보 반영"
},
{
"id": 5,
"name": "목업 페이지 감지",
"steps": [2],
"criteria": "계정 정보 폼, 수정 버튼 존재"
}
],
"rollbackPlan": {
"onUpdateFail": "페이지 새로고침으로 원래 값 복원",
"note": "프로필 수정은 실제 데이터에 영향을 줄 수 있으므로 주의"
}
}