198 — should test start date and due date from London to Sydney¶
Description¶
Cross-timezone check for the project Start Date and Due Date fields 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 on the project list, project detail page, and on the start/due date hover tooltips when the same project is opened from Sydney.
Preconditions¶
- Signed-in tenant seeded via fixtures with one freshly created project (no dates yet).
- Browser context is opened with
timezoneId = Europe/Londonfor the author and later re-opened withtimezoneId = Australia/Sydneyfor the viewer. - The author lands on the projects list with the seeded project visible.
Steps¶
- In the London window, open the projects list. Expected: the seeded project shows an empty Due Date column.
- Open the project, switch to the Details tab, click Start Date and pick "today + 3 days" (London calendar day), then click Due Date and pick "today + 4 days" (London calendar day).
- Hover the Start Date chip. Expected: the chip is blue (same-timezone indicator) and the tooltip shows the chosen "today + 3 days" date as a London time.
- Hover the Due Date chip. Expected: the chip is blue and the tooltip shows the chosen "today + 4 days" date as a London time.
- Click Save. Expected: the "Updated" confirmation popup appears.
- Go back to All Projects. Expected: the Due Date column for this project shows the London "today + 4 days" date.
- Close the London window and re-open the same app in a fresh window with the Sydney timezone.
- Open the projects list. Expected: the Due Date column shows the same calendar day, formatted for Sydney (no shift to the next day even though Sydney is ~10–11 hours ahead of London).
- Open the project Details tab. Expected: Start Date displays the Sydney-formatted "today + 3 days" value and Due Date displays the Sydney-formatted "today + 4 days" value.
- Hover Start Date and Due Date chips. Expected: chips are orange (cross-timezone indicator) and tooltips show the originally picked London moments converted to Sydney local time.
Related¶
- Spec:
playwright/tests/integration/dateTime.spec.ts(line 141)