Skip to content

448 — should check ${variant.name} report

Description

Verifies the Reports → Clients tab (Simple reports view) summary and client list for each period variant (default week, last week, next week, whole year). For every variant the UI totals and the per-client aggregates must match the data fetched from the API for that range.

Preconditions

  • Signed-in tenant owner Octavia Wolff on a 1920×1080 viewport.
  • Seeded test data: 4 clients (each tagged differently), 4 projects, 6 tasks and 11 time records linked across the clients (some TRs have no project, some have no client) over the current/neighbouring weeks and wider year.
  • Reports page is open with the Clients tab active.

Steps

  1. Switch the report's date range to the variant under test (default week / last week / next week / whole year). Expected: the date range above the table updates accordingly.
  2. Re-fetch time records and clients from the API. Expected: the summary header matches the aggregate of API time records inside the variant's window, grouped by client.
  3. Expected: the Clients table shows 4 rows — every seeded client is listed.
  4. Build the expected per-client summaries (client title, hours, billable, cost, profit) from the API. Expected: each client row matches its expected summary.
  • Spec: playwright/tests/integration/reports.spec.ts (line 570)
  • Spec: playwright/tests/integration/reports.spec.ts (line 570)