Skip to content

121 — should check correct time record created 5 weeks ago with datepicker

Description

Verifies on the personal Calendar Week view that using the datepicker to jump 5 weeks back surfaces a time record seeded for that historical date, with the correct tooltip values, and that "This" returns to the current week.

Preconditions

  • Signed-in tenant on the personal Calendar
  • Standard seeded records on today
  • A new 3-hour time record created via API dated exactly 5 weeks ago

Steps

  1. Switch to Week view, open the datepicker and set it to the historical week's day, then close it.
  2. Expected: the datepicker now reports a week offset of -5.
  3. Locate the historical event by its record id. Expected: its tooltip shows the correct seeded start time, end time and duration 03:00.
  4. Open the datepicker again and click This. Expected: the datepicker returns to the current week (offset 0).
  • Spec: playwright/tests/integration/calendar.spec.ts (line 549)