376 — should check when user have Invoice ultimate permission¶
Description¶
Verifies that an employee with the "Invoice ultimate" user role can fully edit invoices, see the Finance Dashboard tab and the Bank account screen, with all per-row actions enabled.
Preconditions¶
- A signed-in owner who will create the role, plus an invited employee who will receive it.
- Seed data: bank account, client, 4 invoices across two clients, expenses, billable rates and expense templates per the standard Finance seed.
Steps¶
- As the owner, go to Roles → User roles, add a user role with the test title, toggle "Invoice ultimate" on, then save. Expected: the new role appears in the user roles list.
- Assign the role to the invited employee via API and reset the session.
- 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 Settings. Expected: the Settings tabs include "Teams", "Time Tracking", "Quick filters", "Personal", and "Finance".
- Open the Bank account screen. Expected: 1 seeded bank account is shown.
- Navigate to Finance → Invoices. Expected: the Finance area shows "Dashboard", "Billing statements", "Invoices" tabs and all 4 organization invoices are visible.
- Inspect the action buttons on the invoice list. Expected: every invoice (4 of 4) has its row-action button visible.
- Open invoice
YYYY-0001. Expected: the invoice detail opens in edit mode (fully editable).
Related¶
- Spec:
playwright/tests/integration/permissions.spec.ts(line 381)