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¶
- Fetch the full list of tenant users from the API. Expected: the user list includes both the owner and the invited employee.
- 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.
- 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.
- Expected: the "By client" breakdown for the selected user matches the API data for the current week.
- Expected: the "By project", "By task" and "By tag" breakdowns for the selected user all match the API data for the current week.
Related¶
- Spec:
playwright/tests/integration/reports.spec.ts(line 422)
Related¶
- Spec:
playwright/tests/integration/reports.spec.ts(line 422)