379 — should check when user does not have any role¶
Description¶
Verifies that adding an employee as a client member with no client role still only gives them personal-scope visibility on Finance pages — same as a regular member without any role.
Preconditions¶
- A signed-in owner plus an invited employee.
- Seed data: client, expenses, invoice drafts and issued invoice, billable rates, expense templates as per the standard Finance seed.
- The employee is added as a member of the first client with no roles assigned.
Steps¶
- As the owner, add the employee as a member of the first client via API with an empty roles array. Expected: the API confirms 1 member was added.
- Sign in as the employee and open Additional Items. Expected: the page shows "Additional items", "Flat rates", "Templates" tabs and only the employee's own additional item is listed (1 row).
- Open the employee's own additional item. Expected: the form opens in read-only state. Cancel out.
- Click "Add additional item" → "Create additional item", enter a title and save. Expected: a "Created" confirmation popup appears.
- Navigate to Finance → Invoices. Expected: the invoice list is empty and the Finance area shows only "Billing statements" and "Invoices" tabs.
Related¶
- Spec:
playwright/tests/integration/permissions.spec.ts(line 541)