Admin CRM — Auth Test Cases
A. Document controlA. Kiểm soát tài liệu
| Doc ID | CPG-TC-CPG-CRM_Auth_TestCases |
|---|---|
| VersionPhiên bản | 1.0 |
| StatusTrạng thái | Draft |
| Owner | CPG BA / Architecture |
| AudienceĐối tượng | QA, Product, Backend, Frontend |
| ClassificationPhân loại | Internal |
| Effective dateNgày hiệu lực | 01/12/2026 |
| Related docs | CRM Auth UC · CRM Auth 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
Index
| Test ID | Test name | BR | UC | Category |
|---|---|---|---|---|
| AUTH-LOGIN-001 | Login with valid credentials (no 2FA) | 3.1.1 |
UC-AUTH-01 | Function |
| AUTH-LOGIN-002 | Login with valid credentials (2FA enabled) | 3.1.2 |
UC-AUTH-02 | Security |
| AUTH-LOGIN-003 | Force user to change pwd at first time login | 3.1.4 |
UC-AUTH-01 | Security |
| AUTH-LOGIN-004 | Login with invalid password | 3.1.5 |
UC-AUTH-01 | Security |
| AUTH-LOGIN-005 | Login with unregistered email | 3.1.1 |
UC-AUTH-01 | Function |
| AUTH-LOGIN-006 | Email validation – invalid format | 3.1.1 |
UC-AUTH-01 | Validation |
| AUTH-LOGIN-007 | Required fields validation – empty email | 3.1.1 |
UC-AUTH-01 | Validation |
| AUTH-LOGIN-008 | Required fields validation – empty password | 3.1.1 |
UC-AUTH-01 | Validation |
| AUTH-LOGIN-009 | Password masking | 3.1.1 |
UC-AUTH-01 | Security |
| AUTH-LOGIN-010 | Remember me unchecked default | 3.1.1 |
UC-AUTH-01 | Function |
| AUTH-LOGIN-011 | Remember me persists session | 3.1.1 |
UC-AUTH-01 | Function |
| AUTH-LOGIN-012 | Login button disabled while processing | 3.1.1 |
UC-AUTH-01 | Function |
| AUTH-LOGIN-013 | Rate limiting / brute force protection | 3.1.5 |
UC-AUTH-01 | Security |
| AUTH-LOGIN-014 | Forgot password | 3.1.3 |
UC-AUTH-03 | Function |
| AUTH-LOGIN-015 | Reset password | 3.1.3 |
UC-AUTH-03 | Function |
Test cases
AUTH-LOGIN-001
| Field | Value |
|---|---|
| Test ID | AUTH-LOGIN-001 |
| Business Requirement ID | 3.1.1 |
| Category | Function |
| Use Case ID | UC-AUTH-01 |
| Test name | Login with valid credentials (no 2FA) |
| Preconditions | User exists, 2FA disabled |
| Data | email=valid, pwd=valid |
| Steps | Open Sign In screen -> Enter email -> Enter password -> Click Sign In |
| Expected result | User authenticated, redirected to default landing page (e.g., Dashboard) |
AUTH-LOGIN-002
| Field | Value |
|---|---|
| Test ID | AUTH-LOGIN-002 |
| Business Requirement ID | 3.1.2 |
| Category | Security |
| Use Case ID | UC-AUTH-02 |
| Test name | Login with valid credentials (2FA enabled) |
| Preconditions | User exists, 2FA enabled |
| Data | email=valid, pwd=valid |
| Steps | Open Sign In -> Enter email/password -> Click Sign In |
| Expected result | 2FA modal appears; user is NOT logged in yet |
AUTH-LOGIN-003
| Field | Value |
|---|---|
| Test ID | AUTH-LOGIN-003 |
| Business Requirement ID | 3.1.4 |
| Category | Security |
| Use Case ID | UC-AUTH-01 |
| Test name | Force user to change pwd at first time login |
| Preconditions | User exists, never sign in before |
| Data | email=valid, pwd=valid |
| Steps | Open Sign In -> Enter email/password -> Click Sign In |
| Expected result | User force to change pwd at first time login, can not navigate to any screen if pwd was not changed |
AUTH-LOGIN-004
| Field | Value |
|---|---|
| Test ID | AUTH-LOGIN-004 |
| Business Requirement ID | 3.1.5 |
| Category | Security |
| Use Case ID | UC-AUTH-01 |
| Test name | Login with invalid password |
| Preconditions | User exists |
| Data | email=valid, pwd=invalid |
| Steps | Open Sign In -> Enter email -> Enter wrong password -> Click Sign In |
| Expected result | Error shown (invalid credentials); no session created |
AUTH-LOGIN-005
| Field | Value |
|---|---|
| Test ID | AUTH-LOGIN-005 |
| Business Requirement ID | 3.1.1 |
| Category | Function |
| Use Case ID | UC-AUTH-01 |
| Test name | Login with unregistered email |
| Preconditions | None |
| Data | email=unknown, pwd=any |
| Steps | Open Sign In -> Enter unknown email -> Enter password -> Click Sign In |
| Expected result | Error shown; no session created |
AUTH-LOGIN-006
| Field | Value |
|---|---|
| Test ID | AUTH-LOGIN-006 |
| Business Requirement ID | 3.1.1 |
| Category | Validation |
| Use Case ID | UC-AUTH-01 |
| Test name | Email validation – invalid format |
| Preconditions | None |
| Data | email=abc, pwd=any |
| Steps | Open Sign In -> Enter invalid email -> Enter password -> Click Sign In |
| Expected result | Validation message; Sign In blocked |
AUTH-LOGIN-007
| Field | Value |
|---|---|
| Test ID | AUTH-LOGIN-007 |
| Business Requirement ID | 3.1.1 |
| Category | Validation |
| Use Case ID | UC-AUTH-01 |
| Test name | Required fields validation – empty email |
| Preconditions | None |
| Data | email=empty, pwd=valid |
| Steps | Open Sign In -> Leave email blank -> Enter password -> Click Sign In |
| Expected result | Validation message; Sign In blocked |
AUTH-LOGIN-008
| Field | Value |
|---|---|
| Test ID | AUTH-LOGIN-008 |
| Business Requirement ID | 3.1.1 |
| Category | Validation |
| Use Case ID | UC-AUTH-01 |
| Test name | Required fields validation – empty password |
| Preconditions | None |
| Data | email=valid, pwd=empty |
| Steps | Open Sign In -> Enter email -> Leave password blank -> Click Sign In |
| Expected result | Validation message; Sign In blocked |
AUTH-LOGIN-009
| Field | Value |
|---|---|
| Test ID | AUTH-LOGIN-009 |
| Business Requirement ID | 3.1.1 |
| Category | Security |
| Use Case ID | UC-AUTH-01 |
| Test name | Password masking |
| Preconditions | None |
| Data | N/A |
| Steps | Open Sign In -> Type password |
| Expected result | Password characters are masked; optional eye icon toggles visibility if supported |
AUTH-LOGIN-010
| Field | Value |
|---|---|
| Test ID | AUTH-LOGIN-010 |
| Business Requirement ID | 3.1.1 |
| Category | Function |
| Use Case ID | UC-AUTH-01 |
| Test name | Remember me unchecked default |
| Preconditions | None |
| Data | N/A |
| Steps | Open Sign In |
| Expected result | Remember me is unchecked by default (if design requires) |
AUTH-LOGIN-011
| Field | Value |
|---|---|
| Test ID | AUTH-LOGIN-011 |
| Business Requirement ID | 3.1.1 |
| Category | Function |
| Use Case ID | UC-AUTH-01 |
| Test name | Remember me persists session |
| Preconditions | User exists |
| Data | RememberMe=checked |
| Steps | Login with Remember me checked -> Close browser -> Reopen app |
| Expected result | User remains logged in per defined session policy |
AUTH-LOGIN-012
| Field | Value |
|---|---|
| Test ID | AUTH-LOGIN-012 |
| Business Requirement ID | 3.1.1 |
| Category | Function |
| Use Case ID | UC-AUTH-01 |
| Test name | Login button disabled while processing |
| Preconditions | None |
| Data | N/A |
| Steps | Click Sign In -> Observe UI |
| Expected result | Button shows loading/disabled; prevents double submission |
AUTH-LOGIN-013
| Field | Value |
|---|---|
| Test ID | AUTH-LOGIN-013 |
| Business Requirement ID | 3.1.5 |
| Category | Security |
| Use Case ID | UC-AUTH-01 |
| Test name | Rate limiting / brute force protection |
| Preconditions | User exists |
| Data | repeated wrong pwd |
| Steps | Attempt login with wrong password repeatedly |
| Expected result | System throttles/locks per policy; user sees appropriate message |
AUTH-LOGIN-014
| Field | Value |
|---|---|
| Test ID | AUTH-LOGIN-014 |
| Business Requirement ID | 3.1.3 |
| Category | Function |
| Use Case ID | UC-AUTH-03 |
| Test name | Forgot password |
| Preconditions | User exists |
| Data | wedev.space@outlook.com |
| Steps | Open Sign in screen -> Click Forgot Password -> Enter email -> Click Reset Password |
| Expected result | Receive email with link to reset password |
AUTH-LOGIN-015
| Field | Value |
|---|---|
| Test ID | AUTH-LOGIN-015 |
| Business Requirement ID | 3.1.3 |
| Category | Function |
| Use Case ID | UC-AUTH-03 |
| Test name | Reset password |
| Preconditions | User exists, received email with reset password link |
| Data | — |
| Steps | Click on Reset password link -> Enter new password -> Use new password to sign in |
| Expected result | Password change successful, Can sign in with new password |