Skip to content

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 contract UI Test - Retainage Expiration (121 000 Kč) created via API
  • test-document.pdf available for upload
  • issuedDate = 1 day past expiration threshold

Steps

  1. Create received order through UI with externalNumber OBJ-EXPIRED, totalPrice 121 000, 5%/5% retainage, 5-year warranty — Expected: Order saved
  2. Create protocol, generate document, upload confirmation PDF — Expected: Protocol completed
  3. Navigate to Retainage page — Expected: FV2025020007 visible and highlighted RED
  4. Assert totals — Expected: Retainage 121 000 Kč; all summary sums correct
  • Spec: tests/e2e/tests/retainage.spec.ts

Media