208 — should test start date and due date from Sydney to London¶
Description¶
Cross-timezone check for a client's Start Date (the "Since" date) between an author in Sydney (Australia/Sydney) and a viewer in London (Europe/London). Verifies that the calendar day picked in Sydney is displayed unchanged in the client detail page and on the start-date tooltip when the same client is opened from London.
Preconditions¶
- Signed-in tenant seeded via fixtures with one freshly created client (no dates yet).
- Browser context is opened with
timezoneId = Australia/Sydneyfor the author and later re-opened withtimezoneId = Europe/Londonfor the viewer. - The author lands on the dashboard.
Steps¶
- In the Sydney window, navigate to Clients and open the seeded client.
- Click Start Date and pick "today + 3 days" (Sydney calendar day), then click Save. Expected: the "Updated" confirmation popup appears.
- Reload the page. Expected: the "Since" field shows the Sydney-formatted "today + 3 days" date in US format.
- Hover the Start Date chip. Expected: the chip is blue (same-timezone indicator) and the tooltip shows the chosen date as a Sydney time.
- Close the Sydney window and re-open the same app in a fresh window with the London timezone.
- Navigate to Clients and open the same client. Expected: the Start Date field shows the London-formatted "today + 3 days" value and the "Since" field shows the same calendar day in US format (no day shift).
- Hover the Start Date chip. Expected: the chip is orange (cross-timezone indicator) and the tooltip shows the originally picked Sydney moment converted to London local time.
Related¶
- Spec:
playwright/tests/integration/dateTime.spec.ts(line 843)