id: 026 module: retainage name: ui-create-retainage-data-via-ui-and-verify-expiration-highlighting title: UI: Create retainage data via UI and verify expiration highlighting tags: [module:retainage, status:automated, priority:high] priority: high status: automated spec: tests/e2e/tests/retainage.spec.ts
026 — UI: Create retainage data via UI and verify expiration highlighting¶
Description¶
End-to-end UI flow: create received order + work-handover protocol through the UI, then verify invoice appears on the Retainage page highlighted red with correctly computed totals.
Preconditions¶
- Clean database (
TestControl.cleanDb()) - User logged in with ADMIN and ACCOUNTING roles
- User signature set up
- Customer
UI Test Customer s.r.o.and contractUI Test - Retainage Expiration(121 000 Kč) created via API test-document.pdfavailable for upload- issuedDate = 1 day past expiration threshold
Steps¶
- Create received order through UI with externalNumber
OBJ-EXPIRED, totalPrice 121 000, 5%/5% retainage, 5-year warranty — Expected: Order saved - Create protocol, generate document, upload confirmation PDF — Expected: Protocol completed
- Navigate to Retainage page — Expected: FV2025020007 visible and highlighted RED
- Assert totals — Expected: Retainage 121 000 Kč; all summary sums correct
Related¶
- Spec:
tests/e2e/tests/retainage.spec.ts