Cypress · Senior · Question 30 of 76
How do you make date-dependent tests stable across time zones?
- 1Run CI only during office hours in one country
- 2Avoid testing any feature that shows dates
- 3Control
TZin CI and freeze time withcy.clock
Show the answer
Correct answer: Control TZ in CI and freeze time with cy.clock
Explanation
Setting the time zone of the browser process and a fixed clock makes "today" and DST edges deterministic.