Skip to content

158 — should check correct previous and next month

Description

Verifies on the team Users calendar Month view that Previous/Next/Current arrows shift the date pill by exactly one month at a time.

Preconditions

  • Signed-in tenant on the Users calendar (team view)
  • Time records seeded for owner and an extra employee across the current week (trId0/1/2/3)
  • Organization timezone set to Atlantic/Reykjavik (no DST offset)

Steps

  1. Click Current, then switch to Month view.
  2. Click Previous. Expected: the datepicker shows the previous month (offset -1).
  3. Click Next. Expected: the datepicker is back on the current month (offset 0).
  4. Click Next again. Expected: the datepicker shows the next month (offset +1).
  5. Click Current. Expected: the datepicker returns to the current month (offset 0).
  • Spec: playwright/tests/integration/calendar.spec.ts (line 1478)