Admin CRM — Setting Email Use Cases
A. Document controlA. Kiểm soát tài liệu
| Doc ID | CPG-UC-CPG-CRM_UC_Setting_Email |
|---|---|
| VersionPhiên bản | 1.0 |
| StatusTrạng thái | Draft |
| Owner | CPG BA / Architecture |
| AudienceĐối tượng | BA, QA, Product, Frontend, Backend |
| ClassificationPhân loại | Internal |
| Effective dateNgày hiệu lực | 01/12/2026 |
| Related docs | CRM Setting Email TC · CRM Setting Email FSD |
B. Version historyB. Lịch sử phiên bản
| Version | Date | Author | ChangesThay đổi |
|---|---|---|---|
| 1.0 | 01/12/2026 | Khoa Trinh | Version 1.0 |
C. Table of contentsC. Mục lục
D. ContentD. Nội dung
Catalog
| UC ID | Name | Linked TC count | Categories |
|---|---|---|---|
| UC-ET-01 | Load Email Template list | 3 | Function, Security |
| UC-ET-02 | Search template by name | 2 | Function, Validation |
| UC-ET-03 | Open email preview | 5 | Function |
| UC-ET-04 | Open edit template modal | 12 | Function, Validation |
| UC-ET-05 | Display available variables | 5 | Function, Validation |
| UC-ET-07 | Non-admin access restriction | 2 | Audit, Security |
Use cases
UC-ET-01 — Load Email Template list
- Actor: Admin CRM user (role per RBAC)
- Goal: Load Email Template list
- Primary BR (from TC): 3.1.1
Linked test cases
ET-LIST-01— Load Email Template list (Function)ET-LIST-02— Display template metadata (Function)ET-SEC-01— Admin can edit templates (Security)
Representative preconditions
Email templates exist
Representative main flow
View any template card
Expected outcome
Subject, category, variables, and actions are visible
UC-ET-02 — Search template by name
- Actor: Admin CRM user (role per RBAC)
- Goal: Search template by name
- Primary BR (from TC): 3.1.1
Linked test cases
ET-LIST-03— Search template by name (Function)ET-LIST-04— Empty search result (Validation)
Representative preconditions
Templates available
Representative main flow
Enter keyword in search box
Expected outcome
Only matching templates are displayed
UC-ET-03 — Open email preview
- Actor: Admin CRM user (role per RBAC)
- Goal: Open email preview
- Primary BR (from TC): 3.1.3
Linked test cases
ET-PREV-01— Open email preview (Function)ET-PREV-02— Render HTML content (Function)ET-PREV-03— Variable placeholders display (Function)ET-PREV-04— Close preview modal (Function)ET-PREV-05— Preview long content (Function)
Representative preconditions
HTML body exists
Representative main flow
View preview
Expected outcome
Email renders correctly with styles
UC-ET-04 — Open edit template modal
- Actor: Admin CRM user (role per RBAC)
- Goal: Open edit template modal
- Primary BR (from TC): 3.1.4
Linked test cases
ET-EDIT-01— Open edit template modal (Function)ET-EDIT-02— Load existing subject (Function)ET-EDIT-03— Load HTML content (Function)ET-EDIT-04— Modify email subject (Function)ET-EDIT-05— Modify HTML content (Function)ET-EDIT-06— Cancel edit (Function)ET-EDIT-07— Scroll HTML editor (Function)ET-SAVE-01— Save template successfully (Function)ET-SAVE-02— Required subject empty (Validation)ET-SAVE-03— Empty email body (Validation)ET-SAVE-04— HTML syntax tolerance (Function)ET-SAVE-05— Save button loading (Function)
Representative preconditions
Template exists
Representative main flow
Click "Edit"
Expected outcome
Edit modal opens
UC-ET-05 — Display available variables
- Actor: Admin CRM user (role per RBAC)
- Goal: Display available variables
- Primary BR (from TC): 3.1.5
Linked test cases
ET-VAR-01— Display available variables (Function)ET-VAR-02— Copy variable to clipboard (Function)ET-VAR-03— Insert variable manually (Function)ET-VAR-04— Invalid variable handling (Validation)ET-VAR-05— Multiple variables usage (Function)
Representative preconditions
Template supports variables
Representative main flow
Open edit modal
Expected outcome
Variable list displayed
UC-ET-07 — Non-admin access restriction
- Actor: Admin CRM user (role per RBAC)
- Goal: Non-admin access restriction
- Primary BR (from TC): 3.1.7
Linked test cases
Representative preconditions
Limited role user
Representative main flow
Access Email Templates
Expected outcome
Edit disabled or navigate to home page