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.47.0 to 1.48.1 #1126

Conversation

hedera-eng-infrastructure
Copy link
Contributor

snyk-top-banner

Snyk has created this PR to upgrade @playwright/test from 1.47.0 to 1.48.1.

ℹ️ 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 64 versions ahead of your current version.

  • The recommended version was released on 22 days ago.

Release notes
Package name: @playwright/test
  • 1.48.1 - 2024-10-16

    Highlights

    #33023 - [Bug]: command line flag --headed has no effect in ui mode
    #33107 - [REGRESSION]: page.waitForRequest does not get resolved since 1.48.0
    #33085 - [Bug]: WebSocket route does not handle full URLs in Playwright
    #33052 - [Regression]: Inspector not showing recorded steps
    #33132 - [Bug]: Wrong Ubuntu release name in Dockerfile.noble
    #32996 - [BUG] Trace attachments have small unusable height

    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.1-beta-1729803910000 - 2024-10-24
  • 1.48.1-beta-1729768444000 - 2024-10-24
  • 1.48.1-beta-1729761836000 - 2024-10-24
  • 1.48.1-beta-1729761824000 - 2024-10-24
  • 1.48.1-beta-1729538520000 - 2024-10-21
  • 1.48.1-beta-1729096710000 - 2024-10-16
  • 1.48.1-beta-1729071078000 - 2024-10-16
  • 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
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.47.0 to 1.48.1.

See this package in npm:
@playwright/test

See this project in Snyk:
https://app.snyk.io/org/transaction-tools/project/c9db0d06-9d41-40d4-ae46-23b67c7d682c?utm_source=github-enterprise&utm_medium=referral&page=upgrade-pr
Copy link

codecov bot commented Nov 7, 2024

The author of this PR, hedera-eng-infrastructure, is not an activated member of this organization on Codecov.
Please activate this user on Codecov to display this PR comment.
Coverage data is still being uploaded to Codecov.io for purposes of overall coverage calculations.
Please don't hesitate to email us at [email protected] with any questions.

@RAMTO RAMTO closed this Nov 7, 2024
@RAMTO RAMTO deleted the snyk-upgrade-9b9afe320d069a8aec739a4336c3c15c branch November 7, 2024 08:11
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.

4 participants