playwright-webkit
1.65.1 · 13 Nov 2026Apache-2.0146.1k / weekRepositoryHomepagenpmAtom feed
Upgrading playwright-webkit From 1.51.1 to 1.65.1
27 releases in betweenevery note read
- 26
- changes to make
- 0
- advisories fixed
- 114
- new
- 15
- fixes
Start here
Before you upgrade
Tick each one off as you go- Breaking1.65.0
- Breaking1.64.0
- Breaking1.64.0
- Breaking1.64.0
- Breaking1.64.0
- Breaking1.63.0
- Breaking1.63.0
- Breaking1.62.0
- Breaking1.60.0
- Breaking1.60.0
Release by release
- Fixed
Regression: Decorated class with a static field fails to load in 1.65 ("_initClass is not a function") with useDefineForClassFields: false
- Fixed
Bug: Test locations are one column off under Bun 1.4.4+
- Fixed
- Breaking
⚠️ Playwright no longer tests on Node.js 20. Use Node.js 22, 24 or 26, as listed in the system requirements.
- New
New built-in
-exclusive-test lock runs a test only when no other tests are running. All other tests continue to run in parallel with each other: - New
New
PLAYWRIGHT_TRANSFORM_CACHE_DIRenvironment variable sets the directory for transpiled test files, for example on a Linux machine shared with other users. - New
New options
timeoutandsignalin cdpSession.send(). - New
New testRun.mode() returns the execution mode of a suite during reporter.preprocess().
- Breaking
- Fixed
Bug: _electron.launch intermittently loses a packaged app's first window since 1.64.0
- Fixed
Regression: Chromium 155+ aborts a preflighted cross-origin redirect whenever any route is registered (net::ERR_ABORTED)
- Fixed
- Breaking
screenproperty is now forwarded from the device descriptors. If you use...devices['Desktop Chrome']and alike,window.screenand media queries now see the emulated screen size. You can opt-out by explicitly settingscreentoundefined: - Breaking
JSX in your test files now follows your
tsconfig.json. Playwright compiles JSX in test files according to thejsx,jsxFactory,jsxFragmentFactoryandjsxImportSourcetsconfig options, and defaults to the automatic runtime fromreact/jsx-runtime. - Breaking
--update-snapshots=missingnow passes the test run. Tests that only create missing snapshots now pass in the'missing'mode of testConfig.updateSnapshots, so that CI can generate new snapshots and verify the existing ones in a single run. The mode used when the option is not specified is now called'default'and behaves as before: missing snapshots are written and the test fails. - Breaking
Elements inside hidden iframes are considered hidden. Elements inside an iframe that is not visible, for example with
visibility: hidden, are now considered hidden by actions, locator.isVisible() and expect(locator).toBeVisible().
- Breaking
- Breaking
⚠️ The experimental
@playwright/experimental-ct-react,@playwright/experimental-ct-react17and@playwright/experimental-ct-vuepackages will no longer be updated. Follow the migration guide to move to the stories model introduced in 1.62. Story ids passed to fixtures.mount() can now be typed through the generatedStoriesregistry. - Breaking
⚠️ Ubuntu 20.04 is not supported anymore.
- New
httpCredentialsnow also accepts an array of credentials. The first entry matching the request origin is used, and entries without an origin match any request. - New
New option
opfsincludes the origin private file system in the storage state, so it can be persisted and restored into later contexts.
- Breaking
- Fixed
Regression: Tsconfig "extends" bare specifier isn't resolved via node_modules walk-up like tsc (fatal since 1.62)
- Fixed
Regression: directory-form tsconfig project references ("path": "../pkg") fail to resolve (fatal since 1.62)
- Fixed
Accessibility snapshot drops button name when text is nested inside spans with aria-hidden SVG
- Fixed
Regression: Page.evaluate() arg of a branded primitive type (string & { brand }) no longer type-checks since 1.62
- Fixed
Image-type actionable elements are not presented in the snapshot.
- Fixed
- Breaking
⚠️ Debian 11 is not supported anymore.
- New
New option
credentialsincludes the context's virtual WebAuthn Credentials (passkeys) in the storage state, so they can be persisted and re-seeded into later contexts. - New
New
scrolloption ("auto"|"none") on actions to opt out of Playwright's automatic scroll-into-view. - New
New apiResponse.timing() returns resource timing information for an API response.
- Breaking
- Fixed
Bug: Expect.Extend matcher with same name as default matcher in same expect instance overrides default matchers implementation to custom matcher
- Fixed
Bug: Playwright UI mode: apiRequestContext._wrapApiCall reports unexpected number of bytes (same test passes in headed mode)
- Fixed
Bug: Trace viewer: message times in websockets are downscaled by 1000
- Fixed
Bug: [Regression]: Sync loader throws "context.conditions?.includes is not a function" on Node 22.15
- Fixed
Regression: Sync ESM loader (registerHooks) fails to resolve extensionless .ts subpath imports across pnpm workspace symlinks
- Fixed
106 other lines we could not sort, mostly version bumps
- 1.65.1
Chromium 159.0.8154.6
- 1.65.1
Mozilla Firefox 159.0
- 1.65.1
WebKit 27.2
- 1.65.0
There is no watch mode. UI mode does not run tests again when files change, and
--only-changeddoes not follow imports. - 1.65.0
Bun loads modules itself, so
--tsconfigand the JSX options intsconfig.jsonhave no effect, and custom ESM loaders are not supported. - 1.65.0
Stack traces do not include async frames, and API names do not include the class name:
clickinstead oflocator.click. This changes some step locations, step titles and error messages. - 1.65.0
Console output of a test does not get into the trace and UI mode.
- 1.65.0
test.skip(), test.fixme(), test.fail() and test.slow() now accept only a description. It is recorded in the test annotation:
- 1.65.0
TypeScript class fields now follow
useDefineForClassFieldsfrom yourtsconfig.json, the same astsc. It is enabled forES2022and later targets, and whentargetis not specified. A field initializer that reads a constructor parameter property now fails, because the initializer runs first: - 1.65.0
Actions such as locator.click(), locator.check(), locator.tap(), locator.fill(), locator.clear() and locator.selectOption() now wait for the element to be not inert. An action on an element with the
inertattribute, or inside such an element, now times out if the element stays inert.
6 internal lines (docs, tests, tooling) left out.
A whole project to check? Paste its package.json in the dependency check: every deprecated, outdated or vulnerable dependency, with what to upgrade to. Free, no account.