563 — Should allow same client + different labels¶
Description¶
Verifies that label is part of a row's uniqueness key: two rows for the same client are accepted as long as one of them carries a label that the other doesn't.
Preconditions¶
- Signed-in user on a fresh organization.
- One seeded client, one seeded label.
- Timesheet is open on the current week.
Steps¶
- Add a row with only the seeded Client (Billable on) and save. Expected: "Created" toast, total rows = 1, and the row shows the client with Billable on.
- Click "Add row" and pick the same client again (no label), then click Create. Expected: duplicate-row popup appears and total rows is still 1.
- Without closing the modal, add the seeded label and click Create again. Expected: "Created" toast appears, total rows = 2, and the new row shows the same client plus the label.
Related¶
- Spec:
playwright/tests/integration/timesheet.spec.ts(line 260)