Playwright · Middle · Question 3 of 75

What does retries: process.env.CI ? 2 : 0 achieve?

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.

Further reading

Problem with a question

Playwright · Middle · question 3

Test yourself

Take the Playwright · Middle quiz: questions and options are shuffled, and you get a review of your mistakes at the end.

Take this quiz