This PR was automatically created by Snyk using the credentials of a real user.
Snyk has created this PR to upgrade playwright from 1.22.2 to 1.33.0.
:information_source: 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 **666 versions** ahead of your current version.
- The recommended version was released **a month ago**, on 2023-04-27.
Release notes Package name: playwright
Use locator.or() to create a locator that matches either of the two locators.
Consider a scenario where you'd like to click on a "New email" button, but sometimes a security settings dialog shows up instead.
In this case, you can wait for either a "New email" button, or a dialog and act accordingly:
The mcr.microsoft.com/playwright:v1.33.0 now serves a Playwright image based on Ubuntu Jammy.
To use the focal-based image, please use mcr.microsoft.com/playwright:v1.33.0-focal instead.
Browser Versions
Chromium 113.0.5672.53
Mozilla Firefox 112.0
WebKit 16.4
This version was also tested against the following stable channels:
#22144 - [BUG] WebServer only starting after timeout #22191 - chore: allow reusing browser between the tests #22215 - [BUG] Tests failing in toPass often marked as passed
Browser Versions
Chromium 112.0.5615.29
Mozilla Firefox 111.0
WebKit 16.4
This version was also tested against the following stable channels:
#21993 - [BUG] Browser crash when using Playwright VSC extension and trace-viewer enabled in config #22003 - [Feature] Make Vue component mount props less restrictive #22089 - [REGRESSION]: Tests failing with "Error: tracing.stopChunk"
Browser Versions
Chromium 112.0.5615.29
Mozilla Firefox 111.0
WebKit 16.4
This version was also tested against the following stable channels:
#21832 - [BUG] Trace is not opening on specific broken locator #21897 - [BUG] --ui fails to open with error reading mainFrame from an undefined this._page #21918 - [BUG]: UI mode, skipped tests not being found #21941 - [BUG] UI mode does not show webServer startup errors #21953 - [BUG] Parameterized tests are not displayed in the UI mode
Browser Versions
Chromium 112.0.5615.29
Mozilla Firefox 111.0
WebKit 16.4
This version was also tested against the following stable channels:
#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:
This PR was automatically created by Snyk using the credentials of a real user.
Snyk has created this PR to upgrade playwright from 1.22.2 to 1.33.0.
:information_source: 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 **666 versions** ahead of your current version. - The recommended version was released **a month ago**, on 2023-04-27.
Release notes
Package name: playwright
Locators Update
Use
locator.or()
to create a locator that matches either of the two locators.Consider a scenario where you'd like to click on a "New email" button, but sometimes a security settings dialog shows up instead.
In this case, you can wait for either a "New email" button, or a dialog and act accordingly:
Use new options
hasNot
andhasNotText
inlocator.filter()
to find elements that do not match certain conditions.
Use new web-first assertion
locatorAssertions.toBeAttached()
to ensure that the elementis present in the page's DOM. Do not confuse with the
locatorAssertions.toBeVisible()
that ensures thatelement is both attached & visible.
New APIs
locator.or()
hasNot
inlocator.filter()
hasNotText
inlocator.filter()
locatorAssertions.toBeAttached()
timeout
inroute.fetch()
reporter.onExit()
mcr.microsoft.com/playwright:v1.33.0
now serves a Playwright image based on Ubuntu Jammy.To use the focal-based image, please use
mcr.microsoft.com/playwright:v1.33.0-focal
instead.Browser Versions
This version was also tested against the following stable channels:
Highlights
#22144 - [BUG] WebServer only starting after timeout
#22191 - chore: allow reusing browser between the tests
#22215 - [BUG] Tests failing in toPass often marked as passed
Browser Versions
This version was also tested against the following stable channels:
Highlights
#21993 - [BUG] Browser crash when using Playwright VSC extension and trace-viewer enabled in config
#22003 - [Feature] Make Vue component mount props less restrictive
#22089 - [REGRESSION]: Tests failing with "Error: tracing.stopChunk"
Browser Versions
This version was also tested against the following stable channels:
Highlights
#21832 - [BUG] Trace is not opening on specific broken locator
#21897 - [BUG] --ui fails to open with error reading mainFrame from an undefined this._page
#21918 - [BUG]: UI mode, skipped tests not being found
#21941 - [BUG] UI mode does not show webServer startup errors
#21953 - [BUG] Parameterized tests are not displayed in the UI mode
Browser Versions
This version was also tested against the following stable channels:
Playwright v1.32 updates
New UI Mode lets you explore, run and debug tests. Comes with a built-in watch mode.
Engage with a new flag
--ui
:npx playwright test --ui
New APIs
option: updateMode
andoption: updateContent
inpage.routeFromHAR()
andbrowserContext.routeFromHAR()
.TestInfo.testId
.name
in methodTracing.startChunk()
.Note: component tests only, does not affect end-to-end tests.
@ playwright/experimental-ct-react
now supports React 18 only.@ playwright/experimental-ct-react
with@ playwright/experimental-ct-react17
.Browser Versions
This version was also tested against the following stable channels:
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
This version was also tested against the following stable channels: