[Snyk] Upgrade @playwright/test from 1.19.0-alpha-1643749494000 to 1.25.0 #44
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.19.0-alpha-1643749494000 to 1.25.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-JPEGJS-2859218
Why? Proof of Concept exploit, Has a fix available, CVSS 7.5
SNYK-JS-MINIMIST-2429795
Why? Proof of Concept exploit, Has a fix available, CVSS 7.5
(*) Note that the real score may have changed since the PR was raised.
Release notes
Package name: @playwright/test
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
Highlights
This patch includes the following bug fix:
#15717 - [REGRESSION]: Suddenly stopped working despite nothing having changed (
experimentalLoader.js:load
did not call the next hook in its chain and did not explicitly signal a short circuit)Browser Versions
This version was also tested against the following stable channels:
Highlights
This patch includes the following bug fixes:
#15557 - [REGRESSION]: Event Listeners not being removed if same handler is used for different events
Browser Versions
This version was also tested against the following stable channels:
Highlights
This patch includes the following bug fixes:
#15273 - [BUG] LaunchOptions config has no effect after update to v1.23.0
#15351 - [REGRESSION]: Component testing project does not compile anymore
#15431 - [BUG] Regression: page.on('console') is ignored in 1.23
Browser Versions
This version was also tested against the following stable channels:
Highlights
This patch includes the following bug fixes:
#15219 - [REGRESSION]: playwright-core 1.23.0 issue with 'TypeError [ERR_INVALID_ARG_TYPE]: The "listener" argument'
Browser Versions
This version was also tested against the following stable channels:
Playwright v1.23 updates
Network Replay
Now you can record network traffic into a HAR file and re-use the data in your tests.
To record network into HAR file:
Alternatively, you can record HAR programmatically:
Use the new methods
page.routeFromHAR()
orbrowserContext.routeFromHAR()
to serve matching responses from the HAR file:Read more in our documentation.
Advanced Routing
You can now use
route.fallback()
to defer routing to other handlers.Consider the following example:
test.beforeEach(async ({ page }) => {
await page.route('/*', route => {
const headers = route.request().headers();
delete headers['if-none-match'];
route.fallback({ headers });
});
});
test('should work', async ({ page }) => {
await page.route('**/*', route => {
if (route.request().resourceType() === 'image')
route.abort();
else
route.fallback();
});
});
Note that the new methods
page.routeFromHAR()
andbrowserContext.routeFromHAR()
also participate in routing and could be deferred to.Web-First Assertions Update
expect(locator).toHaveValues()
that asserts all selected values of<select multiple>
element.expect(locator).toContainText()
andexpect(locator).toHaveText()
now acceptignoreCase
option.Component Tests Update
@ playwright/experimental-ct-vue2
package..js
files.Read more about component testing with Playwright.
Miscellaneous
serviceWorkers
:.zip
path forrecordHar
context option automatically zips the resulting HAR:"minimal"
HAR recording modethat only records information that is essential for replaying:
mcr.microsoft.com/playwright:v1.23.0-focal
.WebServer is now considered "ready" if request to the specified port has any of the following HTTP status codes:
200-299
300-399
(new)400
,401
,402
,403
(new)Commit messages
Package name: @playwright/test
REPOSITORY_DISPATCH_PERSONAL_ACCESS_TOKEN
everywhere microsoft/playwright#16426): devops: use `REPOSITORY_DISPATCH_PERSONAL_ACCESS_TOKEN` everywhere (cherry-pick(#16426): devops: useREPOSITORY_DISPATCH_PERSONAL_ACCESS_TOKEN
everywhere microsoft/playwright#16428)