Files
mercadodevida/work/artifacts/F-030/implementer.md
2026-08-17 22:23:10 +02:00

21 lines
1.0 KiB
Markdown

# Implementer — F-030 E2E suite for critical flows
## Summary
Added E2E test `e2e/checkout-flow.itest.ts` exercising the full happy path (register → login admin → seed shipping/price/inventory → add to cart → checkout → assert order AWAITING_PAYMENT + reserved stock) plus empty-cart 409 failure path.
## Files changed
- `project/src/app/tests/e2e/checkout-flow.itest.ts`
## Acceptance evidence
- AC1 happy path passes end-to-end against real PostgreSQL; order state and stock reservation asserted.
- AC2 empty cart returns 409 CHECKOUT_CART_EMPTY without creating an order.
- AC3 business flow test passes with seeded data.
## Commands run
- cd project && npm run lint/typecheck/build/test passed (123 passed)
- DB integration: TEST_DATABASE_URL=... npm run test:integration -- e2e/checkout-flow.itest passed (15 files, 55 tests)
- ./scripts/verify.sh passed
## Notes
- Reuses existing db-test-support helpers and buildApp; no new dependencies.
- audit_log table exists after migration 021; assertion checks table is queryable.