Playwright · Middle · Question 3 of 75
What does retries: process.env.CI ? 2 : 0 achieve?
- 1Retries only the tests that passed on the first run
- 2Runs every test twice in CI to compare their results
- 3Retries failures in CI but shows them at once locally
Show the answer
Correct answer: Retries failures in CI but shows them at once locally
Explanation
Locally you want to see a failure immediately. In CI, retries absorb rare infrastructure glitches, and tests that pass on retry are reported as flaky so they can be fixed.