Playwright · Middle · Question 51 of 75
How do you check whether a test is flaky locally?
- 1Increase its timeout to five minutes
- 2Run it many times with
--repeat-each=20 - 3Run it once with the
--headedflag
Show the answer
Correct answer: Run it many times with --repeat-each=20
Explanation
Repeating a test, especially with several workers, surfaces timing problems that appear only sometimes.