Skip to content

id: 021 module: retainage name: expiration-row-highlighted-red-when-after-2-month-threshold title: Expiration: row highlighted RED when AFTER 2-month threshold tags: [module:retainage, status:automated, priority:high] priority: high status: automated spec: tests/e2e/tests/retainage.spec.ts


021 — Expiration: row highlighted RED when AFTER 2-month threshold

Description

Validates that an invoice row is highlighted red when current date is within the 2-month warranty-expiration warning window.

Preconditions

  • Clean database (TestControl.cleanDb())
  • User logged in with ADMIN and ACCOUNTING roles
  • User signature set up
  • Contract 121 000 Kč, branch 2025032; 5%/5% retainage; work handover confirmed
  • Invoice FV2025020007 matches OBJ-EXPIRED; issuedDate puts threshold 1 day in the PAST

Steps

  1. Navigate to Retainage page — Expected: Row for FV2025020007 exists
  2. Assert row IS highlighted red (assertInvoiceRowExpired) — Expected: Red highlight applied
  3. Assert totals match formula — Expected: Same values as non-expired case; only highlight differs
  • Spec: tests/e2e/tests/retainage.spec.ts

Media

screenshot