Skip to content

440 — should check default week report with switching of users

Description

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

Preconditions

  • Signed-in tenant owner Octavia Wolff plus one invited employee (2 users total) on a 1920×1080 viewport.
  • Seeded test data: 4 clients, 4 projects, 6 tasks, 3 tags and 11 time records covering the current week (TR1–TR5, TR3, TR6, TR7 fall in this window).
  • Reports page is open at the Users tab, owner row clicked, individual user-report page visible.

Steps

  1. Fetch the full list of tenant users from the API. Expected: the user list includes both the owner and the invited employee.
  2. For each user in the list, open the user picker in the report header and select that user. Expected: the page title updates to the selected user's display name (or email if first/last name are missing) and the individual user-report page is asserted visible.
  3. For the selected user, re-fetch their filtered profile data and the full time-records list. Expected: the individual-user summary header matches the API aggregate for that user inside the current week.
  4. Expected: the "By client" breakdown for the selected user matches the API data for the current week.
  5. Expected: the "By project", "By task" and "By tag" breakdowns for the selected user all match the API data for the current week.
  • Spec: playwright/tests/integration/reports.spec.ts (line 422)
  • Spec: playwright/tests/integration/reports.spec.ts (line 422)