ReferenceActions
Quarantine
List, create, update and deactivate quarantine rules that keep known flaky Playwright tests from failing a suite run, from the CLI, MCP or the dashboard.
Quarantine rules keep matching tests from failing a suite run while still running them and recording their results and traces. Use List rules to inspect active rules and their IDs, and fetch exact suite.id and test.id values from samples before creating or updating a rule.
List rules
List quarantine rules
Lists quarantine rules with their exact IDs, scope, reason, expiration, and status.
$ npx endform@latest quarantine list$ npx endform@latest quarantine list --all--allboolean- Include expired and deactivated rules. Defaults to active rules only.
--organization-idstring- Organization ID. Inferred from your repository config or active login when omitted.
Output
Prints JSON with a rules array. Each rule includes id, active, suite, test, projectName, branch, reason, endsAt, and deactivation metadata.
{
"rules": [
{
"id": "qr_01J...",
"active": true,
"suite": { "id": "suite_01J...", "repository": "org/app", "directory": "e2e" },
"test": { "id": "test_01J...", "name": "completes booking", "fileName": "tests/checkout.spec.ts" },
"projectName": "chromium",
"branch": null,
"reason": "Tracking in #412",
"endsAt": "2026-12-01T12:00:00Z",
"deactivatedAt": null
}
]
}quarantine_listExample promptWhich tests are quarantined in our suites right now?
organizationIdstringrequired- Organization ID from
organization_list. Hosted logins with a single organization do not see this argument. includeInactiveboolean- Include expired and deactivated rules. Defaults to
false.
Output
Returns { rules: QuarantineRule[] } with exact rule IDs to pass to quarantine_update and quarantine_deactivate.
- Open your organization's Quarantine page.
Create a rule
Create a quarantine rule
Quarantined tests still run and record results, but their failures no longer fail the suite run.
$ npx endform@latest quarantine create --suite-id suite_01J... --test-id test_01J... --reason 'Investigating checkout timeout' --ends-at 2026-12-01T12:00:00ZRequires --suite-id and at least one scope flag (--test-id, --project, or --branch). Retrieve exact persisted suite.id and test.id values from endform samples test-runs.
--suite-idstringrequired- Exact persisted
suite.idfromendform samples. --test-idstring- Exact persisted
test.id. Omit to match all tests in the suite. --projectstring- Exact Playwright project name. Omit to match all projects.
--branchstring- Exact branch name. Omit to match all branches.
--reasonstring- Reason for quarantining the matching tests.
--ends-atstring- Future RFC3339 expiration timestamp. Omit for no expiration.
--organization-idstring- Organization ID. Inferred from your repository config or active login when omitted.
Output
Prints JSON { rule } describing the newly created rule.
quarantine_createExample promptQuarantine the checkout timeout test in the web suite until Friday with the reason 'Investigating checkout timeout'.
Requires suiteId and at least one of testId, projectName, or branch. An agent calls samples_query first to get exact persisted suite.id and test.id values.
organizationIdstringrequired- Organization ID from
organization_list. Hosted logins with a single organization do not see this argument. suiteIdstringrequired- Exact persisted
suite.idfromsamples_query. testIdstring- Exact persisted
test.id. Omit to match all tests in the suite. projectNamestring- Exact Playwright project name. Omit to match all projects.
branchstring- Exact branch name. Omit to match all branches.
reasonstring- Optional reason for quarantining the matching tests.
endsAtstring- Future RFC3339 expiration timestamp. Omit for no expiration.
Output
Returns { rule } with the created rule's id and scope.
- Open your organization's Quarantine page.
- Select Add quarantine rule and choose a Suite.
- Fill in at least one of Test, Project, or Branch.
- Check the matching tests in the preview, then select Create rule.
Update a rule
Update a quarantine rule
Replaces all editable settings of an active quarantine rule while keeping its rule ID and suite.
$ npx endform@latest quarantine update qr_01J... --test-id test_01J... --project chromium --reason 'Extended while fixing race' --ends-at 2026-12-08T12:00:00ZReplaces every editable setting on the rule. Omitted scope flags widen that dimension to match all values, and omitted --reason or --ends-at clears them. At least one of --test-id, --project, or --branch must be provided.
RULE_IDstringrequired- Exact rule ID from
endform quarantine list. --test-idstring- Exact persisted
test.id. Omit to match all tests in the suite. --projectstring- Exact Playwright project name. Omit to match all projects.
--branchstring- Exact branch name. Omit to match all branches.
--reasonstring- Reason for the rule. Omit to clear.
--ends-atstring- Future RFC3339 expiration timestamp. Omit for no expiration.
--organization-idstring- Organization ID. Inferred from your repository config or active login when omitted.
Output
Prints JSON { rule } with the updated rule settings.
quarantine_updateExample promptExtend the checkout quarantine rule's expiration by one week and keep it scoped to chromium.
Supply every editable field explicitly; pass null to clear a restriction, reason, or expiration. Inactive rules cannot be edited and the suite cannot change.
organizationIdstringrequired- Organization ID from
organization_list. Hosted logins with a single organization do not see this argument. ruleIdstringrequired- Exact rule ID from
quarantine_list. testIdstring | nullrequired- Exact persisted
test.id, ornullto match all tests. projectNamestring | nullrequired- Exact Playwright project name, or
nullto match all projects. branchstring | nullrequired- Exact branch name, or
nullto match all branches. reasonstring | nullrequired- Reason for quarantining, or
nullto clear it. endsAtstring | nullrequired- Future RFC3339 expiration timestamp, or
nullfor no expiration.
Output
Returns { rule } with the updated rule.
- Open your organization's Quarantine page.
- Open an active rule, adjust its scope, reason, or expiration, and save.
Deactivate a rule
Deactivate a quarantine rule
Deactivates a quarantine rule so future failures of matching tests fail the suite run again.
$ npx endform@latest quarantine deactivate qr_01J...RULE_IDstringrequired- Exact rule ID from
endform quarantine list. --organization-idstring- Organization ID. Inferred from your repository config or active login when omitted.
Output
Prints JSON { rule, changed }. Repeating deactivation on an already inactive rule succeeds with changed: false.
{
"rule": { "id": "qr_01J...", "active": false, "deactivatedAt": "2026-11-27T16:15:00Z" },
"changed": true
}quarantine_deactivateExample promptDeactivate the quarantine rule for the checkout test now that the fix is merged.
Repeatable: calling this on an already inactive rule succeeds and reports changed: false.
organizationIdstringrequired- Organization ID from
organization_list. Hosted logins with a single organization do not see this argument. ruleIdstringrequired- Exact rule ID from
quarantine_list.
Output
Returns { rule, changed } where changed is false if the rule was already inactive.
- Open your organization's Quarantine page.
- Select Deactivate on the rule you want to turn off.
How a rule matches tests
- Exact persisted IDs:
suiteIdandtestIdtake persisted IDs returned by samples, not test titles, file paths, or Playwright worker IDs. - Required scope: Every rule is bound to one
suiteIdand must restrict at least one oftestId,projectName, orbranch. Omitting any of the other two dimensions matches all values on that dimension. - Combining dimensions: A test attempt matches a rule when every specified dimension matches (exact suite, plus exact test, project, and branch whenever set).
- Expiration: Setting
endsAt(--ends-at) to a future RFC3339 timestamp automatically expires the rule at that time. Omitting it creates a rule with no expiration. - Updating vs. deactivating: Updating replaces all editable settings on an active rule without changing its ID or suite; inactive rules cannot be updated. Deactivating is idempotent and preserves the rule in history (
--all/includeInactive: true).
Last updated