Files
sam-scenarios/crud-delete-freeboard.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

224 lines
6.0 KiB
JSON

{
"enabled": true,
"id": "crud-delete-freeboard",
"name": "자유게시판 CRUD 삭제 테스트",
"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테스트_삭제용_{timestamp}",
"content": "이 게시글은 E2E 테스트용으로 생성되었습니다."
},
"update": {
"title": "E2E테스트_수정완료_{timestamp}"
}
},
"steps": [
{
"id": 1,
"name": "메뉴 진입: 게시판 > 자유게시판",
"action": "menu_navigate",
"level1": "게시판",
"level2": "자유게시판",
"expected": {
"url_contains": "/boards/free",
"visible": ["자유게시판"]
}
},
{
"id": 2,
"phase": "CREATE",
"name": "[CREATE] 글쓰기 버튼 클릭",
"action": "click_if_exists",
"target": "button:has-text('글쓰기'), button:has-text('등록'), button:has-text('작성')"
},
{
"id": 3,
"phase": "CREATE",
"name": "[CREATE] 작성 페이지 대기",
"action": "wait",
"duration": 2000
},
{
"id": 4,
"phase": "CREATE",
"name": "[CREATE] 제목 입력",
"action": "fill",
"target": "input#title, input[name='title'], input[placeholder*='제목']",
"value": "E2E테스트_삭제용_{timestamp}",
"clear": true
},
{
"id": 5,
"phase": "CREATE",
"name": "[CREATE] 내용 입력",
"action": "fill",
"target": "textarea#content, textarea[name='content'], [contenteditable='true']",
"value": "이 게시글은 E2E 테스트용으로 생성되었습니다.",
"clear": true
},
{
"id": 6,
"phase": "CREATE",
"name": "[CREATE] 필수 검증 #2: 게시글 등록",
"action": "click_if_exists",
"target": "button:has-text('등록'), button[type='submit']",
"verify": {
"no_error_page": true,
"toast": "등록|완료|성공"
},
"expected": "게시글 등록 완료"
},
{
"id": 7,
"phase": "CREATE",
"name": "[CREATE] 등록 후 대기",
"action": "wait",
"duration": 2000
},
{
"id": 8,
"phase": "CREATE",
"name": "[CREATE] 등록 결과 확인",
"action": "verify_detail",
"checks": [
"E2E테스트_삭제용 제목 표시"
],
"expected": "게시글 등록 확인"
},
{
"id": 9,
"phase": "UPDATE",
"name": "[UPDATE] 수정 버튼 클릭",
"action": "click_if_exists",
"target": "button:has-text('수정')"
},
{
"id": 10,
"phase": "UPDATE",
"name": "[UPDATE] 수정 페이지 대기",
"action": "wait",
"duration": 1500
},
{
"id": 11,
"phase": "UPDATE",
"name": "[UPDATE] 제목 수정",
"action": "fill",
"target": "input#title, input[name='title'], input[placeholder*='제목']",
"value": "E2E테스트_수정완료_{timestamp}",
"clear": true
},
{
"id": 12,
"phase": "UPDATE",
"name": "[UPDATE] 수정 저장",
"action": "click_if_exists",
"target": "button:has-text('저장'), button:has-text('수정'), button[type='submit']",
"verify": {
"toast": "수정|저장|완료|성공"
},
"expected": "수정 완료"
},
{
"id": 13,
"phase": "UPDATE",
"name": "[UPDATE] 수정 후 대기",
"action": "wait",
"duration": 2000
},
{
"id": 14,
"phase": "DELETE",
"name": "[DELETE] 삭제 버튼 클릭",
"action": "click_if_exists",
"target": "button:has-text('삭제')",
"expected": {
"confirm_dialog": true
}
},
{
"id": 15,
"phase": "DELETE",
"name": "[DELETE] 필수 검증 #6: 삭제 확인",
"action": "click_and_confirm",
"target": "button:has-text('확인'), button:has-text('삭제'), [role='alertdialog'] button:has-text('삭제')",
"verify": {
"toast": "삭제|완료|성공",
"redirect": "/boards/free"
},
"expected": "삭제 완료 및 목록 복귀"
},
{
"id": 16,
"phase": "DELETE",
"name": "[DELETE] 삭제 후 대기",
"action": "wait",
"duration": 2000
},
{
"id": 17,
"phase": "DELETE",
"name": "[DELETE] 삭제 결과 확인",
"action": "verify_detail",
"search": "E2E테스트_수정완료",
"expected": {
"row_exists": false,
"message": "테스트 게시글이 목록에서 제거됨"
}
}
],
"expectedAPIs": [
{
"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": [6, 12],
"criteria": "API 호출 + 성공 토스트 + 데이터 반영"
},
{
"id": 6,
"name": "삭제 기능",
"steps": [14, 15, 17],
"criteria": "DELETE API + 목록에서 제거"
}
],
"rollbackPlan": {
"onCreateFail": "영향 없음",
"onUpdateFail": "테스트 게시글 수동 삭제 필요",
"onDeleteFail": "테스트 게시글 수동 삭제 필요",
"cleanupRequired": "E2E테스트_ 접두사 게시글은 테스트 데이터"
}
}