Quarantine flaky tests
quarantineMarks flaky tests so their failures stop failing run-test and CI while they keep running and being reported until an expiry date; supports add, list, and remove with owner and reason.
Instructions
Quarantine flaky tests: they keep running and being reported, but their failures stop failing run-test and the ci command until the entry expires (default 14 days, max 90). add needs owner and reason; list shows what is quarantined and what expired; remove ends it. Stored in playwright-quarantine.json (commit it).
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| days | No | add: how long it counts (default 14, max 90) | |
| file | No | Spec file, relative to the project | |
| test | No | The test as 'file › title' (as get-failure and analyze-history print it), or use file + title | |
| index | No | add: the Nth failure of the last run instead of test/file/title | |
| owner | No | add: who will fix it (name or @handle) | |
| title | No | Test title, or its last parts ('Checkout › pays by card') | |
| action | No | 'list' (default), 'add' or 'remove' | |
| reason | No | add: why it is flaky, or the issue link | |
| projectRoot | No | Project directory (default: server root) |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| ok | Yes | false when the call failed (see error) or the tests it ran failed | |
| error | No | ||
| total | No | ||
| status | No |