[Snyk] Upgrade testcafe from 3.4.0 to 3.6.2 #6
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 testcafe from 3.4.0 to 3.6.2.
ℹ️ 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 8 versions ahead of your current version.
The recommended version was released on a month ago.
Issues fixed by the recommended upgrade:
SNYK-JS-IP-7148531
Release notes
Package name: testcafe
v3.6.2 (2024-07-02)
Bug Fixes
What’s Changed
v3.6.1 (2024-06-10)
Bug Fixes
resizeWindow
method if you maximize the target window first. (#8157)What’s Changed
TestCafe v3.6.0 Released
The TestCafe v3.6.0 update includes two minor changes and a number of bug fixes.
New method: t.getCurrentCDPSession
The t.getCurrentCDPSession method allows native automation users to examine and control the CDP connection between TestCafe and the browser.
Use the method to obtain the Chrome DevTools Protocol object for the current session. The CDP object exposes properties and methods that pertain to the CDP connection between TestCafe and the active browser window.
Get current CDP session
.page('https://devexpress.github.io/testcafe/example');
test(
Get current CDP session
, async t => {const mainWindowId = await t.testRun.activeWindowId;
}
Headless browser connection
TestCafe v3.6.0 takes advantage of the recent Chromium headless mode upgrade. The new headless mode offers better reliability and higher emulation accuracy.
The headless mode upgrade may cause unexpected changes to your tests' behavior. Take note of the following changes:
--window-size
flag. This behavior is a known Chromium bug.Bug Fixes
maximizeWindow()
method in beforeEach hooks (#8117)--esm
, the framework crashes on launch in environments with Node.JS v20 and up (#8132)What's Changed
disableMultipleWindows
option in NA mode by @ PavelMor25 in #8135New Contributors
Full Changelog: v3.5.0...v3.6.0-rc.1
v3.5.0 (2023-12-28)
TestCafe v3.5.0 includes multiple enhancements and bug fixes. Pass Selector queries to the Visual Selector Debugger, explore new ways to specify screenshot path patterns, and use a new experimental flag to run multi-window tests with native automation!
meta-readmore
Pass Selector queries to the Visual Selector Debugger
When you pass a Selector query to the t.debug() method, TestCafe uses the query to populate the input field of the Visual Selector Debugger. The debugger highlights page elements that match the query.
Use a custom path pattern for screenshots of failed tests
The
pathPatternOnFails
screenshot option allows TestCafe users to define a separate set of naming rules for screenshots taken on test failure. You can store these screenshots in a different folder, or add a common, recognizable element to their filenames. You can use this option on its own, or in conjunction with thepathPattern
property.Specify a path pattern for individual screenshots
Use the
pathPattern
option of the t.takeScreenshot action to specify a custom naming pattern for an individual screenshot:(Experimental) Run multi-window tests with native automation
TestCafe v2.5.0 was the first version of TestCafe to include native automation --- the capability to automate Chromium-based browsers with the native Chrome Debugging Protocol. This approach offers greater test stability and speed, but has a fair share of limitations. One of them is its incompatibility with multi-window tests.
TestCafe v3.5.0 offers an experimental solution for this issue --- the --experimental-multiple-windows CLI flag. If you enable this flag, you can run multi-window tests with the native automation engine.
The
--experimental-multiple-windows
mode does not support tests that include the following:Please do not use the
--experimental-multiple-windows
flag in production or for business-critical tasks.Bug Fixes
fixture.before
hook (#6999).Fixture.disableConcurrency
method does not disable concurrent test execution (8087).required
attribute (#8079).What’s Changed
TestCafe v3.4.0 Released
TestCafe v3.4.0 introduces relative Role URLs, the ability to disable concurrency on a per-fixture basis, as well as other improvements and bug fixes.
Enhancements
Relative Role URLs
Earlier versions of TestCafe did not support relative URLs for Role log-in pages. In TestCafe v3.4.0 and higher, if you set the baseUrl configuration file parameter or the --base-url CLI option, you can set a relative URL for a Role log-in page:
const userOne = Role('./login', async t => {
/* log-in actions go here */
});
Disable concurrency on a per-fixture basis
Concurrent test execution is not suitable for tests that can only run in a certain order. To ignore the global concurrency setting for a particular fixture, use the disableConcurrency fixture method.
Development Mode Enhancements
When you debug code inside a browser, the browser can appear unresponsive. Earlier versions of TestCafe automatically relaunched unresponsive browsers, including browsers that were used for debugging.
TestCafe v3.4.0 does not relaunch unresponsive browsers if you enter development mode.
Debug Panel Enhancements
The debug panel includes a new "Hide Picker" button. Click this button to disable the Selector Debugger and hide the Selector input field.
Bug Fixes
srcset
attribute declarations (testcafe-hammerhead#2958)ngx-formly
form (#7758)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: