{
  "slug": "playwright-supports-expect-soft-poll-fb8db8c68ed3",
  "title": "Playwright supports expect.soft.poll",
  "tools": [
    "playwright"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-06-15T10:05:19.000Z",
  "announced_at": "2026-06-15T10:05:19.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When a test needs to poll an assertion without stopping at the first failure, call `expect.soft.poll(...)` and chain the matcher, such as `.toBe(200)`.",
    "examples": [
      "await expect.soft.poll(async () => { const response = await page.request.get('https://api.example.com'); return response.status(); }).toBe(200);"
    ],
    "gotchas": [
      "Version: v1.61.0",
      "actual (callback) (required): Function polled until the chained matcher passes or polling times out.",
      "timeout: Polling timeout in milliseconds; default is 5 seconds. Set to 0 to disable timeout.",
      "intervals: Polling intervals in milliseconds; default is [100, 250, 500, 1000].",
      "chained matcher (required): Assertion applied to the callback result, such as `.toBe(200)`.",
      "Prerequisite: Soft assertions work only with the Playwright test runner."
    ]
  },
  "why_it_matters": "Poll an assertion in a test while keeping it soft.",
  "sources": [
    "https://github.com/microsoft/playwright/releases/tag/v1.61.0",
    "https://playwright.dev/docs/test-assertions"
  ],
  "rank": 0.9705,
  "judge": {
    "publish": true,
    "judge_model": "codex-cli/gpt-6-luna+typesafe/jev-1.13.0",
    "prompt_version": "extract-v7+enrich-v1+judge-v2x3+jev-publish-v1"
  },
  "review_state": "approved",
  "provenance": {
    "run_id": "backfill-20261007",
    "verdict_id": "backfill-20261007:backfill-20261007-3081afb6e04abdfe-7:gate",
    "evidence_hash": "dbcfef8a253ec929beeebe114951631317990b1153dd7838e6ec906812e39e91"
  },
  "review": {
    "draft_hash": "7be46846c71cc78e14a7d9550552e62a658084f15baebcd87c4d75cbae2d8700",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "backfill-20261007:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.97 >= 0.9; 2 needed) and Jev gave 0.64 (>= 0.6 needed)."
  }
}
