Skip to content

451 — should check default week report with switching of clients

Description

Verifies that the individual client report on Reports → Clients supports switching between clients via the page-header client selector, and that each chosen client's summary and breakdowns recompute correctly for the default current-week range.

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 covering the current week.
  • Reports page is open at the Clients tab, client 1 row clicked, individual client-report page visible.

Steps

  1. Fetch the full list of clients from the API. Expected: all 4 seeded clients are returned.
  2. For each client in the list, open the client picker in the report header and select that client. Expected: the page title updates to the selected client's name and the individual client-report page is asserted visible.
  3. For the selected client, re-fetch its filtered data and the full time-records list. Expected: the individual-client summary header matches the API aggregate for that client inside the current week.
  4. Expected: the "By user", "By project" and "By tag" breakdowns for the selected client all match the API data for the current week.
  • Spec: playwright/tests/integration/reports.spec.ts (line 620)
  • Spec: playwright/tests/integration/reports.spec.ts (line 620)