Skip to content

[Snyk] Upgrade playwright from 1.56.1 to 1.57.0#64

Open
ssdeanx wants to merge 1 commit intomainfrom
snyk-upgrade-6597cf80bd091505bb7bfdbd56875610
Open

[Snyk] Upgrade playwright from 1.56.1 to 1.57.0#64
ssdeanx wants to merge 1 commit intomainfrom
snyk-upgrade-6597cf80bd091505bb7bfdbd56875610

Conversation

@ssdeanx
Copy link
Copy Markdown
Owner

@ssdeanx ssdeanx commented Dec 20, 2025

snyk-top-banner

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

  • The recommended version was released 25 days ago.

Release notes
Package name: playwright
  • 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.

    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:

    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
  • 1.57.0-beta-1765994843000 - 2025-12-17
  • 1.57.0-beta-1765994134000 - 2025-12-17
  • 1.57.0-beta-1764944708000 - 2025-12-05
  • 1.57.0-beta-1764692940000 - 2025-12-02
  • 1.57.0-beta-1764069017000 - 2025-11-25
  • 1.57.0-beta-1764065820000 - 2025-11-25
  • 1.57.0-beta-1763739794000 - 2025-11-21
  • 1.57.0-beta-1763718928000 - 2025-11-21
  • 1.57.0-beta-1763649092000 - 2025-11-20
  • 1.57.0-alpha-2025-11-20 - 2025-11-20
  • 1.57.0-alpha-2025-11-19 - 2025-11-19
  • 1.57.0-alpha-2025-11-18 - 2025-11-18
  • 1.57.0-alpha-2025-11-17 - 2025-11-17
  • 1.57.0-alpha-2025-11-16 - 2025-11-16
  • 1.57.0-alpha-2025-11-15 - 2025-11-15
  • 1.57.0-alpha-2025-11-14 - 2025-11-14
  • 1.57.0-alpha-2025-11-13 - 2025-11-13
  • 1.57.0-alpha-2025-11-12 - 2025-11-12
  • 1.57.0-alpha-2025-11-11 - 2025-11-11
  • 1.57.0-alpha-2025-11-10 - 2025-11-10
  • 1.57.0-alpha-2025-11-09 - 2025-11-09
  • 1.57.0-alpha-2025-11-08 - 2025-11-08
  • 1.57.0-alpha-2025-11-07 - 2025-11-07
  • 1.57.0-alpha-2025-11-06 - 2025-11-06
  • 1.57.0-alpha-2025-11-05 - 2025-11-05
  • 1.57.0-alpha-2025-11-04 - 2025-11-04
  • 1.57.0-alpha-2025-11-03 - 2025-11-03
  • 1.57.0-alpha-2025-11-02 - 2025-11-02
  • 1.57.0-alpha-2025-11-01 - 2025-11-01
  • 1.57.0-alpha-2025-10-31 - 2025-10-31
  • 1.57.0-alpha-2025-10-30 - 2025-10-30
  • 1.57.0-alpha-2025-10-29 - 2025-10-29
  • 1.57.0-alpha-2025-10-28 - 2025-10-28
  • 1.57.0-alpha-2025-10-27 - 2025-10-27
  • 1.57.0-alpha-2025-10-26 - 2025-10-26
  • 1.57.0-alpha-2025-10-25 - 2025-10-25
  • 1.57.0-alpha-2025-10-24 - 2025-10-24
  • 1.57.0-alpha-2025-10-23 - 2025-10-23
  • 1.57.0-alpha-2025-10-22 - 2025-10-22
  • 1.57.0-alpha-2025-10-21 - 2025-10-21
  • 1.57.0-alpha-2025-10-20 - 2025-10-20
  • 1.57.0-alpha-2025-10-19 - 2025-10-19
  • 1.57.0-alpha-2025-10-18 - 2025-10-18
  • 1.57.0-alpha-2025-10-17 - 2025-10-17
  • 1.57.0-alpha-2025-10-16 - 2025-10-16
  • 1.57.0-alpha-2025-10-15 - 2025-10-15
  • 1.57.0-alpha-2025-10-14 - 2025-10-14
  • 1.57.0-alpha-2025-10-13 - 2025-10-13
  • 1.57.0-alpha-2025-10-12 - 2025-10-12
  • 1.57.0-alpha-2025-10-11 - 2025-10-11
  • 1.57.0-alpha-2025-10-10 - 2025-10-10
  • 1.57.0-alpha-2025-10-09 - 2025-10-09
  • 1.57.0-alpha-2025-10-08 - 2025-10-08
  • 1.57.0-alpha-2025-10-07 - 2025-10-07
  • 1.57.0-alpha-2025-10-06 - 2025-10-06
  • 1.57.0-alpha-2025-10-05 - 2025-10-05
  • 1.57.0-alpha-2025-10-04 - 2025-10-04
  • 1.57.0-alpha-2025-10-03 - 2025-10-03
  • 1.57.0-alpha-1761929702000 - 2025-10-31
  • 1.57.0-alpha-1760728340000 - 2025-10-17
  • 1.56.1 - 2025-10-17

    Highlights

    #37871 chore: allow local-network-access permission in chromium
    #37891 fix(agents): remove workspaceFolder ref from vscode mcp
    #37759 chore: rename agents to test agents
    #37757 chore(mcp): fallback to cwd when resolving test config

    Browser Versions

    • Chromium 141.0.7390.37
    • Mozilla Firefox 142.0.1
    • 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:

