Skip to content

[Snyk] Upgrade @playwright/test from 1.28.0 to 1.31.2 - #20

Open
snyk-bot wants to merge 1 commit into
mainfrom
snyk-upgrade-0164d0833a067d39035fc99e0cd5c830
Open

[Snyk] Upgrade @playwright/test from 1.28.0 to 1.31.2#20
snyk-bot wants to merge 1 commit into
mainfrom
snyk-upgrade-0164d0833a067d39035fc99e0cd5c830

Conversation

@snyk-bot

Copy link
Copy Markdown

Snyk has created this PR to upgrade @playwright/test from 1.28.0 to 1.31.2.

ℹ️ 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 161 versions ahead of your current version.
  • The recommended version was released 23 days ago, on 2023-03-02.

The recommended version fixes:

Severity Issue PriorityScore (*) Exploit Maturity
Regular Expression Denial of Service (ReDoS)
SNYK-JS-HTTPCACHESEMANTICS-3248783
372/1000
Why? Proof of Concept exploit, CVSS 5.3
Proof of Concept
Prototype Pollution
SNYK-JS-JSON5-3182856
372/1000
Why? Proof of Concept exploit, CVSS 5.3
Proof of Concept
Prototype Pollution
SNYK-JS-JSON5-3182856
372/1000
Why? Proof of Concept exploit, CVSS 5.3
Proof of Concept

(*) Note that the real score may have changed since the PR was raised.

Release notes
Package name: @playwright/test
  • 1.31.2 - 2023-03-02

    Highlights

    #20784 - [BUG] ECONNREFUSED on GitHub Actions with Node 18
    #21145 - [REGRESSION]: firefox-1378 times out on await page.reload() when URL contains a #hash
    #21226 - [BUG] Playwright seems to get stuck when using shard option and last test is skipped
    #21227 - Using the webServer config with a Vite dev server?
    #21312 - throw if defineConfig is not used for component testing

    Browser Versions

    • Chromium 111.0.5563.19
    • Mozilla Firefox 109.0
    • WebKit 16.4

    This version was also tested against the following stable channels:

    • Google Chrome 110
    • Microsoft Edge 110
  • 1.31.2-beta-1678209524000 - 2023-03-07
  • 1.31.2-beta-1677779003000 - 2023-03-02
  • 1.31.1 - 2023-02-23

    Highlights

    #21093 - [Regression v1.31] Headless Windows shows cascading cmd windows
    #21106 - fix(loader): experimentalLoader with node@18

    Browser Versions

    • Chromium 111.0.5563.19
    • Mozilla Firefox 109.0
    • WebKit 16.4

    This version was also tested against the following stable channels:

    • Google Chrome 110
    • Microsoft Edge 110
  • 1.31.1-beta-1677726071000 - 2023-03-02
  • 1.31.1-beta-1677717762000 - 2023-03-02
  • 1.31.1-beta-1677707236000 - 2023-03-01
  • 1.31.1-beta-1677704149000 - 2023-03-01
  • 1.31.1-beta-1677701932000 - 2023-03-01
  • 1.31.1-beta-1677552113000 - 2023-02-28
  • 1.31.1-beta-1677192045000 - 2023-02-23
  • 1.31.1-beta-1677121302000 - 2023-02-23
  • 1.31.0 - 2023-02-21

    New APIs

    • New property TestProject.dependencies to configure dependencies between projects.

      Using dependencies allows global setup to produce traces and other artifacts,
      see the setup steps in the test report and more.

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

      export default defineConfig({
      projects: [
      {
      name: 'setup',
      testMatch: /global.setup.ts/,
      },
      {
      name: 'chromium',
      use: devices['Desktop Chrome'],
      dependencies: ['setup'],
      },
      {
      name: 'firefox',
      use: devices['Desktop Firefox'],
      dependencies: ['setup'],
      },
      {
      name: 'webkit',
      use: devices['Desktop Safari'],
      dependencies: ['setup'],
      },
      ],
      });

    • New assertion expect(locator).toBeInViewport() ensures that locator points to an element that intersects viewport, according to the intersection observer API.

      const button = page.getByRole('button');

      // Make sure at least some part of element intersects viewport.
      await expect(button).toBeInViewport();

      // Make sure element is fully outside of viewport.
      await expect(button).not.toBeInViewport();

      // Make sure that at least half of the element intersects viewport.
      await expect(button).toBeInViewport({ ratio: 0.5 });

    Miscellaneous

    • DOM snapshots in trace viewer can be now opened in a separate window.
    • New method defineConfig to be used in playwright.config.
    • New option maxRedirects for method Route.fetch.
    • Playwright now supports Debian 11 arm64.
    • Official docker images now include Node 18 instead of Node 16.

    ⚠️ Breaking change in component tests

    Note: component tests only, does not affect end-to-end tests.

    playwright-ct.config configuration file for component testing now requires calling defineConfig.

    // Before

    import { type PlaywrightTestConfig, devices } from '@ playwright/experimental-ct-react';
    const config: PlaywrightTestConfig = {
    // ... config goes here ...
    };
    export default config;

    Replace config variable definition with defineConfig call:

    // After

    import { defineConfig, devices } from '@ playwright/experimental-ct-react';
    export default defineConfig({
    // ... config goes here ...
    });

    Browser Versions

    • Chromium 111.0.5563.19
    • Mozilla Firefox 109.0
    • WebKit 16.4

    This version was also tested against the following stable channels:

    • Google Chrome 110
    • Microsoft Edge 110
  • 1.31.0-beta-1677110728000 - 2023-02-23
  • 1.31.0-beta-1677106959000 - 2023-02-22
  • 1.31.0-beta-1677004566000 - 2023-02-21
  • 1.31.0-beta-1677002140000 - 2023-02-21
  • 1.31.0-beta-1676906983000 - 2023-02-20
  • 1.31.0-beta-1676685153000 - 2023-02-18
  • 1.31.0-beta-1676665251000 - 2023-02-17
  • 1.31.0-beta-1676605905000 - 2023-02-17
  • 1.31.0-beta-1676599897000 - 2023-02-17
  • 1.31.0-beta-1676596096000 - 2023-02-17
  • 1.31.0-beta-1676591072000 - 2023-02-16
  • 1.31.0-beta-1676584193000 - 2023-02-16
  • 1.31.0-beta-1676574175000 - 2023-02-16
  • 1.31.0-beta-1676564309000 - 2023-02-16
  • 1.31.0-beta-1676510409000 - 2023-02-16
  • 1.31.0-beta-1676493483000 - 2023-02-16
  • 1.31.0-alpha-jan-31-2023 - 2023-01-31
  • 1.31.0-alpha-jan-30-2023 - 2023-01-30
  • 1.31.0-alpha-jan-29-2023 - 2023-01-29
  • 1.31.0-alpha-jan-28-2023 - 2023-01-28
  • 1.31.0-alpha-jan-27-2023 - 2023-01-27
  • 1.31.0-alpha-jan-26-2023 - 2023-01-26
  • 1.31.0-alpha-jan-25-2023 - 2023-01-25
  • 1.31.0-alpha-jan-24-2023 - 2023-01-24
  • 1.31.0-alpha-jan-23-2023 - 2023-01-23
  • 1.31.0-alpha-jan-22-2023 - 2023-01-22
  • 1.31.0-alpha-feb-9-2023 - 2023-02-09
  • 1.31.0-alpha-feb-8-2023 - 2023-02-08
  • 1.31.0-alpha-feb-7-2023 - 2023-02-07
  • 1.31.0-alpha-feb-6-2023 - 2023-02-06
  • 1.31.0-alpha-feb-5-2023 - 2023-02-05
  • 1.31.0-alpha-feb-4-2023 - 2023-02-04
  • 1.31.0-alpha-feb-3-2023 - 2023-02-03
  • 1.31.0-alpha-feb-2-2023 - 2023-02-02
  • 1.31.0-alpha-feb-15-2023 - 2023-02-15
  • 1.31.0-alpha-feb-14-2023 - 2023-02-14
  • 1.31.0-alpha-feb-13-2023 - 2023-02-13
  • 1.31.0-alpha-feb-12-2023 - 2023-02-12
  • 1.31.0-alpha-feb-11-2023 - 2023-02-11
  • 1.31.0-alpha-feb-10-2023 - 2023-02-10
  • 1.31.0-alpha-feb-1-2023 - 2023-02-01
  • 1.31.0-alpha-1674768085000 - 2023-01-26
  • 1.30.0 - 2023-01-25

    🎉 Happy New Year 🎉

    Maintenance release with bugfixes and new browsers only. We are baking some nice features for v1.31.

    Browser Versions

    • Chromium 110.0.5481.38
    • Mozilla Firefox 108.0.2
    • WebKit 16.4

    This version was also tested against the following stable channels:

    • Google Chrome 109
    • Microsoft Edge 109
  • 1.30.0-beta-1674594361000 - 2023-01-24
  • 1.30.0-beta-1674276599000 - 2023-01-21
  • 1.30.0-beta-1674267855000 - 2023-01-21
  • 1.30.0-alpha-jan-9-2023 - 2023-01-09
  • 1.30.0-alpha-jan-8-2023 - 2023-01-08
  • 1.30.0-alpha-jan-7-2023 - 2023-01-07
  • 1.30.0-alpha-jan-6-2023 - 2023-01-06
  • 1.30.0-alpha-jan-5-2023 - 2023-01-05
  • 1.30.0-alpha-jan-4-2023 - 2023-01-04
  • 1.30.0-alpha-jan-3-2023 - 2023-01-03
  • 1.30.0-alpha-jan-21-2023 - 2023-01-21
  • 1.30.0-alpha-jan-20-2023 - 2023-01-20
  • 1.30.0-alpha-jan-2-2023 - 2023-01-02
  • 1.30.0-alpha-jan-19-2023 - 2023-01-19
  • 1.30.0-alpha-jan-18-2023 - 2023-01-18
  • 1.30.0-alpha-jan-17-2023 - 2023-01-17
  • 1.30.0-alpha-jan-16-2023 - 2023-01-16
  • 1.30.0-alpha-jan-15-2023 - 2023-01-15
  • 1.30.0-alpha-jan-14-2023 - 2023-01-14
  • 1.30.0-alpha-jan-12-2023 - 2023-01-12
  • 1.30.0-alpha-jan-11-2023 - 2023-01-11
  • 1.30.0-alpha-jan-10-2023 - 2023-01-10
  • 1.30.0-alpha-jan-1-2023 - 2023-01-01
  • 1.30.0-alpha-dec-31-2022 - 2022-12-31
  • 1.30.0-alpha-dec-30-2022 - 2022-12-30
  • 1.30.0-alpha-dec-29-2022 - 2022-12-29
  • 1.30.0-alpha-dec-28-2022 - 2022-12-28
  • 1.30.0-alpha-dec-27-2022 - 2022-12-27
  • 1.30.0-alpha-dec-26-2022 - 2022-12-26
  • 1.30.0-alpha-dec-25-2022 - 2022-12-25
  • 1.30.0-alpha-dec-24-2022 - 2022-12-24
  • 1.30.0-alpha-dec-23-2022 - 2022-12-23
  • 1.30.0-alpha-dec-22-2022 - 2022-12-22
  • 1.30.0-alpha-dec-21-2022 - 2022-12-21
  • 1.30.0-alpha-dec-20-2022 - 2022-12-20
  • 1.30.0-alpha-dec-19-2022 - 2022-12-19
  • 1.30.0-alpha-dec-18-2022 - 2022-12-18
  • 1.30.0-alpha-dec-17-2022 - 2022-12-17
  • 1.30.0-alpha-dec-16-2022 - 2022-12-16
  • 1.29.2 - 2023-01-06

    Highlights

    #19661 - [BUG] 1.29.1 browserserver + page.goto = net::ERR_SOCKS_CONNECTION_FAILED

    Browser Versions

    • Chromium 109.0.5414.46
    • Mozilla Firefox 107.0
    • WebKit 16.4

    This version was also tested against the following stable channels:

    • Google Chrome 108
    • Microsoft Edge 108
  • 1.29.2-beta-1672991382000 - 2023-01-06
  • 1.29.1 - 2022-12-21

    Highlights

    #18928 - [BUG] Electron firstWindow times out after upgrading to 1.28.0
    #19246 - [BUG] Electron firstWindow times out after upgrading to 1.28.1
    #19412 - [REGRESSION]: 1.28 does not work with electron-serve anymore.
    #19540 - [BUG] electron.app.getAppPath() returns the path one level higher if you run electron pointing to the directory
    #19548 - [REGRESSION]: Ubuntu 18 LTS not supported anymore

    Browser Versions

    • Chromium 109.0.5414.46
    • Mozilla Firefox 107.0
    • WebKit 16.4

    This version was also tested against the following stable channels:

    • Google Chrome 108
    • Microsoft Edge 108
  • 1.29.1-beta-1672962462000 - 2023-01-05
  • 1.29.1-beta-1672783485000 - 2023-01-03
  • 1.29.1-beta-1672665986000 - 2023-01-02
  • 1.29.1-beta-1672665461000 - 2023-01-02
  • 1.29.1-beta-1672169891000 - 2022-12-27
  • 1.29.1-beta-1671657572000 - 2022-12-21
  • 1.29.0 - 2022-12-16
    Read more
  • 1.29.0-beta-1671650070000 - 2022-12-21
  • 1.29.0-beta-1671647145000 - 2022-12-21
  • 1.29.0-beta-1671647126000 - 2022-12-21
  • 1.29.0-beta-1671570437000 - 2022-12-20
  • 1.29.0-beta-1671569610000 - 2022-12-20
  • 1.29.0-beta-1671569601000 - 2022-12-20
  • 1.29.0-beta-1671569558000 - 2022-12-20
  • 1.29.0-beta-1671562759000 - 2022-12-20
  • 1.29.0-beta-1671554636000 - 2022-12-20
  • 1.29.0-beta-1671488624000 - 2022-12-19
  • 1.29.0-beta-1671218511000 - 2022-12-16
  • 1.29.0-beta-1671214600000 - 2022-12-16
  • 1.29.0-beta-1671212996000 - 2022-12-16
  • 1.29.0-beta-1671212933000 - 2022-12-16
  • 1.29.0-beta-1671211191000 - 2022-12-16
  • 1.29.0-beta-1671211175000 - 2022-12-16
  • 1.29.0-beta-1671131879000 - 2022-12-15
  • 1.29.0-alpha-nov-30-2022 - 2022-11-30
  • 1.29.0-alpha-nov-29-2022 - 2022-11-29
  • 1.29.0-alpha-nov-28-2022 - 2022-11-28
  • 1.29.0-alpha-nov-27-2022 - 2022-11-27
  • 1.29.0-alpha-nov-26-2022 - 2022-11-26
  • 1.29.0-alpha-nov-25-2022 - 2022-11-25
  • 1.29.0-alpha-nov-24-2022 - 2022-11-24
  • 1.29.0-alpha-nov-23-2022 - 2022-11-23
  • 1.29.0-alpha-nov-22-2022 - 2022-11-22
  • 1.29.0-alpha-nov-21-2022 - 2022-11-21
  • 1.29.0-alpha-nov-20-2022 - 2022-11-20
  • 1.29.0-alpha-nov-19-2022 - 2022-11-19
  • 1.29.0-alpha-nov-18-2022 - 2022-11-18
  • 1.29.0-alpha-nov-17-2022 - 2022-11-17
  • 1.29.0-alpha-nov-15-2022 - 2022-11-15
  • 1.29.0-alpha-nov-14-2022 - 2022-11-14
  • 1.29.0-alpha-nov-13-2022 - 2022-11-13
  • 1.29.0-alpha-nov-12-2022 - 2022-11-12
  • 1.29.0-alpha-dec-9-2022 - 2022-12-09
  • 1.29.0-alpha-dec-8-2022 - 2022-12-08
  • 1.29.0-alpha-dec-7-2022 - 2022-12-07
  • 1.29.0-alpha-dec-6-2022 - 2022-12-06
  • 1.29.0-alpha-dec-5-2022 - 2022-12-05
  • 1.29.0-alpha-dec-4-2022 - 2022-12-04
  • 1.29.0-alpha-dec-3-2022 - 2022-12-03
  • 1.29.0-alpha-dec-2-2022 - 2022-12-02
  • 1.29.0-alpha-dec-15-2022 - 2022-12-15
  • 1.29.0-alpha-dec-14-2022 - 2022-12-14
  • 1.29.0-alpha-dec-13-2022 - 2022-12-13
  • 1.29.0-alpha-dec-12-2022 - 2022-12-12
  • 1.29.0-alpha-dec-11-2022 - 2022-12-11
  • 1.29.0-alpha-dec-10-2022 - 2022-12-10
  • 1.29.0-alpha-dec-1-2022 - 2022-12-01
  • 1.29.0-alpha-1671074593000 - 2022-12-15
  • 1.29.0-alpha-1668454236000 - 2022-11-14
  • 1.28.1 - 2022-11-23

    Highlights

    This patch release includes the following bug fixes:

    #18928 - [BUG] Electron firstWindow times out after upgrading to 1.28.0
    #18920 - [BUG] [expanded=false] in role selector returns elements without aria-expanded attribute
    #18865 - [BUG] regression in killing web server process in 1.28.0

    Browser Versions

    • Chromium 108.0.5359.29
    • Mozilla Firefox 106.0
    • WebKit 16.4

    This version was also tested against the following stable channels:

    • Google Chrome 107
    • Microsoft Edge 107
  • 1.28.1-beta-1669161670000 - 2022-11-23
  • 1.28.1-beta-1669146784000 - 2022-11-22
  • 1.28.1-beta-1669075766000 - 2022-11-22
  • 1.28.0 - 2022-11-16
