Testing · Senior · Question 46 of 75
What does page.clock allow in Playwright?
- ✓Correct answer: Controlling time in the browser: fixing
Date, fast-forwarding timers - e.g. to test session expiry - 2Measuring how long a test takes
- 3Throttling the network
Explanation
Without it, testing a 30-minute timeout means waiting 30 minutes or adding test-only flags to the app.