Snyk has created this PR to upgrade playwright from 1.56.1 to 1.57.0.

See this package in npm:
playwright

See this project in Snyk:
https://app.snyk.io/org/ssdeanx/project/97f9b44f-04aa-4c4a-a071-4c3e5cc49f97?utm_source=github&utm_medium=referral&page=upgrade-pr
Copilot AI review requested due to automatic review settings December 20, 2025 08:52
@continue
Copy link
Copy Markdown

continue Bot commented Dec 20, 2025

All Green - Keep your PRs mergeable

Learn more

All Green is an AI agent that automatically:

✅ Addresses code review comments

✅ Fixes failing CI checks

✅ Resolves merge conflicts


Unsubscribe from All Green comments

@coderabbitai
Copy link
Copy Markdown

coderabbitai Bot commented Dec 20, 2025

Important

Review skipped

Ignore keyword(s) in the title.

Please check the settings in the CodeRabbit UI or the .coderabbit.yaml file in this repository. To trigger a single review, invoke the @coderabbitai review command.

You can disable this status message by setting the reviews.review_status to false in the CodeRabbit configuration file.

✨ Finishing touches
🧪 Generate unit tests (beta)
  • Create PR with unit tests
  • Post copyable unit tests in a comment
  • Commit unit tests in branch snyk-upgrade-6597cf80bd091505bb7bfdbd56875610

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

❤️ Share

Comment @coderabbitai help to get the list of available commands and usage tips.

@github-actions
Copy link
Copy Markdown

🤖 Hi @ssdeanx, I've received your request, and I'm working on it now! You can track my progress in the logs for more details.

@gemini-code-assist
Copy link
Copy Markdown

Summary of Changes

Hello @ssdeanx, I'm Gemini Code Assist1! I'm currently reviewing this pull request and will post my feedback shortly. In the meantime, here's a summary to help you and other reviewers quickly get up to speed!

This pull request, automatically generated by Snyk, updates the playwright dependency to version 1.57.0. This upgrade introduces significant enhancements to test reporting with the new 'Speedboard' feature, transitions to 'Chrome for Testing' builds for browser execution, and provides a more flexible mechanism for waiting on webserver output during tests. It also includes a breaking change by removing the deprecated Page#accessibility API and adds several new APIs for improved test configuration and debugging.

Highlights

  • Dependency Upgrade: The playwright package has been updated from version 1.56.1 to 1.57.0.
  • New Speedboard Feature: A 'Speedboard' tab is introduced in the HTML reporter, providing a visual breakdown of test execution times to help identify performance bottlenecks.
  • Chrome for Testing Integration: Playwright now utilizes 'Chrome for Testing' builds instead of standard Chromium, which is expected to be functionally equivalent but comes with updated branding.
  • Enhanced Webserver Waiting: A new wait field in testConfig.webServer allows Playwright to pause test execution until a specified regular expression is matched in the webserver's stdout or stderr, with support for capturing groups into environment variables.
  • Breaking Change: Page#accessibility Removal: The Page#accessibility API has been removed after a three-year deprecation period. Users needing accessibility testing are advised to integrate external libraries like Axe.
  • New APIs and Features: New APIs include testConfig.tag for run-level tagging, worker.on('console') for capturing worker console events, locator.description() for improved debugging, and a steps option for locator.click() and locator.dragTo() to control mouse movement granularity. Additionally, Service Worker network requests and console messages are now reported and dispatched in Chromium.

