-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[Snyk] Upgrade @playwright/test from 1.48.2 to 1.49.1 #99
base: main
Are you sure you want to change the base?
[Snyk] Upgrade @playwright/test from 1.48.2 to 1.49.1 #99
Conversation
Snyk has created this PR to upgrade @playwright/test from 1.48.2 to 1.49.1. See this package in npm: @playwright/test See this project in Snyk: https://app.snyk.io/org/nerds-github/project/6bdc0bf1-afe3-4e5e-952f-f1d06480e99b?utm_source=github&utm_medium=referral&page=upgrade-pr
Reviewer's Guide by SourceryThis pull request upgrades State diagram for Playwright version upgrade changesstateDiagram-v2
[*] --> Playwright_1.48.2
Playwright_1.48.2 --> Playwright_1.49.1: Upgrade
state Playwright_1.49.1 {
[*] --> NewFeatures
[*] --> BugFixes
[*] --> BreakingChanges
state NewFeatures {
AriaSnapshots
TestRunnerImprovements
}
state BugFixes {
UIModeCrashFixes
TraceViewerFixes
InspectorClosingFixes
}
state BreakingChanges {
NewHeadlessMode
WebKitUpdatesDiscontinued
ComponentTestingUpdates
}
}
File-Level Changes
Tips and commandsInteracting with Sourcery
Customizing Your ExperienceAccess your dashboard to:
Getting Help
|
Label error. Requires exactly 1 of: changelog:.*. Found: |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We have skipped reviewing this pull request. Here's why:
- It seems to have been created by a bot ('[Snyk]' found in title). We assume it knows what it's doing!
- We don't review packaging changes - Let us know if you'd like us to change this.
Snyk has created this PR to upgrade @playwright/test from 1.48.2 to 1.49.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 77 versions ahead of your current version.
The recommended version was released 25 days ago.
Issues fixed by the recommended upgrade:
SNYK-JS-NANOID-8492085
SNYK-JS-NANOID-8492085
Release notes
Package name: @playwright/test
Highlights
#33802 - [Bug]: Codegen's Clear button doesn't work if not recording
#33806 - [Bug]: playwright hangs while waiting for pending navigations
#33787 - [Bug]: VSC extension isn't capturing all entered text
#33788 - [Regression]: Double clicking the steps in trace viewer doesn't filter actions
#33772 - [Bug]: aria_snapshot generates invalid yaml when combined with an aria-label attribut
#33791 - [Bug]: text input with number value raises "container is not iterable" with to_match_aria_snapshot
#33644 - [Bug]: getByRole can't find element with the accessible name from label element when aria-labelledby is not valid
#33660 - [Regression]: Unable to open Playwright UI in Dark Mode
Browser Versions
This version was also tested against the following stable channels:
Aria snapshots
New assertion expect(locator).toMatchAriaSnapshot() verifies page structure by comparing to an expected accessibility tree, represented as YAML.
You can generate this assertion with Test Generator and update the expected snapshot with
--update-snapshots
command line flag.Learn more in the aria snapshots guide.
Test runner
tsconfig
to be used for all tests.'on-first-failure'
for testOptions.screenshot.Error.cause
.Breaking: channels
chrome
,msedge
and similar switch to new headlessThis change affects you if you're using one of the following channels in your
playwright.config.ts
:chrome
,chrome-dev
,chrome-beta
, orchrome-canary
msedge
,msedge-dev
,msedge-beta
, ormsedge-canary
What do I need to do?
After updating to Playwright v1.49, run your test suite. If it still passes, you're good to go. If not, you will probably need to update your snapshots, and adapt some of your test code around PDF viewers and extensions. See issue #33566 for more details.
Other breaking changes
@ playwright/experimental-ct-vue2
will no longer be updated.@ playwright/experimental-ct-solid
will no longer be updated.Try new Chromium headless
You can opt into the new headless mode by using
'chromium'
channel. As official Chrome documentation puts it:See issue #33566 for the list of possible breakages you could encounter and more details on Chromium headless. Please file an issue if you see any problems after opting in.
export default defineConfig({
projects: [
{
name: 'chromium',
use: { ...devices['Desktop Chrome'], channel: 'chromium' },
},
],
});
Miscellaneous
<canvas>
elements inside a snapshot now draw a preview.Browser Versions
This version was also tested against the following stable channels:
Highlights
#33141 - [Bug]: UI Mode crashed
#33219 - [BUG] Trace Viewer PWA crashes with "Aw, Snap!"
#33086 - [Bug]: UI Mode Memory problem
#33000 - [Regression]: Inspector and Browser doesn't close on CTRL+C
#33204 - [Bug]: Chrome tab and inspector not closing after terminating session in terminal
Browser Versions
This version was also tested against the following stable channels:
Important
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:
Summary by Sourcery
Upgrade Playwright to version 1.49.1.
New Features:
expect(locator).toMatchAriaSnapshot()
assertion to verify page structure by comparing to an expected accessibility tree, represented as YAML.testConfig.tsconfig
option to specify a single tsconfig to be used for all tests.test.fail.only()
method to focus on a failing test.testConfig.globalSetup
andtestConfig.globalTeardown
.testOptions.screenshot
.testInfoError.cause
andtestError.cause
properties mirroringError.cause
.<canvas>
elements inside a snapshot.tracing.group()
method to visually group actions in the trace.Bug Fixes:
Tests:
@playwright/experimental-ct-vue2
and@playwright/experimental-ct-solid
.