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
failuresreporter prints only failed tests and retries that passed, plus a summary. The HTML, JSON and JUnit reporters get a newonlyFailuresoption 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_DIRsetting for where transpiled test files are stored,timeoutandsignaloptions forcdpSession.send(), and a newtestRun.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.
--tsconfigand the JSX options intsconfig.jsonhave 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:
| Change | What you might see | What to do |
|---|---|---|
TypeScript class fields now follow useDefineForClassFields, like tsc | Page objects that set a field from a constructor parameter fail with Cannot read properties of undefined | Move the setup into the constructor, or set "useDefineForClassFields": false in tsconfig.json |
| Actions wait for elements to be not inert | click(), fill(), check() and similar time out on elements with the inert attribute | Check 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 annotation | Existing calls that pass other arguments may need changing | Check your calls against the updated docs, for example test.skip('Not implemented yet') |
| Sharded runs fail when no tests match across all shards | CI jobs fail with "No tests found" | Add --pass-with-no-tests if an empty run is expected |
| Cookie matching follows RFC 6265 | cookies() returns fewer cookies for subdomains and paths | Check tests that read cookies by URL |
| Proxy credentials are no longer sent to websites | Site logins that relied on proxy credentials fail | Use httpCredentials for website authentication |
| Text the browser doesn't render is left out of accessible names | Some getByRole() names and aria snapshots change | Update the affected locators and snapshots |
params in API requests is added to the URL's existing query | Request URLs contain extra parameters | Check API tests that use both a query string and params |
.css, .less and .scss imports in test files now load as empty modules | Tests fail if an imported style file doesn't exist | Make 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) whenuseDefineForClassFieldswas set tofalse. - 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
ETARGETerror, because theplaywright-corepackage hadn't reached npm. The Playwright team blamed an npm registry problem and temporarily pointedlatestback 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:
- Check your Node.js version. Move off Node.js 20 first.
- Search your page objects for class fields that use constructor parameters, the most likely cause of instant failures.
- Run the full suite on a branch and compare the results with your current version, paying attention to cookies, sharding and
getByRole()names. - If you use the Docker image, expect Node.js 26.
Sources:
- Playwright v1.65.0 release notes, 5 November 2026: https://github.com/microsoft/playwright/releases/tag/v1.65.0
- Playwright v1.65.1 release notes, 13 November 2026: https://github.com/microsoft/playwright/releases/tag/v1.65.1
- Playwright GitHub issues reported since 5 November 2026: https://github.com/microsoft/playwright/issues?q=is%3Aissue+created%3A%3E%3D2026-11-05