Skip to content

389 — should check when user have project ultimate permission

Description

Verifies that an employee with both "Projects basic" and "Projects ultimate" global user roles can edit project time budgets but still cannot see or edit price budgets, and task budgets remain locked.

Preconditions

  • A signed-in owner who will create the role, plus an invited employee who will receive it.
  • Seed data: two projects (each with budgets and a task) 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" and "Projects 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 (2) are visible with the time budget column populated; the price budget column stays hidden.
  4. Open the first project and switch to Project details. Expected: the time budget field is editable; the price budget field is not rendered.
  5. Open the project's Tasks tab and enable "Time budget" via the column manager. Expected: the time budget column is visible with the seeded value; the price budget column stays hidden.
  6. Open the task row. Expected: in the task modal the time budget is editable and the price budget is not rendered.
  • Spec: playwright/tests/integration/permissions.spec.ts (line 917)