Playwright · Senior · Question 50 of 77
What does toHaveScreenshot do to reduce flakiness before comparing?
- 1Waits until two screenshots in a row are identical
- 2Blurs the image so that small differences vanish
- 3Takes ten screenshots and uses their average image
Show the answer
Correct answer: Waits until two screenshots in a row are identical
Explanation
It retries capturing until the page is stable, then compares with the baseline using the configured threshold.