Test cases: Admin web
Nội dung này hiện chưa có sẵn bằng ngôn ngữ của bạn.
Document control
Section titled “Document control”| Version | Date (UTC) | Summary |
|---|---|---|
| 1.0.0 | 2026-05-13 | Initial UI scenario backlog |
| 1.1.0 | 2026-05-13 | Linked admin catalog + B2B orders TC ids; expanded shell flows |
| 1.2.0 | 2026-05-13 | Pointers to org/RBAC, inventory & suppliers sheets (TC-AWU-040+) |
- App:
apps/admin-web(Frontend applications). - Pair with API sheets: Admin catalog & products, Admin B2B orders.
- Pair with console sheets: Admin organization & RBAC, Admin inventory & suppliers.
Scenario catalogue
Section titled “Scenario catalogue”Shell & auth UX
Section titled “Shell & auth UX”| ID | Class | Scenario | Automation |
|---|---|---|---|
| TC-AWU-001 | Happy | Sign-in → dashboard home; KPI tiles load | E2E* |
| TC-AWU-002 | Unhappy | Module missing — deep link to catalog shows 403 error state | E2E* |
| TC-AWU-003 | Unhappy | Session expiry → redirect login with return path | E2E* |
Catalog UI (maps to TC-ACP-*)
Section titled “Catalog UI (maps to TC-ACP-*)”| ID | Class | Scenario | Automation |
|---|---|---|---|
| TC-AWU-010 | Happy | Product list pagination + sort + search (see TC-ACP-001–006) | E2E* |
| TC-AWU-011 | Unhappy | Batch bar: select > max ids → toast, no request (see TC-ACP-021) | E2E* |
| TC-AWU-012 | Happy | Product create form: RHF + Zod + shared FormField | E2E* |
Orders UI (maps to TC-AOB-*)
Section titled “Orders UI (maps to TC-AOB-*)”| ID | Class | Scenario | Automation |
|---|---|---|---|
| TC-AWU-020 | Happy | Orders tab + filter + stats (see TC-AOB-001–012) | E2E* |
| TC-AWU-021 | Happy | Order detail + receipt modal + tip_signature toggle (TC-AOB-024–025) | E2E* |
| TC-AWU-022 | Unhappy | Order detail 404 route shows not found | E2E* |
Resilience
Section titled “Resilience”| ID | Class | Scenario | Automation |
|---|---|---|---|
| TC-AWU-030 | Unhappy | Network offline → TanStack error + retry affordance | E2E* |
Organization, inventory, suppliers (maps to TC-AOR-* / TC-AIS-*)
Section titled “Organization, inventory, suppliers (maps to TC-AOR-* / TC-AIS-*)”| ID | Class | Scenario | Automation |
|---|---|---|---|
| TC-AWU-040 | Happy | Managers → stores → vendors nav smoke; deep links match Admin organization & RBAC | E2E* |
| TC-AWU-041 | Happy | Inventory hub: warehouses → stocks → lots → adjustments (see TC-AIS-001–022) | E2E* |
| TC-AWU-042 | Happy | Suppliers list + detail (see TC-AIS-030–032) | E2E* |
| TC-AWU-043 | Unhappy | Zone-restricted admin hits cross-zone inventory URL → 403 UX | E2E* |
Coverage checklist (this sheet)
Section titled “Coverage checklist (this sheet)”- Each TC-AWU- row references backing TC-ACP- / TC-AOB- API cases where applicable
- TC-AWU-040+ stay aligned with TC-AOR- / TC-AIS- rows (no duplicate ids)
- Playwright under
apps/admin-web/e2e/created when first E2E✓ lands - i18n toasts for new admin flows covered
Parent index: System test cases (index)