Creuto is now an OpenAI Select Partner Read More
Playwright 1.65 drops Node.js 20 and changes class fields, sharding, cookies and aria names. Ten breaking changes, ordered by how likely they are to hit.

Playwright 1.65, released on 5 November 2026, breaks suites that passed on 1.64 in ten documented ways. The likeliest to bite is a TypeScript page object whose field initialiser now throws TypeError: Cannot read properties of undefined (reading 'getByRole'). Check that, your Node.js version and your sharded CI jobs first; the rest are narrower. We have not run this upgrade on a client suite, so what follows is a reading of the release notes plus one check we ran ourselves.
Three items sit outside the breaking-changes list and still decide whether you can upgrade at all. Playwright no longer tests on Node.js 20, its system requirements now read "latest 22.x, 24.x or 26.x", and its Docker images ship Node.js 26 instead of 24.
| Item | What the release notes say for 1.65 |
|---|---|
| Release date | 5 November 2026, per the GitHub release (1.64 shipped on 7 October) |
| Node.js | No longer tested on Node.js 20; use 22, 24 or 26 |
| Docker images | Node.js 26 replaces Node.js 24 |
| Browsers | Chromium 158.0.8127.18, Firefox 159.0, WebKit 27.2 |
| New in the runner | Bun support behind --bun, a failures reporter, an onlyFailures option, a built-in -exclusive- test lock |
The release notes list the changes without ranking them. The order below is our judgement of how many suites each will hit, not Playwright's.
| # | Change | What breaks | What to do |
|---|---|---|---|
| 1 | Class fields follow useDefineForClassFields | Page object fields that read a constructor parameter property throw | Initialise in the constructor, or set the flag to false |
| 2 | Empty sharded runs fail | "No tests found" when no test matches across all shards | Pass --pass-with-no-tests on jobs that can be empty |
| 3 | Cookie matching follows RFC 6265 | Host-only and path-prefix cookies no longer returned | Re-check cookie assertions in API and auth tests |
| 4 | Proxy credentials stop going to websites | Site logins that relied on proxy credentials fail | Use httpCredentials for website authentication |
| 5 | Unrendered text leaves accessible names | getByRole with a name and aria snapshots can change | Review snapshot diffs by hand |
| 6 | Actions wait for non-inert elements | Clicks on inert elements time out | Fix the page state or the selector |
| 7 | Request params append to the URL query | Calls that relied on replacing the query | Remove the duplicate from the URL |
| 8 | CSS, Less and Sass imports load as empty modules | Imports of files that do not exist now fail | Make sure the imported file exists |
| 9 | Blob reporter clears its output directory | Other files in that directory are deleted | Give blob output its own directory |
| 10 | CommonJS test locations point to the callee start | Column numbers shift, such as 3:7 for 3:11 | Update tools that parse locations |
This is the change we expect to hit most TypeScript suites. Playwright's notes say class fields now follow useDefineForClassFields from your tsconfig, the same as tsc, and that the flag is on for ES2022 and later targets and when target is not specified. A field that reads a constructor parameter property now runs before that property exists:
class LoginPage {
// TypeError: Cannot read properties of undefined (reading 'getByRole')
readonly submit = this.page.getByRole('button', { name: 'Submit' });
constructor(private readonly page: Page) {}
}
We reproduced the pattern in a scratch file with TypeScript 6.0.3. With --target ES2022 --strict, tsc --noEmit reports error TS2729: Property 'page' is used before its initialization. With --target ES2020 it reports nothing, and so it does with --useDefineForClassFields false. So a tsc pass on your real tsconfig finds the affected classes before you touch Playwright. Playwright's two fixes are to move the assignment into the constructor or to set "useDefineForClassFields": false; the TypeScript flag switches to the ECMAScript runtime behaviour, so the constructor fix ages better.
A sharded run now fails with "No tests found" when no tests match across all shards, while an empty shard still passes if other shards have tests. If a pull request job combines --shard with a filter such as --grep or --only-changed, it can match nothing in every shard and turn red on a harmless change. The CLI reference describes --pass-with-no-tests as making the run succeed even if no tests were found; apply it to those jobs only, so a broken test path still fails loudly.
Cookie matching now follows RFC 6265. With a URL, browserContext.cookies() and apiRequestContext.cookies() no longer return host-only cookies for subdomains or Path=/api cookies for /apiv2. Separately, the credentials in the proxy option now answer only proxy challenges. A suite that logged into a staging site through its proxy settings needs httpCredentials instead.
Text the browser does not render, such as unslotted text or text directly inside a closed <details>, is no longer part of accessible names or aria snapshots. The notes say this can change page.getByRole() with a name, locator.ariaSnapshot() and expect(locator).toMatchAriaSnapshot(). Whether your baselines change depends on your markup, which we cannot know; run once and read every diff before you regenerate anything.
The remaining five are narrower: the inert-element wait, appended request params, empty CSS modules, the blob reporter's cleanup and shifted CommonJS locations. The notes also say test.skip(), test.fixme(), test.fail() and test.slow() now accept only a description, listed outside the breaking changes. Search your suite for calls that pass a condition before you assume they still work.
Playwright 1.64 shipped on 7 October, so teams that jump from an older version meet its breaking changes too. Per the notes: the screen property is now forwarded from device descriptors (opt out with screen: undefined); JSX in test files follows your tsconfig; --update-snapshots=missing now passes the run, and the default mode is called 'default'; and elements inside hidden iframes count as hidden.
Hold the upgrade if your CI cannot leave Node.js 20. Node's own release schedule lists Node.js 20 end of life as 30 April 2026, so staying on 1.64 for that reason postpones a Node upgrade you already owe, and Node.js 22 reaches end of life on 30 April 2027. Node 20 is leaving other toolchains too: see HubSpot CLI Node 20 support ends 8 January 2027.
Skip Bun for now unless you need it. Playwright's notes say it runs under Bun only with --bun, with no watch mode, no effect from --tsconfig and JSX options, no custom ESM loaders, and test console output missing from traces and UI mode. That is a trade, not a free speed-up.
tsc --noEmit against your real tsconfig on the current version and fix page object classes first.@playwright/test on a branch and run the full suite once without updating snapshots; read every aria diff.--pass-with-no-tests only to filtered or sharded jobs that can legitimately be empty.If your team wants a second pair of eyes on the TypeScript sweep, the CI image change and the snapshot review before the next release train, our QA and automation team can scope it with you, and our CI/CD implementation work covers the pipeline side. Bring your tsconfig and the output of one failing run.
Playwright 1.65 lists ten breaking changes: class fields now follow useDefineForClassFields, empty sharded runs fail, cookies follow RFC 6265, proxy credentials stop reaching websites, unrendered text leaves accessible names, actions wait for non-inert elements, request params append, CSS imports load empty, the blob reporter clears its folder, and CommonJS locations shift.
No. Playwright 1.65 no longer tests on Node.js 20, and its system requirements list the latest 22.x, 24.x or 26.x. A suite on Node.js 20 may still run, but Playwright does not test it there, so plan the Node upgrade before relying on the new version in CI.
Playwright 1.65 makes TypeScript class fields follow useDefineForClassFields, which is on for ES2022 targets and when no target is set. A field initialiser that reads a constructor parameter property now runs first and throws. Move the assignment into the constructor, or set useDefineForClassFields to false in your tsconfig.
Not necessarily. Playwright 1.65 drops text the browser does not render, such as unslotted text or text inside a closed details element, from accessible names and aria snapshots. Run the suite once without updating snapshots and review each diff; regenerate baselines only where the change is expected.
Yes, with limits. Playwright 1.65 runs the test runner under Bun when you pass the bun flag, as in bunx --bun playwright test. There is no watch mode, tsconfig and JSX options have no effect, custom ESM loaders are unsupported, and test console output does not reach traces or UI mode.
Ready to take the first step towards unlocking opportunities, realizing goals, and embracing innovation? We're here and eager to connect.