Files
sam-scenarios/free-board.json
김보곤 3bc23c5884 refactor: E2E 시나리오 전면 개선 (43파일)
- Phase 0: 미구현 모듈 시나리오 13개 삭제 (구매관리, 중복, 라우트 없음)
- Phase 2: Settings URL 불일치 수정 (position, attendance, vacation-policy, bank-account, account, notification)
- Phase 3-4: 비설정 시나리오 URL/메뉴/UI 수정 (inventory-status, receiving-management, price-management, customer-inquiry, shipment-management, sales-client, quality-certification, customer-notice, production-* 등)
- Phase 5-6: 복잡 시나리오 재작성 (draft-box 50→14스텝, department-add 18→10스텝, free-board 70→22스텝, crud-delete-freeboard 14→17스텝)
- 16개 disabled 시나리오 enabled 전환
- 비표준 액션(fillInModal, randomData, usePlaywrightNative 등) → step-executor 표준 액션으로 통일
2026-02-06 17:37:35 +09:00

293 lines
7.8 KiB
JSON

{
"enabled": true,
"id": "free-board",
"name": "자유게시판 E2E 테스트",
"screenshotPolicy": {
"onErrorOnly": true,
"captureOn": ["error", "fail", "timeout", "404", "500", "blocked"]
},
"description": "자유게시판의 목록, 게시글 작성, 상세, 수정, 삭제 전체 CRUD 워크플로우 테스트",
"baseUrl": "https://dev.codebridge-x.com",
"menuNavigation": {
"level1": "게시판",
"level2": "자유게시판",
"expectedUrl": "/boards/free",
"searchWithinParent": true,
"closeOtherMenus": true
},
"auth": {
"username": "TestUser5",
"password": "password123!"
},
"testData": {
"create": {
"title": "E2E_TEST_게시글_{timestamp}",
"content": "E2E 자동화 테스트를 위한 게시글입니다."
},
"update": {
"title": "E2E_TEST_수정완료_{timestamp}",
"content": "수정된 내용입니다."
}
},
"steps": [
{
"id": 1,
"name": "메뉴 진입: 게시판 > 자유게시판",
"action": "menu_navigate",
"level1": "게시판",
"level2": "자유게시판",
"expected": {
"url_contains": "/boards/free",
"visible": ["자유게시판"]
}
},
{
"id": 2,
"name": "필수 검증 #5: 목업 페이지 감지",
"action": "verify_not_mockup",
"checks": [
"게시글 목록 표시",
"글쓰기 버튼 존재",
"검색 기능 존재"
],
"expected": "정상 페이지 (목업 아님)"
},
{
"id": 3,
"name": "게시판 테이블 구조 확인",
"action": "verify_table",
"checks": [
"제목 컬럼",
"작성자 컬럼",
"등록일 컬럼"
],
"expected": "게시판 테이블 표시"
},
{
"id": 4,
"phase": "SEARCH",
"name": "[SEARCH] 검색 기능 테스트",
"action": "fill",
"target": "input[placeholder*='제목'], input[type='search'], input[placeholder*='검색']",
"value": "테스트",
"submit": true
},
{
"id": 5,
"phase": "SEARCH",
"name": "[SEARCH] 검색 결과 확인",
"action": "verify_detail",
"checks": [
"검색 결과 표시 또는 결과 없음 메시지"
],
"expected": "검색 기능 동작"
},
{
"id": 6,
"phase": "CREATE",
"name": "[CREATE] 글쓰기 버튼 클릭",
"action": "click_if_exists",
"target": "button:has-text('글쓰기'), button:has-text('등록'), button:has-text('작성')"
},
{
"id": 7,
"phase": "CREATE",
"name": "[CREATE] 작성 페이지 대기",
"action": "wait",
"duration": 2000
},
{
"id": 8,
"phase": "CREATE",
"name": "[CREATE] 제목 입력",
"action": "fill",
"target": "input#title, input[name='title'], input[placeholder*='제목']",
"value": "E2E_TEST_게시글_{timestamp}",
"clear": true
},
{
"id": 9,
"phase": "CREATE",
"name": "[CREATE] 내용 입력",
"action": "fill",
"target": "textarea#content, textarea[name='content'], [contenteditable='true']",
"value": "E2E 자동화 테스트를 위한 게시글입니다.",
"clear": true
},
{
"id": 10,
"phase": "CREATE",
"name": "[CREATE] 필수 검증 #2: 게시글 등록",
"action": "click_if_exists",
"target": "button:has-text('등록'), button[type='submit']",
"verify": {
"url_maintained": false,
"no_error_page": true,
"toast": "등록|완료|성공"
},
"expected": "게시글 등록 완료"
},
{
"id": 11,
"phase": "CREATE",
"name": "[CREATE] 등록 후 대기",
"action": "wait",
"duration": 2000
},
{
"id": 12,
"phase": "READ",
"name": "[READ] 게시글 상세 확인",
"action": "verify_detail",
"checks": [
"E2E_TEST_게시글 제목 표시",
"게시글 내용 표시"
],
"expected": "게시글 상세 페이지 표시"
},
{
"id": 13,
"phase": "UPDATE",
"name": "[UPDATE] 수정 버튼 클릭",
"action": "click_if_exists",
"target": "button:has-text('수정'), button:has-text('편집')",
"expected": {
"edit_mode": true
}
},
{
"id": 14,
"phase": "UPDATE",
"name": "[UPDATE] 수정 페이지 대기",
"action": "wait",
"duration": 1500
},
{
"id": 15,
"phase": "UPDATE",
"name": "[UPDATE] 제목 수정",
"action": "fill",
"target": "input#title, input[name='title'], input[placeholder*='제목']",
"value": "E2E_TEST_수정완료_{timestamp}",
"clear": true
},
{
"id": 16,
"phase": "UPDATE",
"name": "[UPDATE] 필수 검증 #2: 수정 저장",
"action": "click_if_exists",
"target": "button:has-text('저장'), button:has-text('수정'), button[type='submit']",
"verify": {
"no_error_page": true,
"toast": "수정|저장|완료|성공"
},
"expected": "수정 완료"
},
{
"id": 17,
"phase": "UPDATE",
"name": "[UPDATE] 수정 후 대기",
"action": "wait",
"duration": 2000
},
{
"id": 18,
"phase": "UPDATE",
"name": "[UPDATE] 수정 결과 확인",
"action": "verify_detail",
"checks": [
"E2E_TEST_수정완료 제목 표시"
],
"expected": "수정된 데이터 반영"
},
{
"id": 19,
"phase": "DELETE",
"name": "[DELETE] 삭제 버튼 클릭",
"action": "click_if_exists",
"target": "button:has-text('삭제')",
"expected": {
"confirm_dialog": true
}
},
{
"id": 20,
"phase": "DELETE",
"name": "[DELETE] 필수 검증 #6: 삭제 확인",
"action": "click_and_confirm",
"target": "button:has-text('확인'), button:has-text('삭제')",
"verify": {
"toast": "삭제|완료|성공",
"redirect": "/boards/free"
},
"expected": "삭제 완료 및 목록 복귀"
},
{
"id": 21,
"phase": "DELETE",
"name": "[DELETE] 삭제 후 대기",
"action": "wait",
"duration": 2000
},
{
"id": 22,
"phase": "DELETE",
"name": "[DELETE] 삭제 결과 확인",
"action": "verify_detail",
"search": "E2E_TEST_수정완료",
"expected": {
"row_exists": false,
"message": "테스트 게시글이 목록에서 제거됨"
}
}
],
"expectedAPIs": [
{
"method": "GET",
"endpoint": "/api/v1/boards/free/posts",
"description": "게시글 목록 조회"
},
{
"method": "POST",
"endpoint": "/api/v1/boards/free/posts",
"description": "게시글 등록"
},
{
"method": "PUT",
"endpoint": "/api/v1/boards/free/posts/{id}",
"description": "게시글 수정"
},
{
"method": "DELETE",
"endpoint": "/api/v1/boards/free/posts/{id}",
"description": "게시글 삭제"
}
],
"requiredVerifications": [
{
"id": 2,
"name": "등록/저장 버튼",
"steps": [10, 16],
"criteria": "API 호출 + 성공 토스트 + 데이터 반영"
},
{
"id": 5,
"name": "목업 페이지 감지",
"steps": [2],
"criteria": "게시글 목록, 글쓰기 버튼, 검색 기능 존재"
},
{
"id": 6,
"name": "삭제 기능",
"steps": [19, 20, 22],
"criteria": "DELETE API + 목록에서 제거"
}
],
"rollbackPlan": {
"onCreateFail": "영향 없음",
"onUpdateFail": "테스트 게시글 수동 삭제 필요",
"onDeleteFail": "테스트 게시글 수동 삭제 필요",
"cleanupRequired": "E2E_TEST_ 접두사 게시글은 테스트 데이터"
}
}