Skip to content

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

Description

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

Preconditions

  • Signed-in tenant on the personal Calendar in Week view
  • A time record seeded with a client AND project (mutableData1)
  • An extra 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 PROJECT and click Save. Expected: the "Calendar updated" toast appears.
  2. Locate the event for the seeded project on today. Expected: the chip background matches the project's currently-saved color.
  3. From the chip, navigate into the project to open its details page. Expected: the project page for the seeded project opens.
  4. Change the project's color to RGB 211, 1, 250 and click Save. Expected: the "Updated" 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 project color.
  • Spec: playwright/tests/integration/calendar.spec.ts (line 310)