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