Skip to content

390 — should check when user have project ultimate permission and price budgets ultimate

Description

Verifies that an employee with "Projects basic" + "Projects ultimate" + "Price budgets ultimate" sees and can edit both time and price budgets on projects, but task budgets stay read-only (because task budget edit needs project-detail ultimate or all-tasks ultimate).

Preconditions

  • A signed-in owner who will create the role, plus an invited employee who will receive it.
  • Seed data: two projects with budgets and tasks plus one time record per project.

Steps

  1. As the owner, go to Roles → User roles, add a user role with the test title, toggle "Projects basic", "Projects ultimate", and "Price budgets ultimate" on, then save. Expected: the new role exists.
  2. Assign the role to the invited employee via API and reset the session.
  3. Sign in as the employee and open the Projects list. Expected: both projects are visible and both the time and price budget columns are populated with the API values.
  4. Open the first project and switch to Project details. Expected: both the time budget and price budget fields are editable.
  5. Open the Tasks tab and enable "Time budget" and "Price budget" in the column manager. Expected: both columns become visible with the seeded values.
  6. Open the task row. Expected: in the task modal both the time and price budgets are locked (read-only).
  • Spec: playwright/tests/integration/permissions.spec.ts (line 984)