Playwright · Senior · Question 61 of 77
What does page.clock.install() let you test that real timers make impractical?
- 1The system clock on the CI runner machine
- 2Session timeouts and scheduled UI changes, in milliseconds
- 3Server cron jobs running in the backend services
Show the answer
Correct answer: Session timeouts and scheduled UI changes, in milliseconds
Explanation
With a controlled clock you can jump 30 minutes ahead and check the logout warning without waiting.