Test cases: In-app notifications (admin & vendor)
Document control
Section titled “Document control”| Version | Date (UTC) | Summary |
|---|---|---|
| 1.0.0 | 2026-05-13 | Initial sheet; align with admin + vendor notification guides |
- Admin: Notifications (Admin) —
admin_notificationssurface. - Vendor: Notifications & help settings — merged
notifications+user_notifications, recipient audience (vendor_account,vendor_employee, etc.).
Scenario catalogue
Section titled “Scenario catalogue”Vendor feed
Section titled “Vendor feed”| ID | Class | Scenario | Automation |
|---|---|---|---|
| TC-NTF-001 | Happy | List merges broadcast rows with user_notifications scoped to vendor_id | Unit + E2E* |
| TC-NTF-002 | Happy | Owner sees vendor_account rows with null recipient_user_id | Unit |
| TC-NTF-003 | Happy | Employee sees vendor_employee rows for their sub when targeted | Unit |
| TC-NTF-004 | Unhappy | Row with recipient_user_id ≠ JWT sub hidden from employee | Unit |
| TC-NTF-005 | Unhappy | customer / delivery_man audience hidden from vendor merged list | Unit |
Prefs & writers
Section titled “Prefs & writers”| ID | Class | Scenario | Automation |
|---|---|---|---|
| TC-NTF-010 | Happy | Store prefs suppress category (e.g. low stock off) → writer skips insert | Unit |
| TC-NTF-011 | Happy | Order completed notification respects owner vs employee push prefs | Unit |
| TC-NTF-012 | Unhappy | Misconfigured prefs default safe (no duplicate owner rows) | Unit |
Admin notifications
Section titled “Admin notifications”| ID | Class | Scenario | Automation |
|---|---|---|---|
| TC-NTF-020 | Happy | Admin list loads with filters + pagination | E2E* |
| TC-NTF-021 | Unhappy | Zone-limited admin cannot see out-of-zone notification payload | Unit |
| ID | Class | Scenario | Automation |
|---|---|---|---|
| TC-NTF-030 | Happy | Mark read / navigate to deep link from toast | E2E* |
| TC-NTF-031 | Unhappy | Stale feed after mutation → refetch or optimistic rollback | E2E* |
Coverage checklist (this sheet)
Section titled “Coverage checklist (this sheet)”- Constants from
user-notification-recipient/ visibility util mirrored in TC rows - New writer (
PosService,VendorOrderInAppNotificationsService, …) adds a TC under Prefs & writers - i18n keys for empty / error states
Parent index: System test cases (index) · Vendor backend: Vendor backend