[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
-
3.6.2 - 2024-07-03
- [Native Automation] TestCafe incorrectly uploads files in Chrome v125 and up. (#8198)
- TestCafe dependencies include the vulnerable endpoint-utils package (#8207). The updated version includes the address package instead.
-
3.6.2-rc.1 - 2024-07-01
- fix: license checker fixed for publishing (#8222) @ Bayheck
- release: version updated to 3.6.2-rc.1 (#8220) @ Bayheck
- Upload file fixed (#8211) @ Bayheck
- remove endpoint-utils package (#8217) @ Bayheck
- build(deps): bump ws from 7.5.9 to 7.5.10 (#8218) @ dependabot
- license check workflow added (#8206) @ Bayheck
-
3.6.1 - 2024-06-10
- TestCafe incorrectly calculates the dimensions of multi-line elements. (#8179)
- TestCafe incorrectly executes the
-
3.6.1-rc.1 - 2024-06-04
- fix babel-plugin-module-resolver version to 5.0.0 (#8203) @ Bayheck
- Click on multiline elements (#8183) @ Bayheck
- build: fix vulnerabilities and removed unsued packages (#8181) @ PavelMor25
- update: resize using CDP setWindowBounds (#8169) @ Bayheck
-
3.6.0 - 2024-04-25
fixture
- Headless Chromium now automatically upgrades insecure HTTP requests to HTTPS.
- Headless Chromium does not always honor the
- [Native automation] TestCafe does not execute the
- If TestCafe launch options include
- The Linux-based Docker image of TestCafe cannot run tests in headless Chromium (#8145)
- TestCafe incorrectly crops Safari screenshots (#8154)
-
3.6.0-rc.1 - 2024-04-23
- fix: decode page in native automation mode by @ PavelMor25 in #8099
- fix: resize and maximize window with
- testing: new build of qunit-harness by @ Bayheck in #8131
- Revert "testing: new build of qunit-harness (#8131)" by @ Aleksey28 in #8141
- testing: new build of qunit-harness (#8131) by @ Aleksey28 in #8142
- chore: update gulp-less from v4 to v5 by @ Bayheck in #8137
- chores: removed npm-auditor package and the corresponding gulp task by @ Bayheck in #8143
- fix: esm loader fix by @ Bayheck in #8146
- fix: turned on headless=new mode by default by @ Bayheck in #8151
- build(deps-dev): bump follow-redirects from 1.15.5 to 1.15.6 by @ dependabot in #8156
- build(deps-dev): bump express from 4.18.2 to 4.19.2 by @ dependabot in #8163
- feat: add method which return current cdp by @ PavelMor25 in #8159
- Fix Screenshots in macOS Safari - adapt to rounded corners by @ htho in #8161
- build: bump gulp-babel by @ PavelMor25 in #8170
- Build: overrides minimatch and glob by @ PavelMor25 in #8175
- release: v3.6.0-rc.1 by @ PavelMor25 in #8174
- @ htho made their first contribution in #8161
-
3.5.0 - 2023-12-28
- Pop-up windows that launch file downloads.
- Browser window resizing.
- Screenshots.
- Video recording.
- TypeScript compilation fails if project dependencies include '@ babel/plugin-transorm-runtime' v7.23.3 or greater (#8091).
- If you enable concurrent test execution, TestCafe launches tests before the conclusion of the
- The
- TestCafe ignores the fullPage option when it takes screenshots on test failure (#7761).
- [Native Automation] TestCafe cannot populate file input fields with the
- [Native Automation] TestCafe fails to execute tests that use service workers (#8005, #8054).
- When an action target is obscured by a sticky element, TestCafe incorrectly calculates the scroll distance necessary to interact with the target. (#7377).
- Incorrect processing of front-end scripts causes automation errors (#7713, #8067, testcafe-hammerhead#2969).
- TestCafe incorrectly processes failing network requests when it runs on Node.js v16 and greater (#7097).
- TestCafe incorrectly handles native dialogs in Mozilla Firefox (#6815).
-
3.5.0-rc.1 - 2023-12-22
- release: v3.5.0-rc.1 (#8107) @ Bayheck
- feat: added pathPattern parameter to takeScreenshot method (#8093) @ Bayheck
- add missing multiple-windows-na task (#8105) @ AlexKamaev
- feat: debug with selector option added (#8066) @ Bayheck
- feat: Added path-pattern-on-fails for screenshots (closes #7014) (#8055) @ PavelMor25
- feat: experimental multiple windows in native automation (#8080) @ AlexKamaev
- build: Set @ babel/plugin-transform-runtime to a 7.23.3 version (#8103) @ PavelMor25
- fix: In concurrent test run fixed awaiting of fixture before hook (#8097) @ Bayheck
- build(deps): bump @ adobe/css-tools from 4.3.1 to 4.3.2 (#8096) @ dependabot
- build: fix desktop client test (#8100) @ PavelMor25
- fix: upload files with required inputs in native automation (#8092) @ Bayheck
- fix: disableConcurrency with quarantine mode (closes #8087) (#8088) @ PavelMor25
- fix: takeOnFails screenshot with fullPage option fixed (#8077) @ Bayheck
- fix service-worker in native automation (#8084) @ AlexKamaev
- Build: added test for Sockets hanging with node > 15.4 (#8078) @ PavelMor25
- Picker font color fix (#8071) @ Bayheck
- fixing incorrect scroll to element obscured by sticky element (#8047) @ PavelMor25
-
3.4.0 - 2023-11-09
import { Role } from 'testcafe';

- TestCafe incorrectly logs requests during concurrent test execution (#7977)
- TestCafe does not load images with non-lowercase
- TestCafe raises an unexpected client-side error when the application opens an
- TestCafe cannot interact with page items at the edge of the viewport when the browser emulates a mobile device (#8057)
from testcafe GitHub release notesv3.6.2 (2024-07-02)
Bug Fixes
What’s Changed
v3.6.1 (2024-06-10)
Bug Fixes
resizeWindowmethod 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-sizeflag. 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
disableMultipleWindowsoption 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
pathPatternOnFailsscreenshot 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 thepathPatternproperty.{ "screenshots": { "pathPatternOnFails": "${DATE}_${TIME}/failedTests/test-${TEST_INDEX}/${USERAGENT}/${FILE_INDEX}.png" } }Specify a path pattern for individual screenshots
Use the
pathPatternoption 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-windowsmode does not support tests that include the following:Please do not use the
--experimental-multiple-windowsflag in production or for business-critical tasks.Bug Fixes
fixture.beforehook (#6999).Fixture.disableConcurrencymethod does not disable concurrent test execution (8087).requiredattribute (#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
srcsetattribute declarations (testcafe-hammerhead#2958)ngx-formlyform (#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: