203 — should test start date and due date from Hawaii to London¶
Description¶
Cross-timezone check for a task's Start Date and Due Date 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 Tasks tab, in the task edit form, and on the start-date tooltip when the same task is opened from London.
Preconditions¶
- Signed-in tenant seeded via fixtures with one project and one task already created inside it (task has 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.
Steps¶
- In the Hawaii window, open the project and switch to the Tasks tab. Expected: the seeded task's Due Date column shows "-" (empty).
- Open the task, 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.
- Click Save. Expected: the "Updated" confirmation popup appears and the task row in the Tasks tab shows the Hawaii "today + 4 days" date in the Due Date column.
- Close the Hawaii window and re-open the same app in a fresh window with the London timezone.
- Navigate to the same project's Tasks tab. Expected: the task's Due Date column shows the same calendar day, formatted for London (no day shift).
- Open the task. Expected: the edit form's Start Date field shows the London-formatted "today + 3 days" value and the Due Date field shows the London-formatted "today + 4 days" value.
- Hover the Start Date chip. Expected: the chip is orange (cross-timezone indicator) and the tooltip shows the originally picked Hawaii moment converted to London local time.
Related¶
- Spec:
playwright/tests/integration/dateTime.spec.ts(line 515)