{
  "slug": "playwright-screenshot-assertions-can-store-unnamed-screenshots-as-webp-0249ba5d70d7",
  "title": "Playwright screenshot assertions can store unnamed screenshots as WebP",
  "tools": [
    "playwright"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-10-07T20:40:43.000Z",
  "announced_at": "2026-10-07T20:40:43.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When you want unnamed `toHaveScreenshot` snapshots stored as WebP, set `expect.toHaveScreenshot.type` to `'webp'` in the Playwright test configuration.",
    "examples": [
      "export default defineConfig({\n  expect: {\n    toHaveScreenshot: { type: 'webp' },\n  },\n});"
    ],
    "gotchas": [
      "Version: v1.64.0",
      "expect.toHaveScreenshot.type: Set to `'webp'` to store unnamed screenshots as WebP.",
      "The option stores unnamed screenshots as WebP."
    ]
  },
  "why_it_matters": "Configure screenshot assertions to store unnamed screenshots as WebP.",
  "sources": [
    "https://github.com/microsoft/playwright/releases/tag/v1.64.0",
    "https://playwright.dev/docs/next/release-notes"
  ],
  "rank": 0.97027,
  "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": "gap-20261007",
    "verdict_id": "gap-20261007:gap-20261007-bdf5b973c35fe6e6-5:gate",
    "evidence_hash": "d55d809be2ea27eaa2466c245352f93486b5b4d563d8e70bca21767e52f93303"
  },
  "review": {
    "draft_hash": "6bbc8cb7cabd04185259cc7593b9dd98f3a8754fffea5cfb6c1ac438381401c0",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T20:40:43.000Z",
    "decision": "gap-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.69 (>= 0.6 needed)."
  }
}
