Skip to content

534 — should test arrows and button for Day

Description

Verifies the Day mode of the date filter on the Time Records table: the Today button, the left/right arrows stepping by single days, and the corresponding day filter all keep the filter aligned with the visible record (one record per day was seeded for the current month).

Preconditions

  • Signed in to a seeded test organization.
  • Time Records page open in the Table view.
  • One time record seeded for each day of the current month (internal note = day-of-month number).

Steps

  1. Open the date filter and pick Day mode, then close the popover.
  2. Click Current period (Today). Expected: the filter shows today; the table contains 1 record; its internal description equals today's day number.
  3. Click the Left arrow once. Expected: filter shows yesterday; 1 record; internal description equals yesterday's day number.
  4. Click the Left arrow again. Expected: filter shows two days ago; 1 record matching that day number.
  5. Click Current period. Expected: filter returns to today; 1 record with today's day number.
  6. Click the Right arrow once and then again. Expected: filter moves to tomorrow and then to the day after; each step shows 1 record whose internal description equals that day number.
  • Spec: playwright/tests/integration/timerecord.spec.ts (line 792)