Skip to content

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

Description

Cross-timezone check for an employee's Start Date, Due Date and Birthday between an author in Sydney (Australia/Sydney) and a viewer in London (Europe/London). Verifies that the working-relationship dates display the same calendar day in both timezones and that the birthday is calendar-invariant (identical displayed string for both viewers).

Preconditions

  • Signed-in tenant seeded via fixtures with one freshly invited employee user.
  • 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 Users list.

Steps

  1. In the Sydney window, open the new employee's profile and pick Start Date ("today + 3 days") and Due Date ("today + 4 days") on the Sydney calendar; Birthday is picked as "today − 500 days" on the London calendar (to keep the birthday calendar-invariant across runs).
  2. Click Save and reload. Expected: the "Updated" popup appears and the "Since" field shows the Sydney-formatted "today + 3 days" date in US format.
  3. Read the displayed Birthday string from the input field (it becomes the cross-timezone expected value).
  4. Hover the Start Date chip. Expected: the chip is blue and the tooltip shows the chosen "today + 3 days" date as a Sydney time.
  5. Hover the Due Date chip. Expected: the tooltip shows the chosen "today + 4 days" date as a Sydney time.
  6. Click Save once more. Expected: the "Updated" popup appears again.
  7. Close the Sydney window and re-open the app in a fresh window with the London timezone, then open the same user.
  8. Expected: "Since" shows the London-formatted "today + 3 days" in US format, Start Date shows the London-formatted "today + 3 days" value and Due Date shows the London-formatted "today + 4 days" value.
  9. 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.
  10. Expected: the Birthday field shows exactly the same string captured in step 3 (calendar-invariant).
  • Spec: playwright/tests/integration/dateTime.spec.ts (line 1153)