refactor: [docs] 팀별 폴더 구조 재편 (공유/개발/프론트/기획)
- 개발팀 전용 폴더 dev/ 생성 (standards, guides, quickstart, changes, deploys, data, history, dev_plans 이동) - 프론트엔드 전용 폴더 frontend/ 생성 (api/ → frontend/api-specs/) - 기획팀 폴더 requests/ 생성 - plans/ → dev/dev_plans/ 이름 변경 - README.md 신규 (사람용 안내), INDEX.md 재작성 (Claude Code용) - resources.md 신규 (노션 링크용, assets/brochure 이관 예정) - CURRENT_WORKS.md 삭제, TODO.md → dev/ 이동 - 전체 참조 경로 업데이트 Co-Authored-By: Claude Opus 4.6 <noreply@anthropic.com>
This commit is contained in:
254
dev/dev_plans/flow-tests/notification-settings-flow.json
Normal file
254
dev/dev_plans/flow-tests/notification-settings-flow.json
Normal file
@@ -0,0 +1,254 @@
|
||||
{
|
||||
"name": "알림 설정 조회/수정 플로우",
|
||||
"description": "알림 설정 조회 → 그룹별 설정 변경 → 저장 → 확인 플로우 테스트",
|
||||
"version": "1.0",
|
||||
"config": {
|
||||
"baseUrl": "",
|
||||
"timeout": 30000,
|
||||
"stopOnFailure": true
|
||||
},
|
||||
"variables": {
|
||||
"user_id": "{{$env.FLOW_TESTER_USER_ID}}",
|
||||
"user_pwd": "{{$env.FLOW_TESTER_USER_PWD}}"
|
||||
},
|
||||
"steps": [
|
||||
{
|
||||
"id": "login",
|
||||
"name": "로그인",
|
||||
"method": "POST",
|
||||
"endpoint": "/api/v1/login",
|
||||
"body": {
|
||||
"user_id": "{{user_id}}",
|
||||
"user_pwd": "{{user_pwd}}"
|
||||
},
|
||||
"expect": {
|
||||
"status": [200],
|
||||
"jsonPath": {
|
||||
"$.access_token": "@isString"
|
||||
}
|
||||
},
|
||||
"extract": {
|
||||
"token": "$.access_token"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "get_settings",
|
||||
"name": "알림 설정 조회 (그룹 기반)",
|
||||
"method": "GET",
|
||||
"endpoint": "/api/v1/settings/notifications",
|
||||
"headers": {
|
||||
"Authorization": "Bearer {{login.token}}"
|
||||
},
|
||||
"expect": {
|
||||
"status": [200],
|
||||
"jsonPath": {
|
||||
"$.success": true
|
||||
}
|
||||
},
|
||||
"extract": {
|
||||
"original_notice_enabled": "$.data.notice.enabled",
|
||||
"original_approval_enabled": "$.data.approval.enabled"
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "update_notice_group",
|
||||
"name": "공지사항 그룹 설정 수정",
|
||||
"method": "PUT",
|
||||
"endpoint": "/api/v1/settings/notifications",
|
||||
"headers": {
|
||||
"Authorization": "Bearer {{login.token}}"
|
||||
},
|
||||
"body": {
|
||||
"notice": {
|
||||
"enabled": true,
|
||||
"notice": {
|
||||
"enabled": true,
|
||||
"email": true
|
||||
},
|
||||
"event": {
|
||||
"enabled": true,
|
||||
"email": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"expect": {
|
||||
"status": [200],
|
||||
"jsonPath": {
|
||||
"$.success": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "verify_notice_update",
|
||||
"name": "공지사항 설정 변경 확인",
|
||||
"method": "GET",
|
||||
"endpoint": "/api/v1/settings/notifications",
|
||||
"headers": {
|
||||
"Authorization": "Bearer {{login.token}}"
|
||||
},
|
||||
"expect": {
|
||||
"status": [200],
|
||||
"jsonPath": {
|
||||
"$.success": true,
|
||||
"$.data.notice.enabled": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "update_approval_group",
|
||||
"name": "결재 그룹 설정 수정",
|
||||
"method": "PUT",
|
||||
"endpoint": "/api/v1/settings/notifications",
|
||||
"headers": {
|
||||
"Authorization": "Bearer {{login.token}}"
|
||||
},
|
||||
"body": {
|
||||
"approval": {
|
||||
"enabled": true,
|
||||
"approvalRequest": {
|
||||
"enabled": true,
|
||||
"email": true
|
||||
},
|
||||
"draftApproved": {
|
||||
"enabled": true,
|
||||
"email": false
|
||||
},
|
||||
"draftRejected": {
|
||||
"enabled": true,
|
||||
"email": true
|
||||
},
|
||||
"draftCompleted": {
|
||||
"enabled": false,
|
||||
"email": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"expect": {
|
||||
"status": [200],
|
||||
"jsonPath": {
|
||||
"$.success": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "update_multiple_groups",
|
||||
"name": "여러 그룹 동시 수정",
|
||||
"method": "PUT",
|
||||
"endpoint": "/api/v1/settings/notifications",
|
||||
"headers": {
|
||||
"Authorization": "Bearer {{login.token}}"
|
||||
},
|
||||
"body": {
|
||||
"order": {
|
||||
"enabled": true,
|
||||
"salesOrder": {
|
||||
"enabled": true,
|
||||
"email": false
|
||||
},
|
||||
"purchaseOrder": {
|
||||
"enabled": true,
|
||||
"email": false
|
||||
}
|
||||
},
|
||||
"production": {
|
||||
"enabled": false,
|
||||
"safetyStock": {
|
||||
"enabled": false,
|
||||
"email": false
|
||||
},
|
||||
"productionComplete": {
|
||||
"enabled": false,
|
||||
"email": false
|
||||
}
|
||||
}
|
||||
},
|
||||
"expect": {
|
||||
"status": [200],
|
||||
"jsonPath": {
|
||||
"$.success": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "get_flat_settings",
|
||||
"name": "플랫 구조 알림 설정 조회",
|
||||
"method": "GET",
|
||||
"endpoint": "/api/v1/users/me/notification-settings",
|
||||
"headers": {
|
||||
"Authorization": "Bearer {{login.token}}"
|
||||
},
|
||||
"expect": {
|
||||
"status": [200],
|
||||
"jsonPath": {
|
||||
"$.success": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "update_single_type",
|
||||
"name": "단일 알림 유형 수정 (플랫)",
|
||||
"method": "PUT",
|
||||
"endpoint": "/api/v1/users/me/notification-settings",
|
||||
"headers": {
|
||||
"Authorization": "Bearer {{login.token}}"
|
||||
},
|
||||
"body": {
|
||||
"notification_type": "approval",
|
||||
"push_enabled": true,
|
||||
"email_enabled": false,
|
||||
"sms_enabled": false,
|
||||
"in_app_enabled": true
|
||||
},
|
||||
"expect": {
|
||||
"status": [200],
|
||||
"jsonPath": {
|
||||
"$.success": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "bulk_update",
|
||||
"name": "일괄 업데이트 (플랫)",
|
||||
"method": "PUT",
|
||||
"endpoint": "/api/v1/users/me/notification-settings/bulk",
|
||||
"headers": {
|
||||
"Authorization": "Bearer {{login.token}}"
|
||||
},
|
||||
"body": {
|
||||
"settings": [
|
||||
{
|
||||
"notification_type": "order",
|
||||
"push_enabled": true,
|
||||
"email_enabled": false
|
||||
},
|
||||
{
|
||||
"notification_type": "deposit",
|
||||
"push_enabled": true,
|
||||
"email_enabled": true
|
||||
}
|
||||
]
|
||||
},
|
||||
"expect": {
|
||||
"status": [200],
|
||||
"jsonPath": {
|
||||
"$.success": true
|
||||
}
|
||||
}
|
||||
},
|
||||
{
|
||||
"id": "final_verify",
|
||||
"name": "최종 설정 확인",
|
||||
"method": "GET",
|
||||
"endpoint": "/api/v1/settings/notifications",
|
||||
"headers": {
|
||||
"Authorization": "Bearer {{login.token}}"
|
||||
},
|
||||
"expect": {
|
||||
"status": [200],
|
||||
"jsonPath": {
|
||||
"$.success": true
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
Reference in New Issue
Block a user