007 — should handle multiple proformas and drawn amounts (branch 2025012)¶
Description¶
Complex scenario combining multiple invoice types, proformas, credit notes and drawdowns. Validates end-to-end aggregation under interacting states.
Preconditions¶
- Clean database (
TestControl.cleanDb()) - User logged in with ADMIN role
- Contract created via API with branch-specific mock data loaded from
receipts-branch-*.json - Contract price 800 000 Kč, branch 2025012
- Mock
receipts-branch-2025012_complex.json(8 mixed documents)
Steps¶
- Navigate to contract detail — Expected: 8 invoice rows displayed
- Assert per-row displayed amounts — Expected: Match payload
- Assert aggregated costs/proformas/differences — Expected: All computed correctly with drawdowns and credit notes
Related¶
- Spec:
tests/e2e/tests/contracts.spec.ts
Media¶
