Playwright · Senior · Question 27 of 77
What should happen to a test that flakes often?
- 1Delete it and the feature's other tests too
- 2Quarantine it with an owner and fix the root cause
- 3Raise retries to five so it always ends up green
Show the answer
Correct answer: Quarantine it with an owner and fix the root cause
Explanation
Retries hide race conditions that may be real product bugs. Quarantine keeps the main run trustworthy while the fix happens.