Skip to content

200 — should test start date and due date from Sydney to London

Description

Cross-timezone check for the project Start Date and Due Date fields between an author in Sydney (Australia/Sydney) and a viewer in London (Europe/London). Verifies that the calendar day picked in Sydney 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 = Australia/Sydney for the author and later re-opened with timezoneId = Europe/London for the viewer.
  • The author lands on the projects list with the seeded project visible.

Steps

  1. In the Sydney 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" (Sydney calendar day), then click Due Date and pick "today + 4 days" (Sydney 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 Sydney time.
  4. Hover the Due Date chip. Expected: the chip is blue and the tooltip shows the chosen "today + 4 days" date as a Sydney 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 Sydney "today + 4 days" date.
  7. Close the Sydney window and re-open the same app in a fresh window with the London timezone.
  8. 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 behind Sydney).
  9. 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.
  10. Hover Start Date and Due Date chips. Expected: chips are orange (cross-timezone indicator) and tooltips show the originally picked Sydney moments converted to London local time.
  • Spec: playwright/tests/integration/dateTime.spec.ts (line 286)