Skip to content

450 — should check ${variant.name} report

Description

Verifies the per-client detail report (Reports → Clients → client 1, the Individual reports view) for each period variant (default week, last week, next week, whole year). For every variant the individual summary and the three breakdown tables (by user, project, tag) must match the client-specific time records returned by the API.

Preconditions

  • Signed-in tenant owner Octavia Wolff on a 1920×1080 viewport.
  • Seeded test data: 4 clients, 4 projects, 6 tasks, 3 tags and 11 time records.
  • Reports page is open at the Clients tab, client 1 (first seeded client, tagged with tag1 and tag2) row clicked, individual client-report page asserted visible.

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 report updates accordingly.
  2. Re-fetch client 1's filtered data and the full time-records list from the API. Expected: the individual-client summary header matches the API aggregate for client 1 inside the variant's window.
  3. Expected: the "By user" breakdown lists every user that logged time on client 1 in the window with matching totals.
  4. Expected: the "By project" breakdown lists every project belonging to client 1 with logged time in the window with matching totals.
  5. Expected: the "By tag" breakdown lists every tag attached to client 1's time records in the window with matching totals.
  • Spec: playwright/tests/integration/reports.spec.ts (line 606)
  • Spec: playwright/tests/integration/reports.spec.ts (line 606)