211 — should test start date and due date from Hawaii to London¶
Description¶
Cross-timezone check for an employee's Start Date, Due Date and Birthday between an author in Hawaii (Pacific/Honolulu) 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 = Pacific/Honolulufor the author and later re-opened withtimezoneId = Europe/Londonfor the viewer. - The author lands on the Users list.
Steps¶
- In the Hawaii window, open the new employee's profile and pick Start Date ("today + 3 days") and Due Date ("today + 4 days") on the Hawaii calendar; Birthday is picked as "today − 500 days" on the London calendar (to keep the birthday calendar-invariant across runs).
- Click Save and reload. Expected: the "Updated" popup appears and the "Since" field shows the Hawaii-formatted "today + 3 days" date in US format.
- Read the displayed Birthday string from the input field (it becomes the cross-timezone expected value).
- Hover the Start Date chip. Expected: the chip is blue and the tooltip shows the chosen "today + 3 days" date as a Hawaii time.
- Hover the Due Date chip. Expected: the tooltip shows the chosen "today + 4 days" date as a Hawaii time.
- Click Save once more. Expected: the "Updated" popup appears again.
- Close the Hawaii window and re-open the app in a fresh window with the London timezone, then open the same user.
- 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.
- Hover Start Date and Due Date chips. Expected: chips are orange (cross-timezone indicator) and tooltips show the originally picked Hawaii moments converted to London local time.
- Expected: the Birthday field shows exactly the same string captured in step 3 (calendar-invariant).
Related¶
- Spec:
playwright/tests/integration/dateTime.spec.ts(line 1076)