Skip to content

201 — should test start date and due date from London to Hawaii

Description

Cross-timezone check for a task's Start Date and Due Date between an author in London (Europe/London) and a viewer in Hawaii (Pacific/Honolulu). Verifies that the calendar day picked in London 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 Hawaii.

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 = Europe/London for the author and later re-opened with timezoneId = Pacific/Honolulu for the viewer.
  • The author lands on the projects list.

Steps

  1. In the London window, open the project and switch to the Tasks tab. Expected: the seeded task's Due Date column shows "-" (empty).
  2. Open the task, click Start Date and pick "today + 3 days" (London calendar day), then click Due Date and pick "today + 4 days" (London calendar day).
  3. 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.
  4. Click Save. Expected: the "Updated" confirmation popup appears and the task row in the Tasks tab shows the London "today + 4 days" date in the Due Date column.
  5. Close the London window and re-open the same app in a fresh window with the Hawaii timezone.
  6. Navigate to the same project's Tasks tab. Expected: the task's Due Date column shows the same calendar day, formatted for Hawaii (no day shift).
  7. Open the task. Expected: the edit form's Start Date field shows the Hawaii-formatted "today + 3 days" value and the Due Date field shows the Hawaii-formatted "today + 4 days" value.
  8. Hover the Start Date chip. Expected: the chip is orange (cross-timezone indicator) and the tooltip shows the originally picked London moment converted to Hawaii local time.
  • Spec: playwright/tests/integration/dateTime.spec.ts (line 376)