{
  "slug": "playwright-testoptions-video-adds-trace-aligned-recording-modes-66ea9ffee934",
  "title": "Playwright testOptions.video adds trace-aligned recording modes",
  "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 configuring test video retention to follow a run’s recording policy, set `video` in the Playwright Test `use` config to one of the three modes below. Choose its recording and retention behavior from the video modes table.",
    "examples": [
      "import { defineConfig } from '@playwright/test';\n\nexport default defineConfig({\n  use: {\n    video: 'on-all-retries', // or 'retain-on-first-failure' or 'retain-on-failure-and-retries'\n  },\n});"
    ],
    "gotchas": [
      "Version: v1.61.0",
      "video: Recording mode. `on-all-retries` records and keeps video for every retry; `retain-on-first-failure` records only the first run and keeps it if that run failed; `retain-on-failure-and-retries` records every run and keeps it when that run failed or was a retry."
    ]
  },
  "why_it_matters": "Configure test video retention to match the trace recording and retention policy used by a test run.",
  "sources": [
    "https://github.com/microsoft/playwright/releases/tag/v1.61.0",
    "https://playwright.dev/docs/api/class-testoptions#test-options-video",
    "https://playwright.dev/docs/test-use-options#video-modes"
  ],
  "rank": 0.94042,
  "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-6:gate",
    "evidence_hash": "dbcfef8a253ec929beeebe114951631317990b1153dd7838e6ec906812e39e91"
  },
  "review": {
    "draft_hash": "1daa9762673ffff14d08326e916972a1db386d29af4729b6dc2ba63bb6b05b5e",
    "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.94 >= 0.9; 2 needed) and Jev gave 0.73 (>= 0.6 needed)."
  }
}
