Skip to content

140 — should create a time record for each day of the month

Description

Verifies on the personal Calendar Month view that the user can create one time record per day for the entire current month, with the modal's pre-filled duration adapting to daylight-saving days, and the final count matching the month length.

Preconditions

  • Signed-in tenant on the personal Calendar
  • Three seeded time records (mutableData1/2/3) form the baseline (4 on Sun/Mon)
  • Calendar in Month view, focused on the current month

Steps

  1. Switch to Month view and click Current.
  2. For each day 1 … daysInMonth of the current month:
    • Click that day. Expected: the new-time-record modal opens with the correct full-day duration for that date (23:00 on DST spring-forward day, 25:00 on DST fall-back day, otherwise 24:00).
    • Set hourly Rate to 200 and click Create.
  3. After all days have been processed, check the total. Expected: the calendar's time-record count equals baseline + daysInMonth.
  • Spec: playwright/tests/integration/calendar.spec.ts (line 871)