Skip to content

id: 027 module: retainage name: ui-create-retainage-data-via-ui-vady-a-nedodelky-confirmation title: UI: Create retainage data via UI and verify highlighting — Vady a nedodělky tags: [module:retainage, status:automated, priority:high] priority: high status: automated spec: tests/e2e/tests/retainage.spec.ts


027 — UI: Create retainage data via UI and verify highlighting — Vady a nedodělky

Description

Tests the defects-and-incomplete-work protocol path. Warranty start date stays empty so row is NOT highlighted; retainageClaim = 90% × total = 108 900 Kč.

Preconditions

  • Clean database (TestControl.cleanDb())
  • User logged in with ADMIN and ACCOUNTING roles
  • User signature set up
  • Same as scenario 026 but with a defects (vady a nedodělky) upload branch; no final warranty confirmation

Steps

  1. Create received order + protocol with issuedDateWithIssues + defects PDF upload — Expected: Order and protocol completed
  2. Navigate to Retainage page — Expected: FV2025020007 visible and NOT highlighted (warranty not started)
  3. Assert claim = 108 900 Kč; remaining = 12 100 Kč — Expected: 10% withheld for defects
  • Spec: tests/e2e/tests/retainage.spec.ts

Media