[Snyk] Upgrade @playwright/test from 1.24.0 to 1.27.0 #51
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/test from 1.24.0 to 1.27.0.
ℹ️ 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 fixes:
SNYK-JS-ELECTRON-3033934
Why? Has a fix available, CVSS 7.3
SNYK-JS-ELECTRON-3033161
Why? Has a fix available, CVSS 7.3
SNYK-JS-ELECTRON-3033159
Why? Has a fix available, CVSS 7.3
SNYK-JS-ELECTRON-3028028
Why? Has a fix available, CVSS 7.3
SNYK-JS-ELECTRON-3018192
Why? Has a fix available, CVSS 7.3
SNYK-JS-ELECTRON-3014411
Why? Has a fix available, CVSS 7.3
SNYK-JS-ELECTRON-3014409
Why? Has a fix available, CVSS 7.3
SNYK-JS-ELECTRON-3014407
Why? Has a fix available, CVSS 7.3
SNYK-JS-ELECTRON-2994414
Why? Has a fix available, CVSS 7.3
SNYK-JS-ELECTRON-2992453
Why? Has a fix available, CVSS 7.3
SNYK-JS-HAPISTATEHOOD-2769251
Why? Has a fix available, CVSS 7.3
SNYK-JS-ELECTRON-3040396
Why? Has a fix available, CVSS 7.3
SNYK-JS-ELECTRON-2978519
Why? Has a fix available, CVSS 7.3
SNYK-JS-ELECTRON-2978483
Why? Has a fix available, CVSS 7.3
SNYK-JS-ELECTRON-2977512
Why? Has a fix available, CVSS 7.3
SNYK-JS-ELECTRON-2977510
Why? Has a fix available, CVSS 7.3
(*) Note that the real score may have changed since the PR was raised.
Release notes
Package name: @playwright/test
Locators
With these new APIs, inspired by Testing Library, writing locators is a joy:
page.getByText(text, options)
to locate by text content.page.getByRole(role, options)
to locate by ARIA role, ARIA attributes and accessible name.page.getByLabel(label, options)
to locate a form control by associated label's text.page.getByPlaceholder(placeholder, options)
to locate an input by placeholder.page.getByAltText(altText, options)
to locate an element, usually image, by its text alternative.page.getByTitle(title, options)
to locate an element by its title.await page.getByLabel('Password').fill('secret-password');
await page.getByRole('button', { name: 'Sign in' }).click();
await expect(page.getByText('Welcome, John!')).toBeVisible();
All the same methods are also available on Locator, FrameLocator and Frame classes.
Other highlights
workers
option in theplaywright.config.ts
now accepts a percentage string to use some of the available CPUs. You can also pass it in the command line:npx playwright test --workers=20%
New options
host
andport
for the html reporter.New field
FullConfig.configFile
is available to test reporters, specifying the path to the config file if any.As announced in v1.25, Ubuntu 18 will not be supported as of Dec 2022. In addition to that, there will be no WebKit updates on Ubuntu 18 starting from the next Playwright release.
Behavior Changes
expect(locator).toHaveAttribute(name, value, options)
with an empty value does not match missing attribute anymore. For example, the following snippet will succeed whenbutton
does not have adisabled
attribute.Command line options
--grep
and--grep-invert
previously incorrectly ignoredgrep
andgrepInvert
options specified in the config. Now all of them are applied together.JSON reporter path resolution is performed relative to the config directory instead of the current working directory:
Browser Versions
This version was also tested against the following stable channels:
Highlights
This patch includes the following bug fixes:
#17500 - [BUG] No tests found using the test explorer - pw/test@1.26.0
Browser Versions
This version was also tested against the following stable channels:
Assertions
expect(locator).toBeEnabled([options])
.expect(locator).toHaveText(expected[, options])
now pierces open shadow roots.expect(locator).toBeEditable([options])
.expect(locator).toBeVisible([options])
.Other Highlights
maxRedirects
forapiRequestContext.get(url[, options])
and others to limit redirect count.--pass-with-no-tests
that allows the test suite to pass when no files are found.--ignore-snapshots
to skip snapshot expectations, such asexpect(value).toMatchSnapshot()
andexpect(page).toHaveScreenshot()
.Behavior Change
A bunch of Playwright APIs already support the waitUntil: 'domcontentloaded' option. For example:
Prior to 1.26, this would wait for all iframes to fire the
DOMContentLoaded
event.To align with web specification, the
'domcontentloaded'
value only waits for the target frame to fire the'DOMContentLoaded'
event. UsewaitUntil: 'load'
to wait for all iframes.Browser Versions
This version was also tested against the following stable channels:
Highlights
This patch includes the following bug fixes:
#16937 - [REGRESSION]: session storage failing >= 1.25.0 in firefox
#16955 - Not using channel on config file when Show and Reuse browser is checked
Browser Versions
This version was also tested against the following stable channels:
Highlights
This patch includes the following bug fixes:
#16319 - [BUG] webServer.command esbuild fails with ESM and Yarn
#16460 - [BUG] Component test fails on 2nd run when SSL is used
#16665 - [BUG] custom selector engines don't work when running in debug mode
Browser Versions
This version was also tested against the following stable channels:
VSCode Extension
New Playwright actions view
Pick selector
You can pick selector right from a live page, before or after running a test
Record new test
Start recording where you left off with the new 'Record new test' feature.
Show & reuse browser
Watch your tests running live & keep devtools open. Develop while continuously running tests.
Test Runner
test.step(title, body)
now returns the value of the step function:Added
test.describe.fixme(title, callback)
.New
'interrupted'
test status.Enable tracing via CLI flag:
npx playwright test --trace=on
.New property
testCase.id
that can be use in reporters as a history ID.Announcements
mcr.microsoft.com/playwright:v1.25.0-jammy
.Browser Versions
This version was also tested against the following stable channels:
Highlights
This patch includes the following bug fixes:
#15977 - [BUG] test.use of storage state regression in 1.24
Browser Versions
This version was also tested against the following stable channels:
Highlights
This patch includes the following bug fixes:
#15898 - [BUG] Typescript error: The type for webServer config property (TestConfigWebServer) is not typed correctly
#15913 - [BUG] hooksConfig is required for mount fixture
#15932 - [BUG] - Install MS Edge on CI Fails
Browser Versions
This version was also tested against the following stable channels:
Read more
Commit messages
Package name: @playwright/test
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