{
  "slug": "playwright-test-steps-support-subtitles-and-params-in-reports-b4bb39d564d5",
  "title": "Playwright test steps support subtitles and params in reports",
  "tools": [
    "playwright"
  ],
  "tags": [
    "agent"
  ],
  "introduced_at": "2026-09-04T22:40:31.000Z",
  "announced_at": "2026-09-04T22:40:31.000Z",
  "effective_at": null,
  "date_basis": "source-publication",
  "status": "unknown",
  "how": {
    "incantation": "When adding structured context to a test step, pass `subtitle` and `params` in the `test.step()` options; reporters expose them as `testStep.subtitle` and `testStep.params`, and the trace viewer and HTML report display step context.",
    "examples": [
      "import { test } from '@playwright/test';\n\nawait test.step('Login', async () => {\n  // ...\n}, { subtitle: 'as admin', params: { user: 'admin' } });"
    ],
    "gotchas": [
      "Version: v1.63.0",
      "title (required): Step name.",
      "body (required): Step callback.",
      "options: Optional object of step options.",
      "options.subtitle: String that complements the step title; reported as `testStep.subtitle`.",
      "options.params: Serializable object describing the step; reported as `testStep.params`.",
      "testStep.subtitle: Available subtitle; for Playwright API calls, the target locator or navigation URL; for `test.step()`, the author-provided subtitle.",
      "testStep.params: Available step parameters; API call steps may include a locator and call arguments, while `test.step()` steps contain author-provided parameters.",
      "Prerequisite: Use Playwright v1.63.0 or later; the docs mark `subtitle`, `params`, `testStep.subtitle`, and `testStep.params` as added in v1.63."
    ]
  },
  "why_it_matters": "Add structured context to a test step and inspect it in the trace viewer or HTML report.",
  "sources": [
    "https://github.com/microsoft/playwright/releases/tag/v1.63.0",
    "https://playwright.dev/docs/api/class-test#test-step",
    "https://playwright.dev/docs/api/class-teststep#test-step-subtitle",
    "https://playwright.dev/docs/api/class-teststep#test-step-params"
  ],
  "rank": 0.97043,
  "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": "augsep-20261008",
    "verdict_id": "augsep-20261008:augsep-20261008-579bf8375159b0fd-3:gate",
    "evidence_hash": "8f458d0a9fe7d706ecdbbba7433f7d4b9f5359e0c90f3581627b8ce9e8b79bc6"
  },
  "review": {
    "draft_hash": "5993873805d6d4bbffd77336720abe7a3b831e5b20dc55c2b8c365ded1336404",
    "reviewer": "publication-gate",
    "reviewed_at": "2026-10-07T00:00:00.000Z",
    "decision": "augsep-20261008:gate",
    "reason": "3 of 3 judge runs approved with p_yes >= 0.9 (mean 0.97 >= 0.9; 2 needed) and Jev gave 0.62 (>= 0.6 needed)."
  }
}