from @playwright/test GitHub release notes
Commit messages
Package name: @playwright/test
  • 6155a50 chore: mark v1.31.2
  • b9f4f2c cherry-pick(#21322): fix(firefox): fix reload with hash URLs
  • d7ad0a0 cherry-pick(#21318): chore: have pretty error if CT config has no defineConfig (#21321)
  • 128b2ff cherry-pick(#21283): chore: do not generate history entries on snapshot switch
  • e9fe663 cherry-pick(#21104): chore: consolidate http/https fetching (#21284)
  • 249825f cherry-pick(#21311): chore: point to pwt cli, a direct dependency
  • db82ae0 cherry-pick(#21238): fix(runner): finish dispatching if remaining tes… (#21239)
  • 4b3932d cherry-pick(#21169): fix(trace): update snapshot on keyboard selection
  • 81d2394 chore: mark 1.31.1 (#21123)
  • a4a3f72 fix: use fixed Chromium on windows (#21111)
  • 53ecdf7 cherry-pick(#21106): fix(loader): experimentalLoader with node@18
  • 4413b01 cherry-pick(#20994): docs: fix release notes
  • 1cad99c cherry-pick(#21008): docs: update auth docs to remove cross-run caching
  • 725dd8b cherry-pick(#21010): chore: align js routing logic with other langs (#21036)
  • 63642bd cherry-pick(#20997): chore: update release notes for 1.31
  • bb3b96e cherry-pick(#20933): chore: 1.31 release notes for js
  • d32d466 cherry-pick(#20998): fix: stricter condition for Firefox codegen tests workaround
  • 31ace75 cherry-pick(#20973): chore: fix cli executable bits
  • 822227f cherry-pick(#20969): chore: release notes for 1.31 for java, python, csharp
  • f276edf cherry-pick(#20968): docs: Route.fetch.maxRedirects in java (#20970)
  • b7d3611 cherry-pick(#20966): fix(docs): move callback of Worker.waitForClose to the end of param list (#20967)
  • 07af3c1 cherry-pick(#20962): chore: fix docs for python and java (#20964)
  • a8542d8 cherry-pick(#20960): fix: simplify protocol for toBeInViewport
  • 8d3481e cherry-pick(#20937): chore: minor trace viewer UI tweaks

Compare


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:

🧐 View latest project report

🛠 Adjust upgrade PR settings

🔕 Ignore this dependency or unsubscribe from future upgrade PRs

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.

1 participant