Quarantine a flaky test
If a test sometimes fails on code that normally passes, quarantine it while you investigate. CI stops running the test across browsers and Playwright projects. You can still run it locally.
You’ll need a workspace owner or admin account and the TestPerch Playwright reporter in CI.
Quarantine the test
Section titled “Quarantine the test”- Open Tests in your project and select the test you want to quarantine.
- Select Quarantine. Enter a Reason that will help the next person investigating it, such as “Checkout intermittently times out while waiting for the receipt. Tracked in issue 142.”
- To test a fix in CI, enter the exact branch name, such as
fix/checkout-receipt, under Branch exception (optional). Leave it blank to quarantine the test on every CI branch. - Select Quarantine test. You can find it under Tests → Quarantined.
Lift quarantine after a fix
Section titled “Lift quarantine after a fix”Verify the fix locally or on your exception branch. Then open Tests → Quarantined, choose Manage quarantine, and select Lift quarantine. CI can now run the test on any branch where it would normally run. Its previous results and success-rate history remain available.