Skip to content

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

Description

Cross-timezone check for the project Start Date and Due Date fields between an author in London (Europe/London) and a viewer in Hawaii (Pacific/Honolulu). Verifies that the same 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 Hawaii.

Preconditions

  • Signed-in tenant seeded via fixtures with one freshly created project (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 with the seeded project visible.

Steps

  1. In the London window, open the projects list. Expected: the seeded project shows an empty Due Date column.
  2. 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).
  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. Hover the Due Date chip. Expected: the chip is blue and the tooltip shows the chosen "today + 4 days" date as a London time.
  5. Click Save. Expected: the "Updated" confirmation popup appears.
  6. Go back to All Projects. Expected: the Due Date column for this project shows the London "today + 4 days" date.
  7. Close the London window and re-open the same app in a fresh window with the Hawaii timezone.
  8. Open the projects list. Expected: the Due Date column shows the same calendar day, formatted for Hawaii (no shift to the previous day even though Hawaii is ~10–11 hours behind London).
  9. Open the project Details tab. Expected: Start Date displays the Hawaii-formatted "today + 3 days" value and Due Date displays the Hawaii-formatted "today + 4 days" value.
  10. Hover Start Date and Due Date chips. Expected: chips are orange (cross-timezone indicator) and tooltips show the originally picked London moments converted to Hawaii local time.
  • Spec: playwright/tests/integration/dateTime.spec.ts (line 67)