Skip to content

206 — should test start date and due date from London to Sydney

Description

Cross-timezone check for a client's Start Date (the "Since" date) between an author in London (Europe/London) and a viewer in Sydney (Australia/Sydney). Verifies that the calendar day picked in London is displayed unchanged in the client detail page and on the start-date tooltip when the same client is opened from Sydney.

Preconditions

  • Signed-in tenant seeded via fixtures with one freshly created client (no dates yet).
  • Browser context is opened with timezoneId = Europe/London for the author and later re-opened with timezoneId = Australia/Sydney for the viewer.
  • The author lands on the dashboard.

Steps

  1. In the London window, navigate to Clients and open the seeded client.
  2. Click Start Date and pick "today + 3 days" (London calendar day), then click Save. Expected: the "Updated" confirmation popup appears.
  3. Reload the page. Expected: the "Since" field shows the London-formatted "today + 3 days" date in US format.
  4. Hover the Start Date chip. Expected: the chip is blue (same-timezone indicator) and the tooltip shows the chosen date as a London time.
  5. Close the London window and re-open the same app in a fresh window with the Sydney timezone.
  6. Navigate to Clients and open the same client. Expected: the Start Date field shows the Sydney-formatted "today + 3 days" value and the "Since" field shows the same calendar day in US format (no shift to the next day).
  7. Hover the Start Date chip. Expected: the chip is orange (cross-timezone indicator) and the tooltip shows the originally picked London moment converted to Sydney local time.
  • Spec: playwright/tests/integration/dateTime.spec.ts (line 723)