Packages

@playwright/test

1.65.0 · 5 Nov 2026Apache-2.0126M / weekRepositoryHomepagenpmAtom feed

Your version

Where each line stands

Plan an upgrade
  • 1.x1.65.0No known advisoryLatest line
  • 0.x0.1111.0No known advisoryTo 1.65.0

Latest releases

All 170 releases
  1. 1.65.0

    5 Nov 2026
    • Breaking

      TypeScript class fields now follow useDefineForClassFields from your tsconfig.json, the same as tsc. It is enabled for ES2022 and later targets, and when target is not specified. A field initializer that reads a constructor parameter property now fails, because the initializer runs first:

      class LoginPage {
        // TypeError: Cannot read properties of undefined (reading 'getByRole')
        readonly submit = this.page.getByRole('button', { name: 'Submit' });
      
        constructor(private readonly page: Page) {}
      }

      Move the initialization to the constructor, or set "useDefineForClassFields": false in your tsconfig.json.

    • Breaking

      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 inert attribute, or inside such an element, now times out if the element stays inert.

    • Breaking

      A sharded run now fails with "No tests found" when no tests match across all shards. Pass --pass-with-no-tests to allow this. An empty shard still passes when other shards have tests.

  2. 1.64.1

    14 Oct 2026
    • Bug: _electron.launch intermittently loses a packaged app's first window since 1.64.0

    • Regression: Chromium 155+ aborts a preflighted cross-origin redirect whenever any route is registered (net::ERR_ABORTED)

  3. 1.64.0

    7 Oct 2026
    • Breaking

      screen property is now forwarded from the device descriptors. If you use ...devices['Desktop Chrome'] and alike, window.screen and media queries now see the emulated screen size. You can opt-out by explicitly setting screen to undefined:

      // playwright.config.ts
      export default defineConfig({
        use: {
          ...devices['Desktop Chrome'],
          screen: undefined,
        },
      });
    • Breaking

      JSX in your test files now follows your tsconfig.json. Playwright compiles JSX in test files according to the jsx, jsxFactory, jsxFragmentFactory and jsxImportSource tsconfig options, and defaults to the automatic runtime from react/jsx-runtime.

    • Breaking

      --update-snapshots=missing now 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.

Dependency tracking · free for 3 projects

Know when your own dependencies move

@playwright/test published 15 releases in the last 12 months. inlinr folds the routine ones into a line and keeps the few that need you.

  • Advisories reach you

    An email when a critical or high advisory affects a project, before the next install.

  • Upgrades checked first

    Peer ranges, Node, ESM-only and types changes read before you bump.

  • Only what matters

    Majors and breaking notes stay; patches and sibling bumps fold into one line.

How dependency tracking works

Registry facts last checked 12 Nov 2026. Releases and advisories last read 12 Nov 2026.