Playwright · Middle · Question 5 of 75
What does forbidOnly: !!process.env.CI protect against?
- 1Tests being tagged with more than one tag at a time
- 2Developers running a single test file on their machine
- 3A committed
test.onlysilently skipping the rest in CI
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.