Skip to content

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

Description

Cross-timezone check for an employee's Start Date, Due Date and Birthday between an author in London (Europe/London) and a viewer in Hawaii (Pacific/Honolulu). 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 = Europe/London for the author and later re-opened with timezoneId = Pacific/Honolulu for the viewer.
  • The author lands on the Users list.

Steps

  1. In the London window, open the new employee's profile and pick Start Date ("today + 3 days"), Due Date ("today + 4 days") and Birthday ("today − 500 days"), all in the London calendar.
  2. Click Save and reload. Expected: the "Updated" popup appears and the "Since" field shows the London-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 London time.
  5. Hover the Due Date chip. Expected: the tooltip shows the chosen "today + 4 days" date as a London time.
  6. Click Save once more. Expected: the "Updated" popup appears again.
  7. Close the London window and re-open the app in a fresh window with the Hawaii timezone, then open the same user.
  8. Expected: the Birthday field shows exactly the same string captured in step 3 (calendar-invariant), "Since" shows the Hawaii-formatted "today + 3 days" in US format, Start Date shows the Hawaii-formatted "today + 3 days" value and Due Date shows the Hawaii-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 London moments converted to Hawaii local time.
  • Spec: playwright/tests/integration/dateTime.spec.ts (line 913)