Open
Conversation
Snyk has created this PR to upgrade playwright from 1.30.0 to 1.31.1. See this package in npm: https://www.npmjs.com/package/playwright See this project in Snyk: https://app.snyk.io/org/codersdba/project/6e98ea36-4ce0-4423-bdfb-2c4d0269390d?utm_source=github&utm_medium=referral&page=upgrade-pr
|
Kudos, SonarCloud Quality Gate passed!
|
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.








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.
Release notes
Package name: playwright
-
1.31.1 - 2023-02-23
- Chromium 111.0.5563.19
- Mozilla Firefox 109.0
- WebKit 16.4
- 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
-
// playwright.config.ts
-
const button = page.getByRole('button');
- DOM snapshots in trace viewer can be now opened in a separate window.
- New method
- New option
- Playwright now supports Debian 11 arm64.
- Official docker images now include Node 18 instead of Node 16.
⚠️ Breaking change in component tests
// Before
// After
- Chromium 111.0.5563.19
- Mozilla Firefox 109.0
- WebKit 16.4
- 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
- Chromium 110.0.5481.38
- Mozilla Firefox 108.0.2
- WebKit 16.4
- Google Chrome 109
- Microsoft Edge 109
from playwright GitHub release notesHighlights
#21093 - [Regression v1.31] Headless Windows shows cascading cmd windows
#21106 - fix(loader): experimentalLoader with node@18
Browser Versions
This version was also tested against the following stable channels:
New APIs
New property
TestProject.dependenciesto 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.
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.// 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
defineConfigto be used inplaywright.config.maxRedirectsfor methodRoute.fetch.Note: component tests only, does not affect end-to-end tests.
playwright-ct.configconfiguration file for component testing now requires callingdefineConfig.import { type PlaywrightTestConfig, devices } from '@ playwright/experimental-ct-react';
const config: PlaywrightTestConfig = {
// ... config goes here ...
};
export default config;
Replace
configvariable definition withdefineConfigcall:import { defineConfig, devices } from '@ playwright/experimental-ct-react';
export default defineConfig({
// ... config goes here ...
});
Browser Versions
This version was also tested against the following stable channels:
🎉 Happy New Year 🎉
Maintenance release with bugfixes and new browsers only. We are baking some nice features for v1.31.
Browser Versions
This version was also tested against the following stable channels:
Commit messages
Package name: playwright
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