Skip to content

id: 020 module: retainage name: expiration-row-not-highlighted-when-before-2-month-threshold title: Expiration: row NOT highlighted when BEFORE 2-month threshold tags: [module:retainage, status:automated, priority:high] priority: high status: automated spec: tests/e2e/tests/retainage.spec.ts


020 — Expiration: row NOT highlighted when BEFORE 2-month threshold

Description

Validates that an invoice row is not highlighted red when current date is before the 2-month warranty-expiration warning threshold.

Preconditions

  • Clean database (TestControl.cleanDb())
  • User logged in with ADMIN and ACCOUNTING roles
  • User signature set up
  • Contract 121 000 Kč, branch 2025031; 5%/5% retainage; 5-year warranty
  • Work handover protocol confirmed
  • Invoice FV2025020006 matches externalNumber OBJ-NOT-EXPIRED; issuedDate puts threshold 1 day in the FUTURE

Steps

  1. Navigate to Retainage page — Expected: Row for FV2025020006 exists
  2. Assert row NOT highlighted (assertInvoiceRowNotExpired) — Expected: No red highlight
  3. Assert summary values match calculateRetainageValuesExpected: Retainage total 121 000 Kč; claim and remaining match formula
  • Spec: tests/e2e/tests/retainage.spec.ts

Media

screenshot