Change8

v1.53.0

📦 playwrightView on GitHub →
5 features🔧 4 symbols

Summary

Playwright introduces new Trace Viewer steps, a customizable HTML reporter title, a `kind` option for snapshot paths, the `locator.describe()` method, and an enhanced `playwright install --list` command.

Migration Steps

  1. If you want custom titles in HTML reports, update the reporter configuration to `[['html', { title: 'Your title' }]]`.
  2. Use the new `kind` option when calling `testInfo.snapshotPath()` to select the desired snapshot path template.
  3. Replace manual locator annotations with `locator.describe()` to provide descriptive names for trace viewer and reports.
  4. No breaking changes require code removal; the new features are additive.

✨ New Features

  • Added new steps view in Trace Viewer and HTML reporter.
  • Added `title` option to the HTML reporter to customize the test run title.
  • Added `kind` option to `testInfo.snapshotPath()` to control which snapshot path template is used.
  • Added `locator.describe()` method to describe a locator for trace viewer and reports.
  • `npx playwright install --list` now lists all installed browsers, their versions, and locations.

🔧 Affected Symbols

html reportertestInfo.snapshotPath()locator.describe()playwright install CLI