[Snyk] Upgrade playwright from 1.57.0 to 1.58.0 #82

Closed
opened 2026-04-05 16:18:50 +02:00 by MrUnknownDE · 0 comments
Owner

Originally created by @simlarsen on 2/16/2026

snyk-top-banner

Snyk has created this PR to upgrade playwright from 1.57.0 to 1.58.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 76 versions ahead of your current version.

  • The recommended version was released 24 days ago.

Release notes
Package name: playwright
  • 1.58.0 - 2026-01-23

    📣 Playwright CLI+SKILLs 📣

    We are adding a new token-efficient CLI mode of operation to Playwright with the skills located at playwright-cli. This brings the long-awaited official SKILL-focused CLI mode to our story and makes it more coding agent-friendly.

    It is the first snapshot with the essential command set (which is already larger than the original MCP!), but we expect it to grow rapidly. Unlike the token use, that one we expect to go down since snapshots are no longer forced into the LLM!

    Timeline

    If you're using merged reports, the HTML report Speedboard tab now shows the Timeline:

    Timeline chart in the HTML report

    UI Mode and Trace Viewer Improvements

    • New 'system' theme option follows your OS dark/light mode preference
    • Search functionality (Cmd/Ctrl+F) is now available in code editors
    • Network details panel has been reorganized for better usability
    • JSON responses are now automatically formatted for readability

    Thanks to @ cpAdm for contributing these improvements!

    Miscellaneous

    browserType.connectOverCDP() now accepts an isLocal option. When set to true, it tells Playwright that it runs on the same host as the CDP server, enabling file system optimizations.

    Breaking Changes ⚠️

    • Removed _react and _vue selectors. See locators guide for alternatives.
    • Removed :light selector engine suffix. Use standard CSS selectors instead.
    • Option devtools from browserType.launch() has been removed. Use args: ['--auto-open-devtools-for-tabs'] instead.
    • Removed macOS 13 support for WebKit. We recommend to upgrade your macOS version, or keep using an older Playwright version.

    Browser Versions

    • Chromium 145.0.7632.6
    • Mozilla Firefox 146.0.1
    • WebKit 26.0

    This version was also tested against the following stable channels:

    • Google Chrome 144
    • Microsoft Edge 144
  • 1.58.0-beta-1769780184000 - 2026-01-30
  • 1.58.0-beta-1769780171000 - 2026-01-30
  • 1.58.0-beta-1769640251000 - 2026-01-28
  • 1.58.0-beta-1769164624000 - 2026-01-23
  • 1.58.0-beta-1769095880000 - 2026-01-22
  • 1.58.0-alpha-2026-01-22 - 2026-01-22
  • 1.58.0-alpha-2026-01-21 - 2026-01-21
  • 1.58.0-alpha-2026-01-20 - 2026-01-20
  • 1.58.0-alpha-2026-01-19 - 2026-01-19
  • 1.58.0-alpha-2026-01-18 - 2026-01-18
  • 1.58.0-alpha-2026-01-17 - 2026-01-17
  • 1.58.0-alpha-2026-01-16 - 2026-01-16
  • 1.58.0-alpha-2026-01-15 - 2026-01-15
  • 1.58.0-alpha-2026-01-14 - 2026-01-14
  • 1.58.0-alpha-2026-01-13 - 2026-01-13
  • 1.58.0-alpha-2026-01-12 - 2026-01-12
  • 1.58.0-alpha-2026-01-11 - 2026-01-11
  • 1.58.0-alpha-2026-01-10 - 2026-01-10
  • 1.58.0-alpha-2026-01-09 - 2026-01-09
  • 1.58.0-alpha-2026-01-08 - 2026-01-08
  • 1.58.0-alpha-2026-01-07 - 2026-01-07
  • 1.58.0-alpha-2026-01-06 - 2026-01-06
  • 1.58.0-alpha-2026-01-05 - 2026-01-05
  • 1.58.0-alpha-2026-01-04 - 2026-01-04
  • 1.58.0-alpha-2026-01-03 - 2026-01-03
  • 1.58.0-alpha-2026-01-02 - 2026-01-02
  • 1.58.0-alpha-2026-01-01 - 2026-01-01
  • 1.58.0-alpha-2025-12-31 - 2025-12-31
  • 1.58.0-alpha-2025-12-30 - 2025-12-30
  • 1.58.0-alpha-2025-12-29 - 2025-12-29
  • 1.58.0-alpha-2025-12-28 - 2025-12-28
  • 1.58.0-alpha-2025-12-27 - 2025-12-27
  • 1.58.0-alpha-2025-12-26 - 2025-12-26
  • 1.58.0-alpha-2025-12-25 - 2025-12-25
  • 1.58.0-alpha-2025-12-24 - 2025-12-24
  • 1.58.0-alpha-2025-12-23 - 2025-12-23
  • 1.58.0-alpha-2025-12-22 - 2025-12-22
  • 1.58.0-alpha-2025-12-21 - 2025-12-21
  • 1.58.0-alpha-2025-12-20 - 2025-12-20
  • 1.58.0-alpha-2025-12-19 - 2025-12-19
  • 1.58.0-alpha-2025-12-18 - 2025-12-18
  • 1.58.0-alpha-2025-12-17 - 2025-12-17
  • 1.58.0-alpha-2025-12-16 - 2025-12-16
  • 1.58.0-alpha-2025-12-15 - 2025-12-15
  • 1.58.0-alpha-2025-12-14 - 2025-12-14
  • 1.58.0-alpha-2025-12-13 - 2025-12-13
  • 1.58.0-alpha-2025-12-12 - 2025-12-12
  • 1.58.0-alpha-2025-12-11 - 2025-12-11
  • 1.58.0-alpha-2025-12-10 - 2025-12-10
  • 1.58.0-alpha-2025-12-09 - 2025-12-09
  • 1.58.0-alpha-2025-12-08 - 2025-12-08
  • 1.58.0-alpha-2025-12-07 - 2025-12-07
  • 1.58.0-alpha-2025-12-06 - 2025-12-06
  • 1.58.0-alpha-2025-12-05 - 2025-12-05
  • 1.58.0-alpha-2025-12-04 - 2025-12-04
  • 1.58.0-alpha-2025-12-03 - 2025-12-03
  • 1.58.0-alpha-2025-12-02 - 2025-12-02
  • 1.58.0-alpha-2025-12-01 - 2025-12-01
  • 1.58.0-alpha-2025-11-30 - 2025-11-30
  • 1.58.0-alpha-2025-11-29 - 2025-11-29
  • 1.58.0-alpha-2025-11-28 - 2025-11-28
  • 1.58.0-alpha-2025-11-27 - 2025-11-27
  • 1.58.0-alpha-2025-11-26 - 2025-11-26
  • 1.58.0-alpha-2025-11-25 - 2025-11-25
  • 1.58.0-alpha-2025-11-24 - 2025-11-24
  • 1.58.0-alpha-2025-11-23 - 2025-11-23
  • 1.58.0-alpha-2025-11-22 - 2025-11-22
  • 1.58.0-alpha-2025-11-21 - 2025-11-21
  • 1.58.0-alpha-1767864918000 - 2026-01-08
  • 1.58.0-alpha-1766484475000 - 2025-12-23
  • 1.58.0-alpha-1766189059000 - 2025-12-20
  • 1.58.0-alpha-1764708599000 - 2025-12-02
  • 1.58.0-alpha-1764682370000 - 2025-12-02
  • 1.58.0-alpha-1764325208000 - 2025-11-28
  • 1.58.0-alpha-1763757971000 - 2025-11-21
  • 1.57.0 - 2025-11-25

    Speedboard

    In HTML reporter, there's a new tab we call "Speedboard":

    speedboard

    It shows you all your executed tests sorted by slowness,
    and can help you understand where your test suite is taking longer than expected.
    Take a look at yours - maybe you'll find some tests that are spending a longer time waiting than they should!

    Chrome for Testing

    Starting with this release, Playwright switches from Chromium, to using Chrome for Testing builds. Both headed and headless browsers are subject to this. Your tests should still be passing after upgrading to Playwright 1.57.

    We're expecting no functional changes to come from this switch. The biggest change is the new icon and title in your toolbar.

    new and old logo

    If you still see an unexpected behaviour change, please file an issue.

    On Arm64 Linux, Playwright continues to use Chromium.

    Waiting for webserver output

    testConfig.webServer added a wait field. Pass a regular expression, and Playwright will wait until the webserver logs match it.

    export default defineConfig({
    webServer: {
    command: 'npm run start',
    wait: {
    stdout: '/Listening on port (?<my_server_port>\d+)/'
    },
    },
    });">
    import { defineConfig } from '@ playwright/test';

    export default defineConfig({
    webServer: {
    command: 'npm run start',
    wait: {
    stdout: '/Listening on port (?<my_server_port>\d+)/'
    },
    },
    });

    If you include a named capture group into the expression, then Playwright will provide the capture group contents via environment variables:

    test.use({ baseUrl: http://localhost:${process.env.MY_SERVER_PORT ?? 3000} });

    test('homepage', async ({ page }) => {
    await page.goto('/');
    });">

    import { test, expect } from '@ playwright/test';

    test.use({ baseUrl: http://localhost:<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">env</span><span class="pl-kos">.</span><span class="pl-c1">MY_SERVER_PORT</span> <span class="pl-c1">??</span> <span class="pl-c1">3000</span><span class="pl-kos">}</span></span> });

    test('homepage', async ({ page }) => {
    await page.goto('/');
    });

    This is not just useful for capturing varying ports of dev servers. You can also use it to wait for readiness of a service that doesn't expose an HTTP readiness check, but instead prints a readiness message to stdout or stderr.

    Breaking Change

    After 3 years of being deprecated, we removed Page#accessibility from our API. Please use other libraries such as Axe if you need to test page accessibility. See our Node.js guide for integration with Axe.

    New APIs

    • New property testConfig.tag adds a tag to all tests in this run. This is useful when using merge-reports.
    • worker.on('console') event is emitted when JavaScript within the worker calls one of console API methods, e.g. console.log or console.dir. worker.waitForEvent() can be used to wait for it.
    • locator.description() returns locator description previously set with locator.describe(), and Locator.toString() now uses the description when available.
    • New option steps in locator.click() and locator.dragTo() that configures the number of mousemove events emitted while moving the mouse pointer to the target element.
    • Network requests issued by Service Workers are now reported and can be routed through the BrowserContext, only in Chromium. You can opt out using the PLAYWRIGHT_DISABLE_SERVICE_WORKER_NETWORK environment variable.
    • Console messages from Service Workers are dispatched through worker.on('console'). You can opt out of this using the PLAYWRIGHT_DISABLE_SERVICE_WORKER_CONSOLE environment variable.

    Browser Versions

    • Chromium 143.0.7499.4
    • Mozilla Firefox 144.0.2
    • WebKit 26.0
from playwright GitHub release notes

Important

  • Check the changes in this PR to ensure they won't cause issues with your project.
  • This PR was automatically created by Snyk using the credentials of a real user.

Note: You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs.

For more information:

*Originally created by @simlarsen on 2/16/2026* ![snyk-top-banner](https://res.cloudinary.com/snyk/image/upload/r-d/scm-platform/snyk-pull-requests/pr-banner-default.svg) <h3>Snyk has created this PR to upgrade playwright from 1.57.0 to 1.58.0.</h3> :information_source: 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. <hr/> - The recommended version is **76 versions** ahead of your current version. - The recommended version was released **24 days ago**. <details> <summary><b>Release notes</b></summary> <br/> <details> <summary>Package name: <b>playwright</b></summary> <ul> <li> <b>1.58.0</b> - <a href="https://redirect.github.com/microsoft/playwright/releases/tag/v1.58.0">2026-01-23</a></br><h2>📣 Playwright CLI+SKILLs 📣</h2> <p>We are adding a new token-efficient CLI mode of operation to Playwright with the skills located at <a href="https://redirect.github.com/microsoft/playwright-cli">playwright-cli</a>. This brings the long-awaited official SKILL-focused CLI mode to our story and makes it more coding agent-friendly.</p> <blockquote> <p>It is the first snapshot with the essential command set (which is already larger than the original MCP!), but we expect it to grow rapidly. Unlike the token use, that one we expect to go down since snapshots are no longer forced into the LLM!</p> </blockquote> <h2>Timeline</h2> <p>If you're using <a href="https://playwright.dev/docs/test-sharding#merging-reports-from-multiple-environments" rel="nofollow">merged reports</a>, the HTML report Speedboard tab now shows the Timeline:</p> <p><a target="_blank" rel="noopener noreferrer" href="https://redirect.github.com/microsoft/playwright/blob/main/docs/src/images/timeline.png?raw=true"><img src="https://github.com/microsoft/playwright/raw/main/docs/src/images/timeline.png?raw=true" alt="Timeline chart in the HTML report" style="max-width: 100%;"></a></p> <h2>UI Mode and Trace Viewer Improvements</h2> <ul> <li>New 'system' theme option follows your OS dark/light mode preference</li> <li>Search functionality (Cmd/Ctrl+F) is now available in code editors</li> <li>Network details panel has been reorganized for better usability</li> <li>JSON responses are now automatically formatted for readability</li> </ul> <p>Thanks to <a href="https://redirect.github.com/cpAdm">@ cpAdm</a> for contributing these improvements!</p> <h2>Miscellaneous</h2> <p><a href="https://playwright.dev/docs/api/class-browsertype#browser-type-connect-over-cdp" rel="nofollow">browserType.connectOverCDP()</a> now accepts an <code>isLocal</code> option. When set to <code>true</code>, it tells Playwright that it runs on the same host as the CDP server, enabling file system optimizations.</p> <h2>Breaking Changes <g-emoji class="g-emoji" alias="warning">⚠️</g-emoji></h2> <ul> <li>Removed <code>_react</code> and <code>_vue</code> selectors. See <a href="https://playwright.dev/docs/locators" rel="nofollow">locators guide</a> for alternatives.</li> <li>Removed <code>:light</code> selector engine suffix. Use standard CSS selectors instead.</li> <li>Option <code>devtools</code> from <a href="https://playwright.dev/docs/api/class-browsertype#browser-type-launch" rel="nofollow">browserType.launch()</a> has been removed. Use <code>args: ['--auto-open-devtools-for-tabs']</code> instead.</li> <li>Removed macOS 13 support for WebKit. We recommend to upgrade your macOS version, or keep using an older Playwright version.</li> </ul> <h2>Browser Versions</h2> <ul> <li>Chromium 145.0.7632.6</li> <li>Mozilla Firefox 146.0.1</li> <li>WebKit 26.0</li> </ul> <p>This version was also tested against the following stable channels:</p> <ul> <li>Google Chrome 144</li> <li>Microsoft Edge 144</li> </ul> </li> <li> <b>1.58.0-beta-1769780184000</b> - 2026-01-30 </li> <li> <b>1.58.0-beta-1769780171000</b> - 2026-01-30 </li> <li> <b>1.58.0-beta-1769640251000</b> - 2026-01-28 </li> <li> <b>1.58.0-beta-1769164624000</b> - 2026-01-23 </li> <li> <b>1.58.0-beta-1769095880000</b> - 2026-01-22 </li> <li> <b>1.58.0-alpha-2026-01-22</b> - 2026-01-22 </li> <li> <b>1.58.0-alpha-2026-01-21</b> - 2026-01-21 </li> <li> <b>1.58.0-alpha-2026-01-20</b> - 2026-01-20 </li> <li> <b>1.58.0-alpha-2026-01-19</b> - 2026-01-19 </li> <li> <b>1.58.0-alpha-2026-01-18</b> - 2026-01-18 </li> <li> <b>1.58.0-alpha-2026-01-17</b> - 2026-01-17 </li> <li> <b>1.58.0-alpha-2026-01-16</b> - 2026-01-16 </li> <li> <b>1.58.0-alpha-2026-01-15</b> - 2026-01-15 </li> <li> <b>1.58.0-alpha-2026-01-14</b> - 2026-01-14 </li> <li> <b>1.58.0-alpha-2026-01-13</b> - 2026-01-13 </li> <li> <b>1.58.0-alpha-2026-01-12</b> - 2026-01-12 </li> <li> <b>1.58.0-alpha-2026-01-11</b> - 2026-01-11 </li> <li> <b>1.58.0-alpha-2026-01-10</b> - 2026-01-10 </li> <li> <b>1.58.0-alpha-2026-01-09</b> - 2026-01-09 </li> <li> <b>1.58.0-alpha-2026-01-08</b> - 2026-01-08 </li> <li> <b>1.58.0-alpha-2026-01-07</b> - 2026-01-07 </li> <li> <b>1.58.0-alpha-2026-01-06</b> - 2026-01-06 </li> <li> <b>1.58.0-alpha-2026-01-05</b> - 2026-01-05 </li> <li> <b>1.58.0-alpha-2026-01-04</b> - 2026-01-04 </li> <li> <b>1.58.0-alpha-2026-01-03</b> - 2026-01-03 </li> <li> <b>1.58.0-alpha-2026-01-02</b> - 2026-01-02 </li> <li> <b>1.58.0-alpha-2026-01-01</b> - 2026-01-01 </li> <li> <b>1.58.0-alpha-2025-12-31</b> - 2025-12-31 </li> <li> <b>1.58.0-alpha-2025-12-30</b> - 2025-12-30 </li> <li> <b>1.58.0-alpha-2025-12-29</b> - 2025-12-29 </li> <li> <b>1.58.0-alpha-2025-12-28</b> - 2025-12-28 </li> <li> <b>1.58.0-alpha-2025-12-27</b> - 2025-12-27 </li> <li> <b>1.58.0-alpha-2025-12-26</b> - 2025-12-26 </li> <li> <b>1.58.0-alpha-2025-12-25</b> - 2025-12-25 </li> <li> <b>1.58.0-alpha-2025-12-24</b> - 2025-12-24 </li> <li> <b>1.58.0-alpha-2025-12-23</b> - 2025-12-23 </li> <li> <b>1.58.0-alpha-2025-12-22</b> - 2025-12-22 </li> <li> <b>1.58.0-alpha-2025-12-21</b> - 2025-12-21 </li> <li> <b>1.58.0-alpha-2025-12-20</b> - 2025-12-20 </li> <li> <b>1.58.0-alpha-2025-12-19</b> - 2025-12-19 </li> <li> <b>1.58.0-alpha-2025-12-18</b> - 2025-12-18 </li> <li> <b>1.58.0-alpha-2025-12-17</b> - 2025-12-17 </li> <li> <b>1.58.0-alpha-2025-12-16</b> - 2025-12-16 </li> <li> <b>1.58.0-alpha-2025-12-15</b> - 2025-12-15 </li> <li> <b>1.58.0-alpha-2025-12-14</b> - 2025-12-14 </li> <li> <b>1.58.0-alpha-2025-12-13</b> - 2025-12-13 </li> <li> <b>1.58.0-alpha-2025-12-12</b> - 2025-12-12 </li> <li> <b>1.58.0-alpha-2025-12-11</b> - 2025-12-11 </li> <li> <b>1.58.0-alpha-2025-12-10</b> - 2025-12-10 </li> <li> <b>1.58.0-alpha-2025-12-09</b> - 2025-12-09 </li> <li> <b>1.58.0-alpha-2025-12-08</b> - 2025-12-08 </li> <li> <b>1.58.0-alpha-2025-12-07</b> - 2025-12-07 </li> <li> <b>1.58.0-alpha-2025-12-06</b> - 2025-12-06 </li> <li> <b>1.58.0-alpha-2025-12-05</b> - 2025-12-05 </li> <li> <b>1.58.0-alpha-2025-12-04</b> - 2025-12-04 </li> <li> <b>1.58.0-alpha-2025-12-03</b> - 2025-12-03 </li> <li> <b>1.58.0-alpha-2025-12-02</b> - 2025-12-02 </li> <li> <b>1.58.0-alpha-2025-12-01</b> - 2025-12-01 </li> <li> <b>1.58.0-alpha-2025-11-30</b> - 2025-11-30 </li> <li> <b>1.58.0-alpha-2025-11-29</b> - 2025-11-29 </li> <li> <b>1.58.0-alpha-2025-11-28</b> - 2025-11-28 </li> <li> <b>1.58.0-alpha-2025-11-27</b> - 2025-11-27 </li> <li> <b>1.58.0-alpha-2025-11-26</b> - 2025-11-26 </li> <li> <b>1.58.0-alpha-2025-11-25</b> - 2025-11-25 </li> <li> <b>1.58.0-alpha-2025-11-24</b> - 2025-11-24 </li> <li> <b>1.58.0-alpha-2025-11-23</b> - 2025-11-23 </li> <li> <b>1.58.0-alpha-2025-11-22</b> - 2025-11-22 </li> <li> <b>1.58.0-alpha-2025-11-21</b> - 2025-11-21 </li> <li> <b>1.58.0-alpha-1767864918000</b> - 2026-01-08 </li> <li> <b>1.58.0-alpha-1766484475000</b> - 2025-12-23 </li> <li> <b>1.58.0-alpha-1766189059000</b> - 2025-12-20 </li> <li> <b>1.58.0-alpha-1764708599000</b> - 2025-12-02 </li> <li> <b>1.58.0-alpha-1764682370000</b> - 2025-12-02 </li> <li> <b>1.58.0-alpha-1764325208000</b> - 2025-11-28 </li> <li> <b>1.58.0-alpha-1763757971000</b> - 2025-11-21 </li> <li> <b>1.57.0</b> - <a href="https://redirect.github.com/microsoft/playwright/releases/tag/v1.57.0">2025-11-25</a></br><h2>Speedboard</h2> <p>In HTML reporter, there's a new tab we call "Speedboard":</p> <a target="_blank" rel="noopener noreferrer" href="https://private-user-images.githubusercontent.com/14912729/518585867-4ba117ea-ea94-4b6a-82b2-8bbd00dfe81c.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzEyNTc4MTIsIm5iZiI6MTc3MTI1NzUxMiwicGF0aCI6Ii8xNDkxMjcyOS81MTg1ODU4NjctNGJhMTE3ZWEtZWE5NC00YjZhLTgyYjItOGJiZDAwZGZlODFjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjAyMTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwMjE2VDE1NTgzMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTllMDg1NGM1N2Y2Yzc3NWRhNmQ4ZTI1ODQ2ZWVjMzRlZWI2MGNmZTQ2OTMxYmNjOTc1MmE4NmMwZTViYzZlY2QmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.hfk18P98lJSzu8RK2g4TrpOYkhptf5lBVsAxDQkGWaI"><img width="600" alt="speedboard" src="https://private-user-images.githubusercontent.com/14912729/518585867-4ba117ea-ea94-4b6a-82b2-8bbd00dfe81c.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzEyNTc4MTIsIm5iZiI6MTc3MTI1NzUxMiwicGF0aCI6Ii8xNDkxMjcyOS81MTg1ODU4NjctNGJhMTE3ZWEtZWE5NC00YjZhLTgyYjItOGJiZDAwZGZlODFjLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjAyMTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwMjE2VDE1NTgzMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTllMDg1NGM1N2Y2Yzc3NWRhNmQ4ZTI1ODQ2ZWVjMzRlZWI2MGNmZTQ2OTMxYmNjOTc1MmE4NmMwZTViYzZlY2QmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.hfk18P98lJSzu8RK2g4TrpOYkhptf5lBVsAxDQkGWaI" content-type-secured-asset="image/png" style="max-width: 100%;"></a> <p>It shows you all your executed tests sorted by slowness,<br> and can help you understand where your test suite is taking longer than expected.<br> Take a look at yours - maybe you'll find some tests that are spending a longer time waiting than they should!</p> <h2>Chrome for Testing</h2> <p>Starting with this release, Playwright switches from Chromium, to using <a href="https://developer.chrome.com/blog/chrome-for-testing/" rel="nofollow">Chrome for Testing</a> builds. Both headed and headless browsers are subject to this. Your tests should still be passing after upgrading to Playwright 1.57.</p> <p>We're expecting no functional changes to come from this switch. The biggest change is the new icon and title in your toolbar.</p> <a target="_blank" rel="noopener noreferrer" href="https://private-user-images.githubusercontent.com/14912729/518586000-e9a5c4f2-9f35-4c27-9382-0f5eda377097.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzEyNTc4MTIsIm5iZiI6MTc3MTI1NzUxMiwicGF0aCI6Ii8xNDkxMjcyOS81MTg1ODYwMDAtZTlhNWM0ZjItOWYzNS00YzI3LTkzODItMGY1ZWRhMzc3MDk3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjAyMTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwMjE2VDE1NTgzMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTgwMjBhZjc5MGJlMjJiOTA5OTY3NjhlNTMxYWUzNjlkMThmYzdiYmI0ZGQ5ZDM4YjNlM2VlOWU1ZWI1MjQ1ZDAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.OQ1-ql2H2RW1u68_jl0W-XvlQNSYEg3NGxriqfukj-o"><img width="500" alt="new and old logo" src="https://private-user-images.githubusercontent.com/14912729/518586000-e9a5c4f2-9f35-4c27-9382-0f5eda377097.png?jwt=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3NzEyNTc4MTIsIm5iZiI6MTc3MTI1NzUxMiwicGF0aCI6Ii8xNDkxMjcyOS81MTg1ODYwMDAtZTlhNWM0ZjItOWYzNS00YzI3LTkzODItMGY1ZWRhMzc3MDk3LnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNjAyMTYlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjYwMjE2VDE1NTgzMlomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTgwMjBhZjc5MGJlMjJiOTA5OTY3NjhlNTMxYWUzNjlkMThmYzdiYmI0ZGQ5ZDM4YjNlM2VlOWU1ZWI1MjQ1ZDAmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0In0.OQ1-ql2H2RW1u68_jl0W-XvlQNSYEg3NGxriqfukj-o" content-type-secured-asset="image/png" style="max-width: 100%;"></a> <p>If you still see an unexpected behaviour change, please <a href="https://redirect.github.com/microsoft/playwright/issues/new">file an issue</a>.</p> <p>On Arm64 Linux, Playwright continues to use Chromium.</p> <h2>Waiting for webserver output</h2> <p><a href="https://playwright.dev/docs/api/class-testconfig#test-config-web-server" rel="nofollow">testConfig.webServer</a> added a <code>wait</code> field. Pass a regular expression, and Playwright will wait until the webserver logs match it.</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import { defineConfig } from '@ playwright/test'; export default defineConfig({ webServer: { command: 'npm run start', wait: { stdout: '/Listening on port (?&lt;my_server_port&gt;\\d+)/' }, }, });"><pre><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">defineConfig</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@ playwright/test'</span><span class="pl-kos">;</span> <span class="pl-k">export</span> <span class="pl-k">default</span> <span class="pl-en">defineConfig</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">webServer</span>: <span class="pl-kos">{</span> <span class="pl-c1">command</span>: <span class="pl-s">'npm run start'</span><span class="pl-kos">,</span> <span class="pl-c1">wait</span>: <span class="pl-kos">{</span> <span class="pl-c1">stdout</span>: <span class="pl-s">'/Listening on port (?&lt;my_server_port&gt;\\d+)/'</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">,</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p>If you include a named capture group into the expression, then Playwright will provide the capture group contents via environment variables:</p> <div class="highlight highlight-source-js notranslate position-relative overflow-auto" data-snippet-clipboard-copy-content="import { test, expect } from '@ playwright/test'; test.use({ baseUrl: `http://localhost:${process.env.MY_SERVER_PORT ?? 3000}` }); test('homepage', async ({ page }) =&gt; { await page.goto('/'); });"><pre><span class="pl-k">import</span> <span class="pl-kos">{</span> <span class="pl-s1">test</span><span class="pl-kos">,</span> <span class="pl-s1">expect</span> <span class="pl-kos">}</span> <span class="pl-k">from</span> <span class="pl-s">'@ playwright/test'</span><span class="pl-kos">;</span> <span class="pl-s1">test</span><span class="pl-kos">.</span><span class="pl-en">use</span><span class="pl-kos">(</span><span class="pl-kos">{</span> <span class="pl-c1">baseUrl</span>: <span class="pl-s">`http://localhost:<span class="pl-s1"><span class="pl-kos">${</span><span class="pl-s1">process</span><span class="pl-kos">.</span><span class="pl-c1">env</span><span class="pl-kos">.</span><span class="pl-c1">MY_SERVER_PORT</span> <span class="pl-c1">??</span> <span class="pl-c1">3000</span><span class="pl-kos">}</span></span>`</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-en">test</span><span class="pl-kos">(</span><span class="pl-s">'homepage'</span><span class="pl-kos">,</span> <span class="pl-k">async</span> <span class="pl-kos">(</span><span class="pl-kos">{</span> page <span class="pl-kos">}</span><span class="pl-kos">)</span> <span class="pl-c1">=&gt;</span> <span class="pl-kos">{</span> <span class="pl-k">await</span> <span class="pl-s1">page</span><span class="pl-kos">.</span><span class="pl-en">goto</span><span class="pl-kos">(</span><span class="pl-s">'/'</span><span class="pl-kos">)</span><span class="pl-kos">;</span> <span class="pl-kos">}</span><span class="pl-kos">)</span><span class="pl-kos">;</span></pre></div> <p>This is not just useful for capturing varying ports of dev servers. You can also use it to wait for readiness of a service that doesn't expose an HTTP readiness check, but instead prints a readiness message to stdout or stderr.</p> <h2>Breaking Change</h2> <p>After 3 years of being deprecated, we removed <code>Page#accessibility</code> from our API. Please use other libraries such as <a href="https://www.deque.com/axe/" rel="nofollow">Axe</a> if you need to test page accessibility. See our Node.js <a href="https://playwright.dev/docs/accessibility-testing" rel="nofollow">guide</a> for integration with Axe.</p> <h2>New APIs</h2> <ul> <li>New property <a href="https://playwright.dev/docs/api/class-testconfig#test-config-tag" rel="nofollow">testConfig.tag</a> adds a tag to all tests in this run. This is useful when using <a href="https://playwright.dev/docs/test-sharding#merging-reports-from-multiple-shards" rel="nofollow">merge-reports</a>.</li> <li><a href="https://playwright.dev/docs/api/class-worker#worker-event-console" rel="nofollow">worker.on('console')</a> event is emitted when JavaScript within the worker calls one of console API methods, e.g. console.log or console.dir. <a href="https://playwright.dev/docs/api/class-worker#worker-wait-for-event" rel="nofollow">worker.waitForEvent()</a> can be used to wait for it.</li> <li><a href="https://playwright.dev/docs/api/class-locator#locator-description" rel="nofollow">locator.description()</a> returns locator description previously set with <a href="https://playwright.dev/docs/api/class-locator#locator-describe" rel="nofollow">locator.describe()</a>, and <code>Locator.toString()</code> now uses the description when available.</li> <li>New option <a href="https://playwright.dev/docs/api/class-locator#locator-click-option-steps" rel="nofollow"><code>steps</code></a> in <a href="https://playwright.dev/docs/api/class-locator#locator-click" rel="nofollow">locator.click()</a> and <a href="https://playwright.dev/docs/api/class-locator#locator-drag-to" rel="nofollow">locator.dragTo()</a> that configures the number of <code>mousemove</code> events emitted while moving the mouse pointer to the target element.</li> <li>Network requests issued by <a href="https://playwright.dev/docs/service-workers#network-events-and-routing" rel="nofollow">Service Workers</a> are now reported and can be routed through the <a href="https://playwright.dev/docs/api/class-browsercontext" rel="nofollow">BrowserContext</a>, only in Chromium. You can opt out using the <code>PLAYWRIGHT_DISABLE_SERVICE_WORKER_NETWORK</code> environment variable.</li> <li>Console messages from Service Workers are dispatched through <a href="https://playwright.dev/docs/api/class-worker#worker-event-console" rel="nofollow">worker.on('console')</a>. You can opt out of this using the <code>PLAYWRIGHT_DISABLE_SERVICE_WORKER_CONSOLE</code> environment variable.</li> </ul> <h2>Browser Versions</h2> <ul> <li>Chromium 143.0.7499.4</li> <li>Mozilla Firefox 144.0.2</li> <li>WebKit 26.0</li> </ul> </li> </ul> from <a href="https://redirect.github.com/microsoft/playwright/releases">playwright GitHub release notes</a> </details> </details> --- > [!IMPORTANT] > > - Check the changes in this PR to ensure they won't cause issues with your project. > - This PR was automatically created by Snyk using the credentials of a real user. --- **Note:** _You are seeing this because you or someone else with access to this repository has authorized Snyk to open upgrade PRs._ **For more information:** <img src="https://api.segment.io/v1/pixel/track?data=eyJ3cml0ZUtleSI6InJyWmxZcEdHY2RyTHZsb0lYd0dUcVg4WkFRTnNCOUEwIiwiYW5vbnltb3VzSWQiOiI5NjdhYmRmNS0xZjZiLTQ1ZmItYTY3OS1mNzI4Y2FhNWU0ZTQiLCJldmVudCI6IlBSIHZpZXdlZCIsInByb3BlcnRpZXMiOnsicHJJZCI6Ijk2N2FiZGY1LTFmNmItNDVmYi1hNjc5LWY3MjhjYWE1ZTRlNCJ9fQ==" width="0" height="0"/> > - 🧐 [View latest project report](https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/49c81d9c-12c2-4e8e-b9e8-72f98b1b595c?utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;upgrade-pr) > - 📜 [Customise PR templates](https://docs.snyk.io/scan-using-snyk/pull-requests/snyk-fix-pull-or-merge-requests/customize-pr-templates?utm_source=&utm_content=fix-pr-template) > - 🛠 [Adjust upgrade PR settings](https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/49c81d9c-12c2-4e8e-b9e8-72f98b1b595c/settings/integration?utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;upgrade-pr) > - 🔕 [Ignore this dependency or unsubscribe from future upgrade PRs](https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/49c81d9c-12c2-4e8e-b9e8-72f98b1b595c/settings/integration?pkg&#x3D;playwright&amp;utm_source&#x3D;github&amp;utm_medium&#x3D;referral&amp;page&#x3D;upgrade-pr#auto-dep-upgrades) [//]: # 'snyk:metadata:{"breakingChangeRiskLevel":null,"FF_showPullRequestBreakingChanges":false,"FF_showPullRequestBreakingChangesWebSearch":false,"customTemplate":{"variablesUsed":[],"fieldsUsed":[]},"dependencies":[{"name":"playwright","from":"1.57.0","to":"1.58.0"}],"env":"prod","hasFixes":false,"isBreakingChange":false,"isMajorUpgrade":false,"issuesToFix":[],"prId":"967abdf5-1f6b-45fb-a679-f728caa5e4e4","prPublicId":"967abdf5-1f6b-45fb-a679-f728caa5e4e4","packageManager":"npm","priorityScoreList":[],"projectPublicId":"49c81d9c-12c2-4e8e-b9e8-72f98b1b595c","projectUrl":"https://app.snyk.io/org/oneuptime-RsC2nshvQ2Vnr35jHvMnMP/project/49c81d9c-12c2-4e8e-b9e8-72f98b1b595c?utm_source=github&utm_medium=referral&page=upgrade-pr","prType":"upgrade","templateFieldSources":{"branchName":"default","commitMessage":"default","description":"default","title":"default"},"templateVariants":[],"type":"auto","upgrade":[],"upgradeInfo":{"versionsDiff":76,"publishedDate":"2026-01-23T11:54:42.754Z"},"vulns":[]}'
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github/oneuptime#82