Playwright · Middle · Question 5 of 75

What does forbidOnly: !!process.env.CI protect against?

Show the answer

Correct answer: A committed test.only silently skipping the rest in CI

Explanation

With this setting, a run in CI fails if any test.only is present, instead of reporting green after running one test.

Further reading

Problem with a question

Playwright · Middle · question 5

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