385 — should check when user have time records ultimate permission¶
Description¶
Verifies that an employee with the "Time records ultimate" team role can see and edit the owner's time record alongside their own once they belong to the same team.
Preconditions¶
- A signed-in owner plus an invited employee.
- A team is created and the employee is added to it via API; the role grants Time records ultimate within the team.
- Seed data: two projects with one task each and one time record per project (one for the employee, one for the owner). The owner's time record id is captured for direct selection.
Steps¶
- As the owner, go to Roles → Team roles, add a team role with the test title, toggle "Time records ultimate" on, then save. Expected: the new team role appears in the team roles list.
- Add the employee to the team with this role via API. Expected: the API confirms 1 member added.
- Reset the session and sign in as the employee. Open Time tracking. Expected: the area shows the standard 5 tabs ("Dashboard", "Calendar", "Timesheet", "Time entries", "Team calendar").
- View the personal calendar. Expected: 1 time record (the employee's own).
- Switch to the Users calendar. Expected: 2 time records are visible and the avatar list shows both employee and owner.
- Double-click the owner's time record event. Expected: the time record modal opens showing the owner's name.
- Set a client description "test" and click Save. Expected: an "Updated" confirmation popup appears — proving cross-user edit within team scope.
Related¶
- Spec:
playwright/tests/integration/permissions.spec.ts(line 757)