Files
sam-scenarios/announcement-board.json

187 lines
5.3 KiB
JSON
Raw Normal View History

{
"id": "announcement-board",
"name": "공지사항 테스트",
"screenshotPolicy": {
"onErrorOnly": true,
"captureOn": ["error", "fail", "timeout", "404", "500", "blocked"]
},
"description": "고객센터 > 공지사항 페이지의 목록 조회, 상세 보기, 검색/필터 기능을 테스트하는 E2E 테스트",
"baseUrl": "https://dev.codebridge-x.com",
"url": "/support/announcements",
"menuNavigation": {
"level1": "고객센터",
"level2": "공지사항",
"expectedUrl": "/support/announcements"
},
"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": "/support/announcements",
"expectedUrl": "/support/announcements"
},
"timeout": 90000,
"tags": ["support", "announcement", "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": "고객센터 > 공지사항 메뉴로 이동",
"actions": [
{
"type": "scrollAndFind",
"container": ".sidebar-scroll",
"target": "고객센터",
"scrollStep": 200,
"maxAttempts": 5
},
{ "type": "click", "target": "고객센터" },
{ "type": "wait", "duration": 500 },
{ "type": "click", "target": "공지사항" }
],
"expect": {
"url": "/support/announcements",
"visible": ["공지사항"]
},
"fallback": {
"type": "navigate",
"url": "/support/announcements"
}
},
{
"id": "step-2",
"name": "페이지 구조 확인",
"description": "공지사항 목록 페이지 구조 확인",
"verify": {
"visible": ["공지사항", "최신순"],
"tableColumns": ["No.", "제목", "작성자", "등록일", "조회수"]
}
},
{
"id": "step-3",
"name": "날짜 필터 확인",
"description": "날짜 필터 버튼 동작 확인",
"actions": [
{ "type": "click", "target": "당월" },
{ "type": "wait", "duration": 300 }
],
"expect": {
"filterApplied": true
}
},
{
"id": "step-4",
"name": "정렬 옵션 확인",
"description": "정렬 드롭다운 옵션 확인",
"actions": [
{ "type": "click", "target": "최신순", "role": "combobox" }
],
"expect": {
"optionsVisible": true
}
},
{
"id": "step-5",
"name": "공지사항 상세 보기",
"description": "공지사항 항목 클릭하여 상세 페이지 이동",
"actions": [
{ "type": "press", "key": "Escape" },
{ "type": "wait", "duration": 300 },
{
"type": "evaluate",
"script": "document.querySelector('tbody tr')?.click()"
}
],
"expect": {
"pageChange": "/support/announcements/",
"visible": ["공지사항 상세", "목록으로"]
}
},
{
"id": "step-6",
"name": "상세 페이지 구조 확인",
"description": "상세 페이지 정보 표시 확인",
"verify": {
"visible": ["제목", "작성자", "등록일", "조회수", "내용"]
}
},
{
"id": "step-7",
"name": "목록으로 돌아가기",
"description": "목록으로 버튼 클릭하여 목록 페이지로 복귀",
"actions": [
{ "type": "click", "target": "목록으로" }
],
"expect": {
"url": "/support/announcements",
"visible": ["공지사항"]
}
},
{
"id": "step-8",
"name": "페이지네이션 확인",
"description": "페이지네이션 동작 확인",
"verify": {
"paginationExists": true,
"showsTotalItems": true
}
}
],
"assertions": [
{
"type": "url",
"expected": "/support/announcements",
"message": "공지사항 페이지에 머물러야 함"
},
{
"type": "elementExists",
"selector": "text=공지사항",
"message": "공지사항 제목이 표시되어야 함"
}
],
"notes": {
"testScope": "공지사항 목록 조회 → 상세 보기 → 필터/정렬 테스트",
"pageType": "조회 전용 (일반 사용자 등록/수정/삭제 불가)",
"tableColumns": ["No.", "제목", "작성자", "등록일", "조회수"],
"detailFields": ["제목", "작성자", "등록일", "조회수", "이미지", "내용"],
"prerequisites": "로그인된 사용자"
}
}