Skip to main content

Playwright 1.65 Released: Bun Support, Failures-Only Reports and Breaking Changes

Microsoft released Playwright 1.65 on 5 November 2026, followed by a fix release, 1.65.1, on 13 November. The main new features are support for running tests with Bun and new reports that show only failures. The release also changes how several things behave, and some of those changes can make existing tests fail after you upgrade. Playwright also no longer tests on Node.js 20.

What is new in Playwright 1.65?โ€‹

  • Bun support. The Playwright test runner can now run under Bun, a fast JavaScript runtime that is an alternative to Node.js.
  • Failures-only reports. A new failures reporter prints only failed tests and retries that passed, plus a summary. The HTML, JSON and JUnit reporters get a new onlyFailures option that keeps only failed, flaky and interrupted tests in the report.
  • Exclusive test lock. You can mark a test with { lock: '-exclusive-' } so it runs only when no other test is running, for example a test that restarts a server. All other tests still run in parallel.
  • Smaller additions. A PLAYWRIGHT_TRANSFORM_CACHE_DIR setting for where transpiled test files are stored, timeout and signal options for cdpSession.send(), and a new testRun.mode() API for custom reporters.

Can I run Playwright tests with Bun now?โ€‹

Yes, with the command bunx --bun playwright test. The --bun flag matters: without it, bunx still runs Playwright on Node.js.

The Playwright team lists some differences under Bun:

  • There is no watch mode, so UI mode doesn't rerun tests when files change.
  • --tsconfig and the JSX options in tsconfig.json have no effect, and custom ESM loaders don't work.
  • Stack traces have no async frames, and some step names, step locations and error messages look different.
  • A test's console output doesn't appear in the trace or UI mode.

Playwright's own CI runs these tests under Bun 1.4.3 on Linux.

What changes could break my tests when I upgrade?โ€‹

These are the changes most likely to affect existing test suites:

ChangeWhat you might seeWhat to do
TypeScript class fields now follow useDefineForClassFields, like tscPage objects that set a field from a constructor parameter fail with Cannot read properties of undefinedMove the setup into the constructor, or set "useDefineForClassFields": false in tsconfig.json
Actions wait for elements to be not inertclick(), fill(), check() and similar time out on elements with the inert attributeCheck whether the element is really meant to be interactive at that point
test.skip(), test.fixme(), test.fail() and test.slow() now accept only a description, which is recorded as an annotationExisting calls that pass other arguments may need changingCheck your calls against the updated docs, for example test.skip('Not implemented yet')
Sharded runs fail when no tests match across all shardsCI jobs fail with "No tests found"Add --pass-with-no-tests if an empty run is expected
Cookie matching follows RFC 6265cookies() returns fewer cookies for subdomains and pathsCheck tests that read cookies by URL
Proxy credentials are no longer sent to websitesSite logins that relied on proxy credentials failUse httpCredentials for website authentication
Text the browser doesn't render is left out of accessible namesSome getByRole() names and aria snapshots changeUpdate the affected locators and snapshots
params in API requests is added to the URL's existing queryRequest URLs contain extra parametersCheck API tests that use both a query string and params
.css, .less and .scss imports in test files now load as empty modulesTests fail if an imported style file doesn't existMake sure imported files exist

Do I need to change my Node.js version?โ€‹

If you are on Node.js 20, yes. Playwright no longer tests on it. The supported versions are now Node.js 22, 24 and 26.

Playwright's Docker images for 1.65 now include Node.js 26 instead of 24. On 12 November, the Playwright team also said it had made a mistake by re-publishing the older v1.64.1 Docker images with Node.js 26, which broke some teams who had pinned that version. Its new rule is that the Node.js major version stays the same for all images within one Playwright minor version, and a new Node.js major only arrives with a new Playwright minor release.

What did Playwright 1.65.1 fix?โ€‹

The 1.65.1 release on 13 November fixed two problems:

  • A regression where a decorated class with a static field failed to load (_initClass is not a function) when useDefineForClassFields was set to false.
  • Test locations that were one column off under Bun 1.4.4 and later.

It also moved Chromium to version 159.

What problems have people reported since the release?โ€‹

Users reported these on Playwright's GitHub after 5 November:

  • Install failure on release day. For nearly two hours on 5 November, installing 1.65.0 failed with an ETARGET error, because the playwright-core package hadn't reached npm. The Playwright team blamed an npm registry problem and temporarily pointed latest back to 1.64.1. Installs worked again the same evening.
  • Decorator regressions. Two problems loading TypeScript classes with decorators were reported and fixed: one in 1.65.1, and another (a decorated field with !) fixed on the main branch on 11 November.
  • Open browser-specific regressions. As of 17 November, open reports include a Firefox problem where a second file chooser sometimes doesn't fire, and a WebKit problem with CSS transitions restarting.

Should I upgrade to Playwright 1.65?โ€‹

For most teams, yes, but upgrade to 1.65.1, not 1.65.0. Before upgrading:

  1. Check your Node.js version. Move off Node.js 20 first.
  2. Search your page objects for class fields that use constructor parameters, the most likely cause of instant failures.
  3. Run the full suite on a branch and compare the results with your current version, paying attention to cookies, sharding and getByRole() names.
  4. If you use the Docker image, expect Node.js 26.

Sources: