| 05-visibility-and-client-portal |
05 |
testing |
| e2e |
| integration |
| billing |
| collection |
| remittance |
| ticket |
| job-order |
| dashboard |
| trial-balance |
|
| phase |
provides |
| 05-01 |
Dashboard metric aggregation service |
|
| phase |
provides |
| 05-02 |
Portal auth for subscriber identification |
|
| phase |
provides |
| 05-03 |
Ticket submission and comment threads |
|
| phase |
provides |
| 02-03 |
Subscriber service (createSubscriber) |
|
| phase |
provides |
| 02-04 |
Billing service (generateInvoiceForSubscriber) |
|
| phase |
provides |
| 02-05 |
Payment service (recordPayment with FIFO allocation) |
|
| phase |
provides |
| 03-01 |
Collector service (recordCollection with zone enforcement) |
|
| phase |
provides |
| 03-02 |
Remittance service (createRemittance, verifyRemittance) |
|
| phase |
provides |
| 03-03 |
Ticket service (createTicket, transitionTicketStatus) |
|
| phase |
provides |
| 03-04 |
Job order service (createJobOrder, updateJobOrderStatus) |
|
|
| End-to-end workflow tests proving system coherence (INFRA-04) |
| Self-verifying accounting (trial balance balanced after every workflow) |
| Dashboard metric validation from real workflow data |
|
|
| added |
patterns |
|
|
| Sequential e2e test pattern: describe blocks with numbered tests that share state |
| Comprehensive cleanup order covering all 25+ models in correct FK dependency order |
|
|
| created |
modified |
| src/lib/__tests__/integration/e2e-workflows.test.ts |
|
|
|
| E2E tests use service functions directly (not HTTP) to test integration layer |
| Tests share state via describe-scoped variables (sequential story pattern) |
| Comprehensive cleanup order handles all subsystems in single afterAll |
|
| Integration test directory: src/lib/__tests__/integration/ for cross-service tests |
|
3min |
2026-03-05 |