Skip to content

111 — should create time record with client and project, and set color to client and then change client color

Description

Verifies on the personal Calendar that when the time-record color source is set to "Client", a time record's chip uses the client's color — and that changing the client's color afterwards re-tints the chip live.

Preconditions

  • Signed-in tenant on the personal Calendar in Week view
  • A time record seeded with a client AND project (mutableData1)
  • A fresh additional time record seeded for the current day, 09:00–10:00
  • Calendar settings dialog reachable

Steps

  1. In Calendar settings switch the time-record color source to CLIENT and click Save. Expected: the "Calendar updated" toast appears.
  2. Locate the event for the seeded client on today. Expected: the event chip background matches the client's currently-saved color.
  3. From the chip, click into the client and open its details page. Expected: the client details page for the seeded client opens.
  4. Change the client's color to RGB 211, 1, 250 and click Save. Expected: the "Updated" confirmation toast appears.
  5. Navigate back to the personal Calendar and re-open the current week.
  6. Locate the same event. Expected: the chip is now tinted rgb(211, 1, 250) — the new client color.
  • Spec: playwright/tests/integration/calendar.spec.ts (line 269)