Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Snyk] Upgrade @playwright/test from 1.46.1 to 1.48.0 #3

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

IT21336072
Copy link
Owner

snyk-top-banner

Snyk has created this PR to upgrade @playwright/test from 1.46.1 to 1.48.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 110 versions ahead of your current version.

  • The recommended version was released on a month ago.

Release notes
Package name: @playwright/test
  • 1.48.0 - 2024-10-08

    WebSocket routing

    New methods page.routeWebSocket() and browserContext.routeWebSocket() allow to intercept, modify and mock WebSocket connections initiated in the page. Below is a simple example that mocks WebSocket communication by responding to a "request" with a "response".

    await page.routeWebSocket('/ws', ws => {
      ws.onMessage(message => {
        if (message === 'request')
          ws.send('response');
      });
    });

    See WebSocketRoute for more details.

    UI updates

    • New "copy" buttons for annotations and test location in the HTML report.
    • Route method calls like route.fulfill() are not shown in the report and trace viewer anymore. You can see which network requests were routed in the network tab instead.
    • New "Copy as cURL" and "Copy as fetch" buttons for requests in the network tab.

    Miscellaneous

    Browser Versions

    • Chromium 130.0.6723.19
    • Mozilla Firefox 130.0
    • WebKit 18.0

    This version was also tested against the following stable channels:

    • Google Chrome 129
    • Microsoft Edge 129
  • 1.48.0-beta-1729066602000 - 2024-10-16
  • 1.48.0-beta-1729034638000 - 2024-10-15
  • 1.48.0-beta-1729024528000 - 2024-10-15
  • 1.48.0-beta-1728993409000 - 2024-10-15
  • 1.48.0-beta-1728993389000 - 2024-10-15
  • 1.48.0-beta-1728983264000 - 2024-10-15
  • 1.48.0-beta-1728939942000 - 2024-10-14
  • 1.48.0-beta-1728916380000 - 2024-10-14
  • 1.48.0-beta-1728521270000 - 2024-10-10
  • 1.48.0-beta-1728408670000 - 2024-10-08
  • 1.48.0-beta-1728391058000 - 2024-10-08
  • 1.48.0-beta-1728384960000 - 2024-10-08
  • 1.48.0-beta-1728384890000 - 2024-10-08
  • 1.48.0-beta-1728371904000 - 2024-10-08
  • 1.48.0-beta-1728034490000 - 2024-10-04
  • 1.48.0-beta-1727939718000 - 2024-10-03
  • 1.48.0-beta-1727868641000 - 2024-10-02
  • 1.48.0-beta-1727802413000 - 2024-10-01
  • 1.48.0-beta-1727800739000 - 2024-10-01
  • 1.48.0-beta-1727721217000 - 2024-09-30
  • 1.48.0-beta-1727692967000 - 2024-09-30
  • 1.48.0-alpha-2024-09-30 - 2024-09-30
  • 1.48.0-alpha-2024-09-29 - 2024-09-29
  • 1.48.0-alpha-2024-09-28 - 2024-09-28
  • 1.48.0-alpha-2024-09-27 - 2024-09-27
  • 1.48.0-alpha-2024-09-26 - 2024-09-26
  • 1.48.0-alpha-2024-09-25 - 2024-09-25
  • 1.48.0-alpha-2024-09-24 - 2024-09-24
  • 1.48.0-alpha-2024-09-23 - 2024-09-23
  • 1.48.0-alpha-2024-09-22 - 2024-09-22
  • 1.48.0-alpha-2024-09-21 - 2024-09-21
  • 1.48.0-alpha-2024-09-20 - 2024-09-20
  • 1.48.0-alpha-2024-09-19 - 2024-09-19
  • 1.48.0-alpha-2024-09-18 - 2024-09-18
  • 1.48.0-alpha-2024-09-17 - 2024-09-17
  • 1.48.0-alpha-2024-09-16 - 2024-09-16
  • 1.48.0-alpha-2024-09-15 - 2024-09-15
  • 1.48.0-alpha-2024-09-14 - 2024-09-14
  • 1.48.0-alpha-2024-09-13 - 2024-09-13
  • 1.48.0-alpha-2024-09-12 - 2024-09-12
  • 1.48.0-alpha-2024-09-11 - 2024-09-11
  • 1.48.0-alpha-2024-09-10 - 2024-09-10
  • 1.48.0-alpha-2024-09-09 - 2024-09-09
  • 1.48.0-alpha-2024-09-08 - 2024-09-08
  • 1.48.0-alpha-2024-09-07 - 2024-09-07
  • 1.48.0-alpha-2024-09-06 - 2024-09-06
  • 1.48.0-alpha-1727434891000 - 2024-09-27
  • 1.47.2 - 2024-09-20

    Highlights

    #32699 [REGRESSION]: fix(codegen): use content_frame property in python/.NET
    #32706 [REGRESSION]: page.pause() does not pause test timeout after 1.47
    #32661 - fix(trace-viewer): time delta between local and remote actions

    Browser Versions

    • Chromium 129.0.6668.29
    • Mozilla Firefox 130.0
    • WebKit 18.0

    This version was also tested against the following stable channels:

    • Google Chrome 128
    • Microsoft Edge 128
  • 1.47.2-beta-1727139937000 - 2024-09-24
  • 1.47.2-beta-1726852863000 - 2024-09-20
  • 1.47.1 - 2024-09-13

    Highlights

    #32480 - [REGRESSION]: tsconfig.json's compilerOptions.paths no longer working in 1.47
    #32552 - [REGRESSION]: broken UI in Trace Viewer while showing network response body

    Browser Versions

    • Chromium 129.0.6668.29
    • Mozilla Firefox 130.0
    • WebKit 18.0

    This version was also tested against the following stable channels:

    • Google Chrome 128
    • Microsoft Edge 128
  • 1.47.1-beta-1726849306000 - 2024-09-20
  • 1.47.1-beta-1726827698000 - 2024-09-20
  • 1.47.1-beta-1726598621000 - 2024-09-17
  • 1.47.1-beta-1726247857000 - 2024-09-13
  • 1.47.0 - 2024-09-05

    Network Tab improvements

    The Network tab in the UI mode and trace viewer has several nice improvements:

    • filtering by asset type and URL
    • better display of query string parameters
    • preview of font assets

    Network tab now has filters

    Credit to @ kubajanik for these wonderful improvements!

    --tsconfig CLI option

    By default, Playwright will look up the closest tsconfig for each imported file using a heuristic. You can now specify a single tsconfig file in the command line, and Playwright will use it for all imported files, not only test files:

    # Pass a specific tsconfig
    npx playwright test --tsconfig tsconfig.test.json

    APIRequestContext now accepts URLSearchParams and string as query parameters

    You can now pass URLSearchParams and string as query parameters to APIRequestContext:

    test('query params', async ({ request }) => {
      const searchParams = new URLSearchParams();
      searchParams.set('userId', 1);
      const response = await request.get(
          'https://jsonplaceholder.typicode.com/posts',
          {
            params: searchParams // or as a string: 'userId=1'
          }
      );
      // ...
    });

    Miscellaneous

    • The mcr.microsoft.com/playwright:v1.47.0 now serves a Playwright image based on Ubuntu 24.04 Noble.
      To use the 22.04 jammy-based image, please use mcr.microsoft.com/playwright:v1.47.0-jammy instead.
    • The :latest/:focal/:jammy tag for Playwright Docker images is no longer being published. Pin to a specific version for better stability and reproducibility.
    • New option behavior in page.removeAllListeners(), browser.removeAllListeners() and browserContext.removeAllListeners() to wait for ongoing listeners to complete.
    • TLS client certificates can now be passed from memory by passing cert and key as buffers instead of file paths.
    • Attachments with a text/html content type can now be opened in a new tab in the HTML report. This is useful for including third-party reports or other HTML content in the Playwright test report and distributing it to your team.
    • noWaitAfter in locator.selectOption() was deprecated.
    • We've seen reports of WebGL in Webkit misbehaving on GitHub Actions macos-13. We recommend upgrading GitHub Actions to macos-14.

    Browser Versions

    • Chromium 129.0.6668.29
    • Mozilla Firefox 130.0
    • WebKit 18.0

    This version was also tested against the following stable channels:

    • Google Chrome 128
    • Microsoft Edge 128
  • 1.47.0-beta-1726138322000 - 2024-09-12
  • 1.47.0-beta-1726136860000 - 2024-09-12
  • 1.47.0-beta-1726127997000 - 2024-09-12
  • 1.47.0-beta-1726085360000 - 2024-09-11
  • 1.47.0-beta-1725889926000 - 2024-09-09
  • 1.47.0-beta-1725611500000 - 2024-09-06
  • 1.47.0-beta-1725570477000 - 2024-09-05
  • 1.47.0-beta-1725568763000 - 2024-09-05
  • 1.47.0-beta-1725550839000 - 2024-09-05
  • 1.47.0-beta-1725531189000 - 2024-09-05
  • 1.47.0-alpha-2024-09-05 - 2024-09-05
  • 1.47.0-alpha-2024-09-04 - 2024-09-04
  • 1.47.0-alpha-2024-09-03 - 2024-09-03
  • 1.47.0-alpha-2024-09-02 - 2024-09-02
  • 1.47.0-alpha-2024-09-01 - 2024-09-01
  • 1.47.0-alpha-2024-08-31 - 2024-08-31
  • 1.47.0-alpha-2024-08-30 - 2024-08-30
  • 1.47.0-alpha-2024-08-29 - 2024-08-29
  • 1.47.0-alpha-2024-08-28 - 2024-08-28
  • 1.47.0-alpha-2024-08-27 - 2024-08-27
  • 1.47.0-alpha-2024-08-26 - 2024-08-26
  • 1.47.0-alpha-2024-08-25 - 2024-08-25
  • 1.47.0-alpha-2024-08-24 - 2024-08-24
  • 1.47.0-alpha-2024-08-23 - 2024-08-23
  • 1.47.0-alpha-2024-08-22 - 2024-08-22
  • 1.47.0-alpha-2024-08-21 - 2024-08-21
  • 1.47.0-alpha-2024-08-20 - 2024-08-20
  • 1.47.0-alpha-2024-08-19 - 2024-08-19
  • 1.47.0-alpha-2024-08-18 - 2024-08-18
  • 1.47.0-alpha-2024-08-17 - 2024-08-17
  • 1.47.0-alpha-2024-08-15 - 2024-08-15
  • 1.47.0-alpha-2024-08-14 - 2024-08-14
  • 1.47.0-alpha-2024-08-13 - 2024-08-13
  • 1.47.0-alpha-2024-08-12 - 2024-08-12
  • 1.47.0-alpha-2024-08-11 - 2024-08-11
  • 1.47.0-alpha-2024-08-10 - 2024-08-10
  • 1.47.0-alpha-2024-08-09 - 2024-08-09
  • 1.47.0-alpha-2024-08-08 - 2024-08-08
  • 1.47.0-alpha-2024-08-07 - 2024-08-07
  • 1.47.0-alpha-2024-08-06 - 2024-08-06
  • 1.47.0-alpha-2024-08-05 - 2024-08-05
  • 1.47.0-alpha-2024-08-04 - 2024-08-04
  • 1.47.0-alpha-2024-08-03 - 2024-08-03
  • 1.47.0-alpha-2024-08-02 - 2024-08-02
  • 1.47.0-alpha-2024-08-01 - 2024-08-01
  • 1.47.0-alpha-2024-07-31 - 2024-07-31
  • 1.47.0-alpha-2024-07-30 - 2024-07-30
  • 1.47.0-alpha-2024-07-29 - 2024-07-29
  • 1.47.0-alpha-2024-07-28 - 2024-07-28
  • 1.47.0-alpha-2024-07-27 - 2024-07-27
  • 1.47.0-alpha-1722580468000 - 2024-08-02
  • 1.47.0-alpha-1722448717000 - 2024-07-31
  • 1.47.0-alpha-1722335054000 - 2024-07-30
  • 1.46.1 - 2024-08-16

    Highlights

    #32004 - [REGRESSION]: Client Certificates don't work with Microsoft IIS
    #32004 - [REGRESSION]: Websites stall on TLS handshake errors when using Client Certificates
    #32146 - [BUG]: Credential scanners warn about internal socks-proxy TLS certificates
    #32056 - [REGRESSION]: 1.46.0 (TypeScript) - custom fixtures extend no longer chainable
    #32070 - [Bug]: --only-changed flag and project dependencies
    #32188 - [Bug]: --only-changed with shallow clone throws "unknown revision" error

    Browser Versions

    • Chromium 128.0.6613.18
    • Mozilla Firefox 128.0
    • WebKit 18.0

    This version was also tested against the following stable channels:

    • Google Chrome 127
    • Microsoft Edge 127
from @playwright/test 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/test from 1.46.1 to 1.48.0.

See this package in npm:
@playwright/test

See this project in Snyk:
https://app.snyk.io/org/it21336072/project/b08f643f-c4dc-4e50-8e9f-0cbdd9cc7c05?utm_source=github&utm_medium=referral&page=upgrade-pr
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.

2 participants