🧠 New Feature in Public Preview: You can now enable Memory to help Gemini Code Assist learn from your team's feedback. This makes future code reviews more consistent and personalized to your project's style. Click here to enable Memory in your admin console.

Using Gemini Code Assist

The full guide for Gemini Code Assist can be found on our documentation page, here are some quick tips.

Invoking Gemini

You can request assistance from Gemini at any point by creating a comment using either /gemini <command> or @gemini-code-assist <command>. Below is a summary of the supported commands on the current page.

Feature Command Description
Code Review /gemini review Performs a code review for the current pull request in its current state.
Pull Request Summary /gemini summary Provides a summary of the current pull request in its current state.
Comment @gemini-code-assist Responds in comments when explicitly tagged, both in pull request comments and review comments.
Help /gemini help Displays a list of available commands.

Customization

To customize Gemini Code Assist for GitHub experience, repository maintainers can create a configuration file and/or provide a custom code review style guide (such as PEP-8 for Python) by creating and adding files to a .gemini/ folder in the base of the repository. Detailed instructions can be found here.

Limitations & Feedback

Gemini Code Assist may make mistakes. Please leave feedback on any instances where its feedback is incorrect or counter productive. You can react with 👍 and 👎 on @gemini-code-assist comments. If you're interested in giving your feedback about your experience with Gemini Code Assist for Github and other Google products, sign up here.

You can also get AI-powered code generation, chat, as well as code reviews directly in the IDE at no cost with the Gemini Code Assist IDE Extension.

Footnotes

  1. Review the Privacy Notices, Generative AI Prohibited Use Policy, Terms of Service, and learn how to configure Gemini Code Assist in GitHub here. Gemini can make mistakes, so double check it and use code with caution.

Copy link
Copy Markdown

@gemini-code-assist gemini-code-assist Bot left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Code Review

This pull request, automatically generated by Snyk, upgrades the playwright dependency from version 1.56.1 to 1.57.0. This is a minor update, but it includes a significant breaking change: the removal of the deprecated Page#accessibility API. I have reviewed the code changes and the provided files, and I did not find any usage of this API. However, to ensure a safe upgrade, it is crucial to run the full test suite, especially any end-to-end tests, to verify that this change does not introduce any regressions. The version update in package.json is correct.

@github-actions
Copy link
Copy Markdown

🤖 I'm sorry @ssdeanx, but I was unable to process your request. Please see the logs for more details.

Copy link
Copy Markdown

Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

This PR upgrades the Playwright dependency from version 1.56.1 to 1.57.0, an automated update created by Snyk. This is a minor version upgrade released on November 25, 2025 (25 days ago), 61 versions ahead of the current version.

Key changes in Playwright 1.57.0:

  • New "Speedboard" feature in HTML reporter for test performance analysis
  • Switch from Chromium to Chrome for Testing builds
  • Breaking change: Removal of Page#accessibility API after 3 years of deprecation
  • New webServer wait field for waiting on stdout/stderr output
  • Service Worker network requests now reported and routable in Chromium

Reviewed changes

Copilot reviewed 1 out of 2 changed files in this pull request and generated 1 comment.

File Description
package.json Updates Playwright version from ^1.56.1 to ^1.57.0
package-lock.json Updates resolved Playwright and playwright-core versions to 1.57.0; adjusts peer dependency flags for various transitive dependencies as expected when a direct dependency is upgraded

Comment thread package.json
"next-themes": "^0.4.6",
"pdf-parse": "^2.4.5",
"playwright": "^1.56.1",
"playwright": "^1.57.0",
Copy link

Copilot AI Dec 20, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This upgrade includes a breaking change: the Page#accessibility API has been removed from Playwright after being deprecated for 3 years. If this project or any dependencies use page.accessibility, the code will need to be updated to use alternative accessibility testing libraries like Axe. Before merging, verify that no code in the project uses the page.accessibility API.

Suggested change
"playwright": "^1.57.0",
"playwright": "1.56.0",

Copilot uses AI. Check for mistakes.
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