394 — should check when user have project detail ultimate permission¶
Description¶
Verifies that an employee with the "Project detail ultimate" project-scoped role on a single project can edit both time and price budgets on Project details, but task budgets remain read-only (because task edits need "All tasks ultimate").
Preconditions¶
- A signed-in owner who will create the project role, plus an invited employee who will be added as a member of the first project with that role.
- Seed data: two projects with budgets and tasks plus one time record per project.
Steps¶
- As the owner, go to Roles → Project roles, add a project role with the test title, toggle "Projects ultimate" on (project-role flavour), then save. Expected: the new project role exists.
- Add the employee to the first project with this role via API. Expected: the API confirms the member with the matching role id.
- Reset the session and sign in as the employee. Open the Projects list. Expected: only 1 project is visible.
- Inspect the columns. Expected: the time budget column is visible with the API value; the price budget column is hidden (the project list price column needs the global Price budgets permission).
- Open the project and switch to Project details. Expected: both the time and price budget fields are editable.
- Open the Tasks tab and enable "Time budget" and "Price budget" via the column manager. Expected: both columns become visible with the seeded values.
- Open the task row. Expected: in the task modal both budgets are locked (read-only).
Related¶
- Spec:
playwright/tests/integration/permissions.spec.ts(line 1258)