Skip to content

[Snyk] Upgrade playwright from 1.30.0 to 1.31.1#6

Open
snyk-bot wants to merge 1 commit intomainfrom
snyk-upgrade-6917e621bd87c60da68b481adf94c797
Open

[Snyk] Upgrade playwright from 1.30.0 to 1.31.1#6
snyk-bot wants to merge 1 commit intomainfrom
snyk-upgrade-6917e621bd87c60da68b481adf94c797

Conversation

@snyk-bot
Copy link

Snyk has created this PR to upgrade playwright from 1.30.0 to 1.31.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 52 versions ahead of your current version.
  • The recommended version was released a month ago, on 2023-02-23.
Release notes
Package name: playwright
  • 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
from playwright GitHub release notes
Commit messages
Package name: playwright
  • 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
  • 24be5c2 cherry-pick(#20927): chore(junit): render project as an agent name / hostname
  • 6d152e9 chore: mark v1.31.0 (#20931)
  • 90c4e6f chore: revert sharded html report (#20923)
  • 5899348 fix(best-practices): delete dublicate sentence (#20885)
  • 4feb7c9 fix: best-effort support for KDE Neon (#20920)
  • 5f9e2f3 chore: fix inspector cli firefox tests flakiness (#20919)
  • 91da67f test: remove magic headers in ttest (#20867)
  • 08be39a fix(watch): fix the tests on win (#20844)

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

@sonarqubecloud
Copy link

Kudos, SonarCloud Quality Gate passed!    Quality Gate passed

Bug A 0 Bugs
Vulnerability A 0 Vulnerabilities
Security Hotspot A 0 Security Hotspots
Code Smell A 0 Code Smells

No Coverage information No Coverage information
0.0% 0.0% Duplication

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

Comments