Playwright · Senior · Question 6 of 77
What does maxFailures in the config help with?
- 1Stopping a run early when something is badly broken
- 2Retrying the run until fewer tests have failed
- 3Allowing a number of failures while staying green
Show the answer
Correct answer: Stopping a run early when something is badly broken
Explanation
If a deploy is broken, 500 failures add nothing. Stopping after, say, 10 saves CI time and keeps the signal clear.