Skip to content

Comments

[Snyk] Upgrade playwright from 1.39.0 to 1.52.0#229

Closed
kwinto wants to merge 1 commit intomainfrom
snyk-upgrade-8a4d287311cca54dbf9d640943369daa
Closed

[Snyk] Upgrade playwright from 1.39.0 to 1.52.0#229
kwinto wants to merge 1 commit intomainfrom
snyk-upgrade-8a4d287311cca54dbf9d640943369daa

Conversation

@kwinto
Copy link
Collaborator

@kwinto kwinto commented Jun 16, 2025

snyk-top-banner

Snyk has created this PR to upgrade playwright from 1.39.0 to 1.52.0.

ℹ️ Keep your dependencies up-to-date. This makes it easier to fix existing vulnerabilities and to more quickly identify and fix newly disclosed vulnerabilities when they affect your project.


  • The recommended version is 857 versions ahead of your current version.

  • The recommended version was released 2 months ago.

Release notes
Package name: playwright
  • 1.52.0 - 2025-04-17

    Highlights

    • New method expect(locator).toContainClass() to ergonomically assert individual class names on the element.

      await expect(page.getByRole('listitem', { name: 'Ship v1.52' })).toContainClass('done');
    • Aria Snapshots got two new properties: /children for strict matching and /url for links.

      await expect(locator).toMatchAriaSnapshot(`
        - list
          - /children: equal
          - listitem: Feature A
          - listitem:
            - link "Feature B":
              - /url: "https://playwright.dev"
      `);

    Test Runner

    • New property testProject.workers allows to specify the number of concurrent worker processes to use for a test project. The global limit of property testConfig.workers still applies.
    • New testConfig.failOnFlakyTests option to fail the test run if any flaky tests are detected, similarly to --fail-on-flaky-tests. This is useful for CI/CD environments where you want to ensure that all tests are stable before deploying.
    • New property testResult.annotations contains annotations for each test retry.

    Miscellaneous

    • New option maxRedirects in apiRequest.newContext() to control the maximum number of redirects.
    • New option ref in locator.ariaSnapshot() to generate reference for each element in the snapshot which can later be used to locate the element.
    • HTML reporter now supports NOT filtering via !@ my-tag or !my-file.spec.ts or !p:my-project.

    Breaking Changes

    • Changes to glob URL patterns in methods like page.route():
      • ? wildcard is not supported any more, it will always match question mark ? character.
      • Ranges/sets [] are not supported anymore. We recommend using regular expressions instead.
    • Method route.continue() does not allow to override the Cookie header anymore. If a Cookie header is provided, it will be ignored, and the cookie will be loaded from the browser's cookie store. To set custom cookies, use browserContext.addCookies().
    • macOS 13 is now deprecated and will no longer receive WebKit updates. Please upgrade to a more recent macOS version to continue benefiting from the latest WebKit improvements.

    Browser Versions

    • Chromium 136.0.7103.25
    • Mozilla Firefox 137.0
    • WebKit 18.4

    This version was also tested against the following stable channels:

    • Google Chrome 135
    • Microsoft Edge 135
  • 1.52.0-beta-1746003413000 - 2025-04-30
  • 1.52.0-beta-1745957400000 - 2025-04-29
  • 1.52.0-beta-1744907613000 - 2025-04-17
  • 1.52.0-beta-1744901303000 - 2025-04-17
  • 1.52.0-beta-1744901255000 - 2025-04-17
  • 1.52.0-beta-1744820742000 - 2025-04-16
  • 1.52.0-beta-1744803648000 - 2025-04-16
  • 1.52.0-beta-1744787339000 - 2025-04-16
  • 1.52.0-beta-1744732215000 - 2025-04-15
  • 1.52.0-beta-1744700862000 - 2025-04-15
  • 1.52.0-alpha-2025-04-15 - 2025-04-15
  • 1.52.0-alpha-2025-04-14 - 2025-04-14
  • 1.52.0-alpha-2025-04-13 - 2025-04-13
  • 1.52.0-alpha-2025-04-12 - 2025-04-12
  • 1.52.0-alpha-2025-04-10 - 2025-04-10
  • 1.52.0-alpha-2025-04-09 - 2025-04-09
  • 1.52.0-alpha-2025-04-08 - 2025-04-08
  • 1.52.0-alpha-2025-04-07 - 2025-04-07
  • 1.52.0-alpha-2025-04-06 - 2025-04-06
  • 1.52.0-alpha-2025-04-05 - 2025-04-05
  • 1.52.0-alpha-2025-04-04 - 2025-04-04
  • 1.52.0-alpha-2025-04-03 - 2025-04-03
  • 1.52.0-alpha-2025-04-02 - 2025-04-02
  • 1.52.0-alpha-2025-04-01 - 2025-04-01
  • 1.52.0-alpha-2025-03-31 - 2025-03-31
  • 1.52.0-alpha-2025-03-30 - 2025-03-30
  • 1.52.0-alpha-2025-03-29 - 2025-03-29
  • 1.52.0-alpha-2025-03-28 - 2025-03-28
  • 1.52.0-alpha-2025-03-27 - 2025-03-27
  • 1.52.0-alpha-2025-03-26 - 2025-03-26
  • 1.52.0-alpha-2025-03-25 - 2025-03-25
  • 1.52.0-alpha-2025-03-24 - 2025-03-24
  • 1.52.0-alpha-2025-03-23 - 2025-03-23
  • 1.52.0-alpha-2025-03-22 - 2025-03-22
  • 1.52.0-alpha-2025-03-21 - 2025-03-21
  • 1.52.0-alpha-2025-03-20 - 2025-03-20
  • 1.52.0-alpha-2025-03-19 - 2025-03-19
  • 1.52.0-alpha-2025-03-18 - 2025-03-18
  • 1.52.0-alpha-2025-03-17 - 2025-03-17
  • 1.52.0-alpha-2025-03-16 - 2025-03-16
  • 1.52.0-alpha-2025-03-15 - 2025-03-15
  • 1.52.0-alpha-2025-03-14 - 2025-03-14
  • 1.52.0-alpha-2025-03-13 - 2025-03-13
  • 1.52.0-alpha-2025-03-12 - 2025-03-12
  • 1.52.0-alpha-2025-03-11 - 2025-03-11
  • 1.52.0-alpha-2025-03-10 - 2025-03-10
  • 1.52.0-alpha-2025-03-09 - 2025-03-09
  • 1.52.0-alpha-2025-03-08 - 2025-03-08
  • 1.52.0-alpha-2025-03-07 - 2025-03-07
  • 1.52.0-alpha-2025-03-06 - 2025-03-06
  • 1.52.0-alpha-2025-03-05 - 2025-03-05
  • 1.52.0-alpha-2025-03-04 - 2025-03-04
  • 1.52.0-alpha-2025-03-03 - 2025-03-03
  • 1.52.0-alpha-2025-03-02 - 2025-03-02
  • 1.52.0-alpha-2025-03-01 - 2025-03-01
  • 1.52.0-alpha-1743448135000 - 2025-04-01
  • 1.52.0-alpha-1743163434000 - 2025-03-28
  • 1.52.0-alpha-1743011787000 - 2025-03-26
  • 1.52.0-alpha-1742413711000 - 2025-03-19
  • 1.52.0-alpha-1742413599000 - 2025-03-19
  • 1.52.0-alpha-1742404918000 - 2025-03-19
  • 1.52.0-alpha-1742397713000 - 2025-03-19
  • 1.52.0-alpha-1741100475000 - 2025-03-04
  • 1.51.1 - 2025-03-17

    Highlights

    #35093 - [Regression]: TimeoutOverflowWarning: 2149630296.634 does not fit into a 32-bit signed integer
    #35138 - [Regression]: TypeError: Cannot read properties of undefined (reading 'expectInfo')

    Browser Versions

    • Chromium 134.0.6998.35
    • Mozilla Firefox 135.0
    • WebKit 18.4

    This version was also tested against the following stable channels:

    • Google Chrome 133
    • Microsoft Edge 133
  • 1.51.1-beta-1742374234000 - 2025-03-19
  • 1.51.1-beta-1742218617000 - 2025-03-17
  • 1.51.0 - 2025-03-06

    StorageState for indexedDB

    • New option indexedDB for browserContext.storageState() allows to save and restore IndexedDB contents. Useful when your application uses IndexedDB API to store authentication tokens, like Firebase Authentication.

      Here is an example following the authentication guide:

      // tests/auth.setup.ts
      import { test as setup, expect } from '@ playwright/test';
      import path from 'path';

      const authFile = path.join(__dirname, '../playwright/.auth/user.json');

      setup('authenticate', async ({ page }) => {
      await page.goto('/');
      // ... perform authentication steps ...

      // make sure to save indexedDB
      await page.context().storageState({ path: authFile, indexedDB: true });
      });

    Copy prompt

    New "Copy prompt" button on errors in the HTML report, trace viewer and UI mode. Click to copy a pre-filled LLM prompt that contains the error message and useful context for fixing the error.

    Copy prompt

    Filter visible elements

    New option visible for locator.filter() allows matching only visible elements.

    // example.spec.ts
    test('some test', async ({ page }) => {
      // Ignore invisible todo items.
      const todoItems = page.getByTestId('todo-item').filter({ visible: true });
      // Check there are exactly 3 visible ones.
      await expect(todoItems).toHaveCount(3);
    });

    Git information in HTML report

    Set option testConfig.captureGitInfo to capture git information into testConfig.metadata.

    // playwright.config.ts
    import { defineConfig } from '@ playwright/test';

    export default defineConfig({
    captureGitInfo: { commit: true, diff: true }
    });

    HTML report will show this information when available:

    Git information in the report

    Test Step improvements

    A new TestStepInfo object is now available in test steps. You can add step attachments or skip the step under some conditions.

    test('some test', async ({ page, isMobile }) => {
    // Note the new "step" argument:
    await test.step('here is my step', async step => {
    step.skip(isMobile, 'not relevant on mobile layouts');

    <span class="pl-c">// ...</span>
    <span class="pl-k">await</span> <span class="pl-s1">step</span><span class="pl-kos">.</span><span class="pl-en">attach</span><span class="pl-kos">(</span><span class="pl-s">'my attachment'</span><span class="pl-kos">,</span> <span class="pl-kos">{</span> <span class="pl-c1">body</span>: <span class="pl-s">'some text'</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span>
    <span class="pl-c">// ...</span>
    

    });
    });

    Miscellaneous

    Browser Versions

    • Chromium 134.0.6998.35
    • Mozilla Firefox 135.0
    • WebKit 18.4

    This version was also tested against the following stable channels:

    • Google Chrome 133
    • Microsoft Edge 133
  • 1.51.0-beta-1741803045000 - 2025-03-12
  • 1.51.0-beta-1741375746000 - 2025-03-07
  • 1.51.0-beta-1741261385000 - 2025-03-06
  • 1.51.0-beta-1741251928000 - 2025-03-06
  • 1.51.0-beta-1741251619000 - 2025-03-06
  • 1.51.0-beta-1741236322000 - 2025-03-06
  • 1.51.0-beta-1741211717000 - 2025-03-05
  • 1.51.0-beta-1741209067000 - 2025-03-05
  • 1.51.0-beta-1741194054000 - 2025-03-05
  • 1.51.0-beta-1741194042000 - 2025-03-05
  • 1.51.0-beta-1741188941000 - 2025-03-05
  • 1.51.0-beta-1741188456000 - 2025-03-05
  • 1.51.0-beta-1741187196000 - 2025-03-05
  • 1.51.0-beta-1741166263000 - 2025-03-05
  • 1.51.0-beta-1741166195000 - 2025-03-05
  • 1.51.0-beta-1741145440000 - 2025-03-05
  • 1.51.0-beta-1741114139000 - 2025-03-04
  • 1.51.0-beta-1741105903000 - 2025-03-04
  • 1.51.0-beta-1741105440000 - 2025-03-04
  • 1.51.0-beta-1740773665000 - 2025-02-28
  • 1.51.0-alpha-2025-02-28 - 2025-02-28
  • 1.51.0-alpha-2025-02-27 - 2025-02-27
  • 1.51.0-alpha-2025-02-26 - 2025-02-26
  • 1.51.0-alpha-2025-02-19 - 2025-02-19
  • 1.51.0-alpha-2025-02-18 - 2025-02-18
  • 1.51.0-alpha-2025-02-17 - 2025-02-17
  • 1.51.0-alpha-2025-02-16 - 2025-02-16
  • 1.51.0-alpha-2025-02-15 - 2025-02-15
  • 1.51.0-alpha-2025-02-14 - 2025-02-14
  • 1.51.0-alpha-2025-02-13 - 2025-02-13
  • 1.51.0-alpha-2025-02-12 - 2025-02-12
  • 1.51.0-alpha-2025-02-11 - 2025-02-11
  • 1.51.0-alpha-2025-02-10 - 2025-02-10
  • 1.51.0-alpha-2025-02-09 - 2025-02-09
  • 1.51.0-alpha-2025-02-08 - 2025-02-08
  • 1.51.0-alpha-2025-02-07 - 2025-02-07
  • 1.51.0-alpha-2025-02-06 - 2025-02-06
  • 1.51.0-alpha-2025-02-05 - 2025-02-05
  • 1.51.0-alpha-2025-02-04 - 2025-02-04
  • 1.51.0-alpha-2025-02-03 - 2025-02-03
  • 1.51.0-alpha-2025-02-02 - 2025-02-02
  • 1.51.0-alpha-2025-02-01 - 2025-02-01
  • 1.51.0-alpha-2025-01-31 - 2025-01-31
  • 1.51.0-alpha-2025-01-30 - 2025-01-30
  • 1.51.0-alpha-2025-01-29 - 2025-01-29
  • 1.51.0-alpha-2025-01-28 - 2025-01-28
  • 1.51.0-alpha-2025-01-27 - 2025-01-27
  • 1.51.0-alpha-2025-01-26 - 2025-01-26
  • 1.51.0-alpha-2025-01-25 - 2025-01-25
  • 1.51.0-alpha-2025-01-24 - 2025-01-24
  • 1.51.0-alpha-2025-01-23 - 2025-01-23
  • 1.51.0-alpha-2025-01-22 - 2025-01-22
  • 1.51.0-alpha-2025-01-21 - 2025-01-21
  • 1.51.0-alpha-2025-01-20 - 2025-01-20
  • 1.51.0-alpha-2025-01-19 - 2025-01-19
  • 1.51.0-alpha-2025-01-18 - 2025-01-18
  • 1.51.0-alpha-1740682850000 - 2025-02-27
  • 1.51.0-alpha-1740489818000 - 2025-02-25
  • 1.50.1 - 2025-01-31

    Highlights

    #34483 - [Feature]: single aria snapshot for different engines/browsers
    #34497 - [Bug]: Firefox not handling keepalive: true fetch requests
    #34504 - [Bug]: update snapshots not creating good diffs
    #34507 - [Bug]: snapshotPathTemplate doesnt work when multiple projects
    #34462 - [Bug]: updateSnapshots "changed" throws an error

    Browser Versions

    • Chromium 133.0.6943.16
    • Mozilla Firefox 134.0
    • WebKit 18.2

    This version was also tested against the following stable channels:

    • Google Chrome 132
    • Microsoft Edge 132
  • 1.50.1-beta-1738613447000 - 2025-02-03
  • 1.50.1-beta-1738592302000 - 2025-02-03
  • 1.50.1-beta-1738589118000 - 2025-02-03
  • 1.50.1-beta-1738339353000 - 2025-01-31
  • 1.50.0 - 2025-01-23

    Test runner

    • New option timeout allows specifying a maximum run time for an individual test step. A timed-out step will fail the execution of the test.

      test('some test', async ({ page }) => {
        await test.step('a step', async () => {
          // This step can time out separately from the test
        }, { timeout: 1000 });
      });
    • New method test.step.skip() to disable execution of a test step.

      test('some test', async ({ page }) => {
      await test.step('before running step', async () => {
      // Normal step
      });

      await test.step.skip('not yet ready', async () => {
      // This step is skipped
      });

      await test.step('after running step', async () => {
      // This step still runs even though the previous one was skipped
      });
      });

    • Expanded expect(locator).toMatchAriaSnapshot() to allow storing of aria snapshots in separate YAML files.

    • Added method expect(locator).toHaveAccessibleErrorMessage() to assert the Locator points to an element with a given aria errormessage.

    • Option testConfig.updateSnapshots added the configuration enum changed. changed updates only the snapshots that have changed, whereas all now updates all snapshots, regardless of whether there are any differences.

    • New option testConfig.updateSourceMethod defines the way source code is updated when testConfig.updateSnapshots is configured. Added overwrite and 3-way modes that write the changes into source code, on top of existing patch mode that creates a patch file.

      npx playwright test --update-snapshots=changed --update-source-method=3way
    • Option testConfig.webServer added a gracefulShutdown field for specifying a process kill signal other than the default SIGKILL.

    • Exposed testStep.attachments from the reporter API to allow retrieval of all attachments created by that step.

    • New option pathTemplate for toHaveScreenshot and toMatchAriaSnapshot assertions in the testConfig.expect configuration.

    UI updates

    • Updated default HTML reporter to improve display of attachments.
    • New button for picking elements to produce aria snapshots.
    • Additional details (such as keys pressed) are now displayed alongside action API calls in traces.
    • Display of canvas content in traces is error-prone. Display is now disabled by default, and can be enabled via the Display canvas content UI setting.
    • Call and Network panels now display additional time information.

    Breaking

    Browser Versions

    • Chromium 133.0.6943.16
    • Mozilla Firefox 134.0
    • WebKit 18.2

    This version was also tested against the following stable channels:

    • Google Chrome 132
    • Microsoft Edge 132
  • 1.50.0-beta-1738269400000 - 2025-01-30
  • 1.50.0-beta-1738267712000 - 2025-01-30
  • 1.50.0-beta-1738240825000 - 2025-01-30
  • 1.50.0-beta-1738235262000 - 2025-01-30
  • 1.50.0-beta-1738199921000 - 2025-01-30
  • 1.50.0-beta-1738167398000 - 2025-01-29
  • 1.50.0-beta-1738167361000 - 2025-01-29
  • 1.50.0-beta-1738162324000 - 2025-01-29
  • 1.50.0-beta-1738148461000 - 2025-01-29
  • 1.50.0-beta-1738116015000 - 2025-01-29
  • 1.50.0-beta-1738109212000 - 2025-01-29
  • 1.50.0-beta-1738103953000 - 2025-01-28
  • 1.50.0-beta-1738058149000 - 2025-01-28
  • 1.50.0-beta-1737762224000 - 2025-01-24
  • 1.50.0-beta-1737749840000 - 2025-01-24
  • 1.50.0-beta-1737639506000 - 2025-01-23
  • 1.50.0-beta-1737637449000 - 2025-01-23
  • 1.50.0-beta-1737629780000 - 2025-01-23
  • 1.50.0-beta-1737569167000 - 2025-01-22
  • 1.50.0-beta-1737568569000 - 2025-01-22
  • 1.50.0-beta-1737557690000 - 2025-01-22
  • 1.50.0-beta-1737538027000 - 2025-01-22
  • 1.50.0-beta-1737532416000 - 2025-01-22
  • 1.50.0-beta-1737532333000 - 2025-01-22
  • 1.50.0-beta-1737179657000 - 2025-01-18
  • 1.50.0-beta-1737153401000 - 2025-01-17
  • 1.50.0-beta-1737137869000 - 2025-01-17
  • 1.50.0-beta-1731498714000 - 2024-11-13
  • 1.50.0-alpha-2025-01-17 - 2025-01-17
  • 1.50.0-alpha-2025-01-16 - 2025-01-16
  • 1.50.0-alpha-2025-01-15 - 2025-01-15
  • 1.50.0-alpha-2025-01-14 - 2025-01-14
  • 1.50.0-alpha-2025-01-13 - 2025-01-13
  • 1.50.0-alpha-2025-01-12 - 2025-01-12
  • 1.50.0-alpha-2025-01-11 - 2025-01-11
  • 1.50.0-alpha-2025-01-07 - 2025-01-07
  • 1.50.0-alpha-2025-01-06 - 2025-01-06
  • 1.50.0-alpha-2025-01-05 - 2025-01-05
  • 1.50.0-alpha-2025-01-04 - 2025-01-04
  • 1.50.0-alpha-2025-01-03 - 2025-01-03
  • 1.50.0-alpha-2025-01-02 - 2025-01-02
  • 1.50.0-alpha-2025-01-01 - 2025-01-01
  • 1.50.0-alpha-2024-12-31 - 2024-12-31
  • 1.50.0-alpha-2024-12-30 - 2024-12-30
  • 1.50.0-alpha-2024-12-29 - 2024-12-29
  • 1.50.0-alpha-2024-12-28 - 2024-12-28
  • 1.50.0-alpha-2024-12-27 - 2024-12-27
  • 1.50.0-alpha-2024-12-26 - 2024-12-26
  • 1.50.0-alpha-2024-12-25 - 2024-12-25
  • 1.50.0-alpha-2024-12-24 - 2024-12-24
  • 1.50.0-alpha-2024-12-23 - 2024-12-23
  • 1.50.0-alpha-2024-12-22 - 2024-12-22
  • 1.50.0-alpha-2024-12-21 - 2024-12-21
  • 1.50.0-alpha-2024-12-20 - 2024-12-20
  • 1.50.0-alpha-2024-12-19 - 2024-12-19
  • 1.50.0-alpha-2024-12-18 - 2024-12-18
  • 1.50.0-alpha-2024-12-17 - 2024-12-17
  • 1.50.0-alpha-2024-12-16 - 2024-12-16
  • 1.50.0-alpha-2024-12-15 - 2024-12-15
  • 1.50.0-alpha-2024-12-14 - 2024-12-14
  • 1.50.0-alpha-2024-12-13 - 2024-12-13
  • 1.50.0-alpha-2024-12-12 - 2024-12-12
  • 1.50.0-alpha-2024-12-11 - 2024-12-11
  • 1.50.0-alpha-2024-12-10 - 2024-12-10
  • 1.50.0-alpha-2024-12-09 - 2024-12-09
  • 1.50.0-alpha-2024-12-08 - 2024-12-08
  • 1.50.0-alpha-2024-12-07 - 2024-12-07
  • 1.50.0-alpha-2024-12-06 - 2024-12-06
  • 1.50.0-alpha-2024-12-05 - 2024-12-05
  • 1.50.0-alpha-2024-12-04 - 2024-12-04
  • 1.50.0-alpha-2024-12-03 - 2024-12-03
  • 1.50.0-alpha-2024-12-02 - 2024-12-02
  • 1.50.0-alpha-2024-12-01 - 2024-12-01
  • 1.50.0-alpha-2024-11-30 - 2024-11-30
  • 1.50.0-alpha-2024-11-29 - 2024-11-29
  • 1.50.0-alpha-2024-11-28 - 2024-11-28
  • 1.50.0-alpha-2024-11-27 - 2024-11-27
  • 1.50.0-alpha-2024-11-26 - 2024-11-26
  • 1.50.0-alpha-2024-11-25 - 2024-11-25
  • 1.50.0-alpha-2024-11-24 - 2024-11-24
  • 1.50.0-alpha-2024-11-23 - 2024-11-23
  • 1.50.0-alpha-2024-11-22 - 2024-11-22
  • 1.50.0-alpha-2024-11-21 - 2024-11-21
  • 1.50.0-alpha-2024-11-20 - 2024-11-20
  • 1.50.0-alpha-2024-11-19 - 2024-11-19
  • 1.50.0-alpha-2024-11-18 - 2024-11-18
  • 1.50.0-alpha-2024-11-17 - 2024-11-17
  • 1.50.0-alpha-2024-11-16 - 2024-11-16
  • 1.50.0-alpha-2024-11-15 - 2024-11-15
  • 1.50.0-alpha-2024-11-14 - 2024-11-14
  • 1.50.0-alpha-1737075373000 - 2025-01-17
  • 1.50.0-alpha-1737068696000 - 2025-01-16
  • 1.50.0-alpha-1736502759000 - 2025-01-10
  • 1.49.1 - 2024-12-10

    Highlights

    #33802 - [Bug]: Codegen's Clear button doesn't work if not recording
    #33806 - [Bug]: playwright hangs while waiting for pending navigations
    #33787 - [Bug]: VSC extension isn't capturing all entered text
    #33788 - [Regression]: Double clicking the steps in trace viewer doesn't filter actions
    #33772 - [Bug]: aria_snapshot generates invalid yaml when combined with an aria-label attribut
    #33791 - [Bug]: text input with number value raises "container is not iterable" with to_match_aria_snapshot
    #33644 - [Bug]: getByRole can't find element with the accessible name from label element when aria-labelledby is not valid
    #33660 - [Regression]: Unable to open Playwright UI in Dark Mode

    Browser Versions

    • Chromium 131.0.6778.33
    • Mozilla Firefox 132.0
    • WebKit 18.2

    This version was also tested against the following stable channels:

    • Google Chrome 130
    • Microsoft Edge 130
  • 1.49.1-beta-1735303389000 - 2024-12-27
  • 1.49.1-beta-1733793925000 - 2024-12-10
  • 1.49.0 - 2024-11-18

    Aria snapshots

    New assertion expect(locator).toMatchAriaSnapshot() verifies page structure by comparing to an expected accessibility tree, represented as YAML.

    await page.goto('https://playwright.dev');
    await expect(page.locator('body')).toMatchAriaSnapshot(`
      - banner:
        - heading /Playwright enables reliable/ [level=1]
        - link "Get started"
        - link "Star microsoft/playwright on GitHub"
      - main:
        - img "Browsers (Chromium, Firefox, WebKit)"
        - heading "Any browser • Any platform • One API"
    `);

    You can generate this assertion with Test Generator and update the expected snapshot with --update-snapshots command line flag.

    Learn more in the aria snapshots guide.

    Test runner

    Breaking: channels chrome, msedge and similar switch to new headless

    This change affects you if you're using one of the following channels in your playwright.config.ts:

    • chrome, chrome-dev, chrome-beta, or chrome-canary
    • msedge, msedge-dev, msedge-beta, or msedge-canary

    What do I need to do?

    After updating to Playwright v1.49, run your test suite. If it still passes, you're good to go. If not, you will probably need to update your snapshots, and adapt some of your test code around PDF viewers and extensions. See issue #33566 for more details.

    Other breaking changes

    • There will be no more updates for WebKit on Ubuntu 20.04 and Debian 11. We recommend updating your OS to a later version.
    • Package @ playwright/experimental-ct-vue2 will no longer be updated.
    • Package @ playwright/experimental-ct-solid will no longer be updated.

    Try new Chromium headless

    You can opt into the new headless mode by using 'chromium' channel. As official Chrome documentation puts it:

    New Headless on the other hand is the real Chrome browser, and is thus more authentic, reliable, and offers more features. This makes it more suitable for high-accuracy end-to-end web app testing or browser extension testing.

    See issue #33566 for the list of possible breakages you could encounter and more details on Chromium headless. Please file an issue if you see any problems after opting in.

    import { defineConfig, devices } from '@ playwright/test';

    export default defineConfig({
    projects: [
    {
    name: 'chromium',
    use: { ...devices['Desktop Chrome'], channel: 'chromium' },
    },
    ],
    });

    Miscellaneous

    • <canvas> elements inside a snapshot now draw a preview.
    • New method tracing.group() to visually group actions in the trace.
    • Playwright docker images switched from Node.js v20 to Node.js v22 LTS.

    Browser Versions

    • Chromium 131.0.6778.33
    • Mozilla Firefox 132.0
    • WebKit 18.2

    This version was also tested against the following stable channels:

    • Google Chrome 130
    • Microsoft Edge 130
  • 1.49.0-beta-1733521450000 - 2024-12-06
  • 1.49.0-beta-1733285915000 - 2024-12-04
  • 1.49.0-beta-1733246833000 - 2024-12-03
  • 1.49.0-beta-1732799609000 - 2024-11-28
  • 1.49.0-beta-1732795940000 - 2024-11-28
  • 1.49.0-beta-1732795768000 - 2024-11-28
  • 1.49.0-beta-1732795640000 - 2024-11-28
  • 1.49.0-beta-1732210972000 - 2024-11-21
  • 1.49.0-beta-1732200847000 - 2024-11-21
  • 1.49.0-beta-1732183793000 - 2024-11-21
  • 1.49.0-beta-1732179895000 - 2024-11-21
  • 1.49.0-beta-1732065049000 - 2024-11-20
  • 1.49.0-beta-1732021985000 - 2024-11-19
  • 1.49.0-beta-1732008569000 - 2024-11-19
  • 1.49.0-beta-1731954680000 - 2024-11-18
  • 1.49.0-beta-1731772650000 - 2024-11-16
  • 1.49.0-beta-1731718789000 - 2024-11-16
  • 1.49.0-beta-1731709328000 - 2024-11-15
  • 1.49.0-beta-1731703794000 - 2024-11-15
  • 1.49.0-beta-1731687401000 - 2024-11-15
  • 1.49.0-beta-1731672404000 - 2024-11-15
  • 1.49.0-beta-1731616844000 - 2024-11-14
  • 1.49.0-beta-1731595428000 - 2024-11-14
  • 1.49.0-beta-1731591637000 - 2024-11-14
  • 1.49.0-beta-1731582214000 - 2...

Snyk has created this PR to upgrade playwright from 1.39.0 to 1.52.0.

See this package in npm:
playwright

See this project in Snyk:
https://app.snyk.io/org/cognigy-gmbh/project/056b6112-fb88-4e0a-ac0e-394c72d16862?utm_source=github&utm_medium=referral&page=upgrade-pr
@KeiKey KeiKey closed this Jun 23, 2025
@KeiKey KeiKey deleted the snyk-upgrade-8a4d287311cca54dbf9d640943369daa branch June 23, 2025 09:25
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants