633 — should reset priority to default via dialog¶
Description¶
Verifies the Reset to default button in the Change priority dialog: a non-default order seeded via API can be reverted to the server default by clicking Reset, with an "Updated" snackbar shown and the page chips reflecting the default once the dialog is dismissed.
Preconditions¶
- Signed-in tenant owner with a fresh organization.
- Priority pre-seeded to a non-default order via the
updateBillableRatePrioritymutation. - The Finance Settings → Hourly rates page is open.
Steps¶
- Assert the page's chips reflect the seeded non-default order. Expected: chips render in the seeded order.
- Click Edit. Expected: the Change priority dialog opens with the seeded order.
- Click Reset to default. Expected: the dialog's list reorders to the server default and an "Updated" snackbar appears.
- Close the dialog with Cancel. Expected: the dialog closes.
- Assert the page chips. Expected: chips render in the default order Task → Tags → Project → Client → Team → User.
- Query
billableRatePriorityvia API. Expected: the persisted order equals the default.
Related¶
- Spec:
playwright/tests/integration/hourlyRate.spec.ts