[Snyk] Upgrade playwright from 1.48.2 to 1.50.1 #7
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.48.2 to 1.50.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 176 versions ahead of your current version.
The recommended version was released 2 months ago.
Release notes
Package name: playwright
-
1.50.1 - 2025-01-31
- Chromium 133.0.6943.16
- Mozilla Firefox 134.0
- WebKit 18.2
- Google Chrome 132
- Microsoft Edge 132
-
1.50.1-beta-1738613447000 - 2025-02-03
-
1.50.1-beta-1738592302000 - 2025-02-03
-
1.50.1-beta-1738589118000 - 2025-02-03
-
1.50.1-beta-1738339353000 - 2025-01-31
-
1.50.0 - 2025-01-23
-
-
test('some test', async ({ page }) => {
-
-
-
-
-
-
-
- Updated default HTML reporter to improve display of attachments.
- New button for picking elements to produce aria snapshots.
- Additional details (such as keys pressed) are now displayed alongside action API calls in traces.
- Display of
- expect(locator).toBeEditable() and locator.isEditable() now throw if the target element is not
- Option testConfig.updateSnapshots now updates all snapshots when set to
- Chromium 133.0.6943.16
- Mozilla Firefox 134.0
- WebKit 18.2
- Google Chrome 132
- Microsoft Edge 132
-
1.50.0-beta-1738269400000 - 2025-01-30
-
1.50.0-beta-1738267712000 - 2025-01-30
-
1.50.0-beta-1738240825000 - 2025-01-30
-
1.50.0-beta-1738235262000 - 2025-01-30
-
1.50.0-beta-1738199921000 - 2025-01-30
-
1.50.0-beta-1738167398000 - 2025-01-29
-
1.50.0-beta-1738167361000 - 2025-01-29
-
1.50.0-beta-1738162324000 - 2025-01-29
-
1.50.0-beta-1738148461000 - 2025-01-29
-
1.50.0-beta-1738116015000 - 2025-01-29
-
1.50.0-beta-1738109212000 - 2025-01-29
-
1.50.0-beta-1738103953000 - 2025-01-28
-
1.50.0-beta-1738058149000 - 2025-01-28
-
1.50.0-beta-1737762224000 - 2025-01-24
-
1.50.0-beta-1737749840000 - 2025-01-24
-
1.50.0-beta-1737639506000 - 2025-01-23
-
1.50.0-beta-1737637449000 - 2025-01-23
-
1.50.0-beta-1737629780000 - 2025-01-23
-
1.50.0-beta-1737569167000 - 2025-01-22
-
1.50.0-beta-1737568569000 - 2025-01-22
-
1.50.0-beta-1737557690000 - 2025-01-22
-
1.50.0-beta-1737538027000 - 2025-01-22
-
1.50.0-beta-1737532416000 - 2025-01-22
-
1.50.0-beta-1737532333000 - 2025-01-22
-
1.50.0-beta-1737179657000 - 2025-01-18
-
1.50.0-beta-1737153401000 - 2025-01-17
-
1.50.0-beta-1737137869000 - 2025-01-17
-
1.50.0-beta-1731498714000 - 2024-11-13
-
1.50.0-alpha-2025-01-17 - 2025-01-17
-
1.50.0-alpha-2025-01-16 - 2025-01-16
-
1.50.0-alpha-2025-01-15 - 2025-01-15
-
1.50.0-alpha-2025-01-14 - 2025-01-14
-
1.50.0-alpha-2025-01-13 - 2025-01-13
-
1.50.0-alpha-2025-01-12 - 2025-01-12
-
1.50.0-alpha-2025-01-11 - 2025-01-11
-
1.50.0-alpha-2025-01-07 - 2025-01-07
-
1.50.0-alpha-2025-01-06 - 2025-01-06
-
1.50.0-alpha-2025-01-05 - 2025-01-05
-
1.50.0-alpha-2025-01-04 - 2025-01-04
-
1.50.0-alpha-2025-01-03 - 2025-01-03
-
1.50.0-alpha-2025-01-02 - 2025-01-02
-
1.50.0-alpha-2025-01-01 - 2025-01-01
-
1.50.0-alpha-2024-12-31 - 2024-12-31
-
1.50.0-alpha-2024-12-30 - 2024-12-30
-
1.50.0-alpha-2024-12-29 - 2024-12-29
-
1.50.0-alpha-2024-12-28 - 2024-12-28
-
1.50.0-alpha-2024-12-27 - 2024-12-27
-
1.50.0-alpha-2024-12-26 - 2024-12-26
-
1.50.0-alpha-2024-12-25 - 2024-12-25
-
1.50.0-alpha-2024-12-24 - 2024-12-24
-
1.50.0-alpha-2024-12-23 - 2024-12-23
-
1.50.0-alpha-2024-12-22 - 2024-12-22
-
1.50.0-alpha-2024-12-21 - 2024-12-21
-
1.50.0-alpha-2024-12-20 - 2024-12-20
-
1.50.0-alpha-2024-12-19 - 2024-12-19
-
1.50.0-alpha-2024-12-18 - 2024-12-18
-
1.50.0-alpha-2024-12-17 - 2024-12-17
-
1.50.0-alpha-2024-12-16 - 2024-12-16
-
1.50.0-alpha-2024-12-15 - 2024-12-15
-
1.50.0-alpha-2024-12-14 - 2024-12-14
-
1.50.0-alpha-2024-12-13 - 2024-12-13
-
1.50.0-alpha-2024-12-12 - 2024-12-12
-
1.50.0-alpha-2024-12-11 - 2024-12-11
-
1.50.0-alpha-2024-12-10 - 2024-12-10
-
1.50.0-alpha-2024-12-09 - 2024-12-09
-
1.50.0-alpha-2024-12-08 - 2024-12-08
-
1.50.0-alpha-2024-12-07 - 2024-12-07
-
1.50.0-alpha-2024-12-06 - 2024-12-06
-
1.50.0-alpha-2024-12-05 - 2024-12-05
-
1.50.0-alpha-2024-12-04 - 2024-12-04
-
1.50.0-alpha-2024-12-03 - 2024-12-03
-
1.50.0-alpha-2024-12-02 - 2024-12-02
-
1.50.0-alpha-2024-12-01 - 2024-12-01
-
1.50.0-alpha-2024-11-30 - 2024-11-30
-
1.50.0-alpha-2024-11-29 - 2024-11-29
-
1.50.0-alpha-2024-11-28 - 2024-11-28
-
1.50.0-alpha-2024-11-27 - 2024-11-27
-
1.50.0-alpha-2024-11-26 - 2024-11-26
-
1.50.0-alpha-2024-11-25 - 2024-11-25
-
1.50.0-alpha-2024-11-24 - 2024-11-24
-
1.50.0-alpha-2024-11-23 - 2024-11-23
-
1.50.0-alpha-2024-11-22 - 2024-11-22
-
1.50.0-alpha-2024-11-21 - 2024-11-21
-
1.50.0-alpha-2024-11-20 - 2024-11-20
-
1.50.0-alpha-2024-11-19 - 2024-11-19
-
1.50.0-alpha-2024-11-18 - 2024-11-18
-
1.50.0-alpha-2024-11-17 - 2024-11-17
-
1.50.0-alpha-2024-11-16 - 2024-11-16
-
1.50.0-alpha-2024-11-15 - 2024-11-15
-
1.50.0-alpha-2024-11-14 - 2024-11-14
-
1.50.0-alpha-1737075373000 - 2025-01-17
-
1.50.0-alpha-1737068696000 - 2025-01-16
-
1.50.0-alpha-1736502759000 - 2025-01-10
-
1.49.1 - 2024-12-10
- Chromium 131.0.6778.33
- Mozilla Firefox 132.0
- WebKit 18.2
- Google Chrome 130
- Microsoft Edge 130
-
1.49.1-beta-1735303389000 - 2024-12-27
-
1.49.1-beta-1733793925000 - 2024-12-10
-
1.49.0 - 2024-11-18
- New option testConfig.tsconfig allows to specify a single
- New method test.fail.only() to focus on a failing test.
- Options testConfig.globalSetup and testConfig.globalTeardown now support multiple setups/teardowns.
- New value
- Added "previous" and "next" buttons to the HTML report to quickly switch between test cases.
- New properties testInfoError.cause and testError.cause mirroring
- There will be no more updates for WebKit on Ubuntu 20.04 and Debian 11. We recommend updating your OS to a later version.
- Package
- Package
import { defineConfig, devices } from '@ playwright/test';
- New method tracing.group() to visually group actions in the trace.
- Playwright docker images switched from Node.js v20 to Node.js v22 LTS.
- Chromium 131.0.6778.33
- Mozilla Firefox 132.0
- WebKit 18.2
- Google Chrome 130
- Microsoft Edge 130
-
1.49.0-beta-1733521450000 - 2024-12-06
-
1.49.0-beta-1733285915000 - 2024-12-04
-
1.49.0-beta-1733246833000 - 2024-12-03
-
1.49.0-beta-1732799609000 - 2024-11-28
-
1.49.0-beta-1732795940000 - 2024-11-28
-
1.49.0-beta-1732795768000 - 2024-11-28
-
1.49.0-beta-1732795640000 - 2024-11-28
-
1.49.0-beta-1732210972000 - 2024-11-21
-
1.49.0-beta-1732200847000 - 2024-11-21
-
1.49.0-beta-1732183793000 - 2024-11-21
-
1.49.0-beta-1732179895000 - 2024-11-21
-
1.49.0-beta-1732065049000 - 2024-11-20
-
1.49.0-beta-1732021985000 - 2024-11-19
-
1.49.0-beta-1732008569000 - 2024-11-19
-
1.49.0-beta-1731954680000 - 2024-11-18
-
1.49.0-beta-1731772650000 - 2024-11-16
-
1.49.0-beta-1731718789000 - 2024-11-16
-
1.49.0-beta-1731709328000 - 2024-11-15
-
1.49.0-beta-1731703794000 - 2024-11-15
-
1.49.0-beta-1731687401000 - 2024-11-15
-
1.49.0-beta-1731672404000 - 2024-11-15
-
1.49.0-beta-1731616844000 - 2024-11-14
-
1.49.0-beta-1731595428000 - 2024-11-14
-
1.49.0-beta-1731591637000 - 2024-11-14
-
1.49.0-beta-1731582214000 - 2024-11-14
-
1.49.0-beta-1731562490000 - 2024-11-14
-
1.49.0-beta-1731497689000 - 2024-11-13
-
1.49.0-alpha-2024-11-13 - 2024-11-13
-
1.49.0-alpha-2024-11-12 - 2024-11-12
-
1.49.0-alpha-2024-11-11 - 2024-11-11
-
1.49.0-alpha-2024-11-10 - 2024-11-10
-
1.49.0-alpha-2024-11-09 - 2024-11-09
-
1.49.0-alpha-2024-11-08 - 2024-11-08
-
1.49.0-alpha-2024-11-07 - 2024-11-07
-
1.49.0-alpha-2024-11-06 - 2024-11-06
-
1.49.0-alpha-2024-11-05 - 2024-11-05
-
1.49.0-alpha-2024-11-04 - 2024-11-04
-
1.49.0-alpha-2024-11-03 - 2024-11-03
-
1.49.0-alpha-2024-11-02 - 2024-11-02
-
1.49.0-alpha-2024-11-01 - 2024-11-01
-
1.49.0-alpha-2024-10-31 - 2024-10-31
-
1.49.0-alpha-2024-10-30 - 2024-10-30
-
1.49.0-alpha-2024-10-29 - 2024-10-29
-
1.49.0-alpha-2024-10-28 - 2024-10-28
-
1.49.0-alpha-2024-10-27 - 2024-10-27
-
1.49.0-alpha-2024-10-26 - 2024-10-26
-
1.49.0-alpha-2024-10-25 - 2024-10-25
-
1.49.0-alpha-2024-10-24 - 2024-10-24
-
1.49.0-alpha-2024-10-23 - 2024-10-23
-
1.49.0-alpha-2024-10-22 - 2024-10-22
-
1.49.0-alpha-2024-10-21 - 2024-10-21
-
1.49.0-alpha-2024-10-20 - 2024-10-20
-
1.49.0-alpha-2024-10-19 - 2024-10-19
-
1.49.0-alpha-2024-10-18 - 2024-10-18
-
1.49.0-alpha-2024-10-17 - 2024-10-17
-
1.49.0-alpha-2024-10-16 - 2024-10-16
-
1.49.0-alpha-2024-10-15 - 2024-10-15
-
1.49.0-alpha-2024-10-14 - 2024-10-14
-
1.49.0-alpha-2024-10-13 - 2024-10-13
-
1.49.0-alpha-2024-10-12 - 2024-10-12
-
1.49.0-alpha-2024-10-11 - 2024-10-11
-
1.49.0-alpha-2024-10-10 - 2024-10-10
-
1.49.0-alpha-2024-10-09 - 2024-10-09
-
1.49.0-alpha-2024-10-08 - 2024-10-08
-
1.49.0-alpha-2024-10-07 - 2024-10-07
-
1.49.0-alpha-2024-10-06 - 2024-10-06
-
1.49.0-alpha-2024-10-05 - 2024-10-05
-
1.49.0-alpha-2024-10-04 - 2024-10-04
-
1.49.0-alpha-2024-10-03 - 2024-10-03
-
1.49.0-alpha-2024-10-02 - 2024-10-02
-
1.49.0-alpha-2024-10-01 - 2024-10-01
-
1.49.0-alpha-1730721360000 - 2024-11-04
-
1.49.0-alpha-1728937530000 - 2024-10-14
-
1.48.2 - 2024-10-25
- Chromium 130.0.6723.19
- Mozilla Firefox 130.0
- WebKit 18.0
- Google Chrome 129
- Microsoft Edge 129
from playwright GitHub release notesHighlights
#34483 - [Feature]: single aria snapshot for different engines/browsers
#34497 - [Bug]: Firefox not handling keepalive: true fetch requests
#34504 - [Bug]: update snapshots not creating good diffs
#34507 - [Bug]: snapshotPathTemplate doesnt work when multiple projects
#34462 - [Bug]: updateSnapshots "changed" throws an error
Browser Versions
This version was also tested against the following stable channels:
Test runner
New option
timeoutallows specifying a maximum run time for an individual test step. A timed-out step will fail the execution of the test.New method test.step.skip() to disable execution of a test step.
await test.step('before running step', async () => {
// Normal step
});
await test.step.skip('not yet ready', async () => {
// This step is skipped
});
await test.step('after running step', async () => {
// This step still runs even though the previous one was skipped
});
});
Expanded expect(locator).toMatchAriaSnapshot() to allow storing of aria snapshots in separate YAML files.
Added method expect(locator).toHaveAccessibleErrorMessage() to assert the Locator points to an element with a given aria errormessage.
Option testConfig.updateSnapshots added the configuration enum
changed.changedupdates only the snapshots that have changed, whereasallnow updates all snapshots, regardless of whether there are any differences.New option testConfig.updateSourceMethod defines the way source code is updated when testConfig.updateSnapshots is configured. Added
overwriteand3-waymodes that write the changes into source code, on top of existingpatchmode that creates a patch file.npx playwright test --update-snapshots=changed --update-source-method=3wayOption testConfig.webServer added a
gracefulShutdownfield for specifying a process kill signal other than the defaultSIGKILL.Exposed testStep.attachments from the reporter API to allow retrieval of all attachments created by that step.
New option
pathTemplatefortoHaveScreenshotandtoMatchAriaSnapshotassertions in the testConfig.expect configuration.UI updates
canvascontent in traces is error-prone. Display is now disabled by default, and can be enabled via theDisplay canvas contentUI setting.CallandNetworkpanels now display additional time information.Breaking
<input>,<select>, or a number of other editable elements.all, rather than only the failed/changed snapshots. Use the new enumchangedto keep the old functionality of only updating the changed snapshots.Browser Versions
This version was also tested against the following stable channels:
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-snapshotscommand line flag.Learn more in the aria snapshots guide.
Test runner
tsconfigto be used for all tests.'on-first-failure'for testOptions.screenshot.Error.cause.Breaking: channels
chrome,msedgeand 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-canarymsedge,msedge-dev,msedge-beta, ormsedge-canaryWhat 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-vue2will no longer be updated.@ playwright/experimental-ct-solidwill 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: