Admin CRM — Profile Use Cases

A. Document controlA. Kiểm soát tài liệu

Doc IDCPG-UC-CPG-CRM_UC_Profile
VersionPhiên bản1.0
StatusTrạng tháiDraft
OwnerCPG BA / Architecture
AudienceĐối tượngBA, QA, Product, Frontend, Backend
ClassificationPhân loạiInternal
Effective dateNgày hiệu lực01/12/2026
Related docs CRM Profile TC · CRM Profile FSD · 02A CRM Profile

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-PRF-01 View profile information 7 Function, Security
UC-PRF-02 Upload valid avatar 3 Function, Validation
UC-PRF-03 View notification list 3 Function, NFR
UC-PRF-04 Mark notification as read 3 Function
UC-PRF-05 Change password (valid) 5 Function, Validation
UC-PRF-06 View 2FA setup 6 Security
UC-PRF-07 View current session 3 Function

Use cases

UC-PRF-01 — View profile information

  • Actor: Admin CRM user (role per RBAC)
  • Goal: View profile information
  • Primary BR (from TC): 3.1.1

Linked test cases

  • PRF-01 — View profile information (Function)
  • PRF-02 — Update first & last name (Function)
  • PRF-03 — Update phone number (Function)
  • PRF-07 — Read-only system fields (Security)
  • PC-01 — Create Phishing Code (Function)
  • PC-02 — Update Phishing Code (Function)
  • PC-03 — Delete Phishing Code (Function)

Representative preconditions

Phishing Code was set

Representative main flow

Click Delete Code

Expected outcome

Phishing code was removed

UC-PRF-02 — Upload valid avatar

  • Actor: Admin CRM user (role per RBAC)
  • Goal: Upload valid avatar
  • Primary BR (from TC): 3.1.1

Linked test cases

  • PRF-04 — Upload valid avatar (Function)
  • PRF-05 — Upload invalid avatar format (Validation)
  • PRF-06 — Upload avatar exceeding size (Validation)

Representative preconditions

JPG/PNG < 2MB

Representative main flow

Upload avatar -> Save

Expected outcome

Avatar updated successfully

UC-PRF-03 — View notification list

  • Actor: Admin CRM user (role per RBAC)
  • Goal: View notification list
  • Primary BR (from TC): 3.1.2

Linked test cases

  • NOT-01 — View notification list (Function)
  • NOT-02 — Unread notification indicator (Function)
  • NOT-06 — Pagination works (NFR)

Representative preconditions

User logged in

Representative main flow

Open Notifications tab

Expected outcome

Notifications list displayed

UC-PRF-04 — Mark notification as read

  • Actor: Admin CRM user (role per RBAC)
  • Goal: Mark notification as read
  • Primary BR (from TC): 3.1.2

Linked test cases

  • NOT-03 — Mark notification as read (Function)
  • NOT-04 — Delete notification (Function)
  • NOT-05 — Mark all as read (Function)

Representative preconditions

Any notification exists

Representative main flow

Click Delete icon

Expected outcome

Notification removed

UC-PRF-05 — Change password (valid)

  • Actor: Admin CRM user (role per RBAC)
  • Goal: Change password (valid)
  • Primary BR (from TC): 3.1.3

Linked test cases

  • SEC-01 — Change password (valid) (Function)
  • SEC-02 — Wrong current password (Function)
  • SEC-03 — Weak new password (Validation)
  • SEC-04 — Password mismatch (Validation)
  • SEC-05 — Re-use password (Function)

Representative preconditions

User logged in

Representative main flow

New password = Current password

Expected outcome

Error displayed

UC-PRF-06 — View 2FA setup

  • Actor: Admin CRM user (role per RBAC)
  • Goal: View 2FA setup
  • Primary BR (from TC): 3.1.4

Linked test cases

  • 2FA-01 — View 2FA setup (Security)
  • 2FA-02 — Enable 2FA via QR (Security)
  • 2FA-03 — Enable 2FA via manual key (Security)
  • 2FA-04 — Invalid OTP (Security)
  • 2FA-05 — Cancel 2FA setup (Security)
  • 2FA-06 — Disable 2FA (Security)

Representative preconditions

2FA disabled

Representative main flow

Open Security tab

Expected outcome

QR code & manual key displayed

UC-PRF-07 — View current session

  • Actor: Admin CRM user (role per RBAC)
  • Goal: View current session
  • Primary BR (from TC): 3.1.5

Linked test cases

  • SES-01 — View current session (Function)
  • SES-02 — Sign out other sessions (Function)
  • SES-03 — Current session remains (Function)

Representative preconditions

User logged in

Representative main flow

Open Security tab

Expected outcome

Current session shown

E. ReferencesE. Tham chiếu