632 — should open priority dialog and reorder via drag¶
Description¶
Verifies that the Hourly rate precedence page renders the six dimensions (Task → Label → Project → Client → Team → User), that clicking Edit opens the Change priority dialog with the same order, and that dragging an item to a new slot persists the new order to the backend and updates the chips shown on the page.
Preconditions¶
- Signed-in tenant owner with a fresh organization.
- Priority is at the server default (Task → Tags → Project → Client → Team → User).
- The Finance Settings → Hourly rates page is open.
Steps¶
- Assert the page's priority chips render in default order. Expected: chips read Task → Tags → Project → Client → Team → User left-to-right.
- Click Edit. Expected: the Change priority dialog opens with the same six dimensions in the same order.
- Drag the items so the order becomes User → Tags → Project → Client → Team → Task. Expected: the dialog reflects the new vertical order.
- Click Save. Expected: an "Updated" snackbar appears and the dialog closes.
- Assert the page's priority chips. Expected: chips now read User → Tags → Project → Client → Team → Task.
- Query
billableRatePriorityvia API. Expected: the persisted order equals the dragged order.
Related¶
- Spec:
playwright/tests/integration/hourlyRate.spec.ts