chore(deps): update dependency testcafe to v2.6.2 #281
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.
This PR contains the following updates:
2.2.0
->2.6.2
Release Notes
DevExpress/testcafe (testcafe)
v2.6.2
Compare Source
TestCafe v2.6.2 introduces a number of bug fixes.
Bug fixes
pressKey('space')
action doesn't affect checkbox status in Firefox (#6969).v2.6.1
Compare Source
TestCafe v2.6.1 retires Experimental Debug mode, and introduces a number of important bug fixes.
Removed: Experimental debug mode
TestCafe v1.18.0 introduced Experimental Debug mode --- a way to debug Selectors and Client Functions in the text editor. TestCafe v2.4.0 shipped with the Visual Selector Debugger, which allows users to troubleshoot Selector queries directly in the browser.
The two capabilities serve the same purpose, but the Visual Selector Debugger is more user-friendly. As such, beginning with TestCafe v2.6.1, the framework no longer includes Experimental Debug mode. Thank you to all the TestCafe users who tried out the capability.
Bug fixes
v2.6.0
Compare Source
TestCafe v2.6.0 introduces two enhancements: a new hook that allows users to modify reporter output, and support for JavaScript configuration files with the
.cjs
extension.New reporter hook
The onBeforeWrite hook allows you to modify the output of a reporter.
If you want your test reports to include custom content, you can create a custom reporter from scratch. However, this approach takes time and effort. Use the
onBeforeWrite
hook if you want to make minor changes to the output of an existing reporter.Define an
onBeforeWrite
hook in a JavaScript configuration file. The following hook adds the duration in milliseconds to every test entry in the report:CJS support
If you run TestCafe v2.6.0 and higher, you can now use a configuration file with the
.cjs
file extension. TestCafe detects the.testcaferc.cjs
file on startup, alongside its.js
and.json
counterparts.TestCafe configuration files only support CommonJS syntax. Meanwhile, modern JavaScript tools often default to ESM syntax. If a JavaScript project is of type
module
, Node.js expects the project's.js
files to contain ESM syntax.Use the
.cjs
configuration file extension to let Node.js know that the file contains CommonJS syntax.Many thanks to the TestCafe contributor Damien Guérin (@gigaga) for the implementation of this capability.
Bug fixes
t.skipJsErrors
method without arguments, TestCafe passes afalse
value to the method. This behavior is inconsistent with similar methods of a greater scope ---test.skipJsErrors
andfixture.skipJsErrors
(#7648).Error
(#7627).t.pressKey
action in Mozilla Firefox. Attempts to press the "backspace" key and the "tab" key, among others, may fail. (#7623)t.request
method. (#7609)v2.5.0
Compare Source
TestCafe v2.5.0 introduces three major enhancements:
t.report
method passes custom data to the test reporter.--native-automation
flag enables TestCafe to automate all Chromium-based browsers with the native CDP protocol.--esm
flag allows users to import ESM modules in test files.t.report
Include the t.report() method in your test to pass custom data to the reporter.
Specify arguments of any type (string, array, Object, etc). Separate arguments with a comma:
The default
spec
reporter displays custom data after test completion, once for each browser that runs the test.CDP Automation: Now Stable
TestCafe v2.2.0 introduced an experimental proxyless mode that automated Google Chrome with the native CDP protocol.
For the v2.5.0 release, the TestCafe team addressed most issues that our users discovered when the capability was "experimental", and gave it a new name --- Native Automation mode.
Unlike its predecessor, the Native Automation mode supports all Chromium-based browsers, including Microsoft Edge. Enable the
nativeAutomation
option in the command line interface, the configuration file, or the runner.run() function to try this capability.ESM Module Support: Now Stable
TestCafe v2.5.0 drops the
experimental
prefix from the--esm
CLI flag. Enable the--esm
flag to import modules that do not support CommonJS.v2.4.0
Compare Source
TestCafe v2.4.0 introduces the Visual Selector Debugger. You can now create and debug Selector queries in the browser window.
Visual Selector Debugger
TestCafe v2.4.0 displays the Visual Selector Debugger panel when you activate Debug Mode. Use the panel to debug Selector queries from your test, or generate new Selector queries.
If a Selector query causes your test to fail, add the t.debug() command after the last successful action, and launch the test.
When the test reaches the breakpoint, the window that runs the test displays the Selector Debugger panel. Copy the failing Selector query from test code to the Selector Debugger input field.
To interactively generate a Selector query, click the Pick button, and select the target element on the page.
For more information on the panel, its capabilities, and limitations, read the Visual Selector Debugger Guide.
Bug Fixes
v2.3.1
Compare Source
TestCafe v2.3.1 introduces a number of bug fixes.
Bug Fixes
test.meta
method precedes test code (#7482).v2.3.0
Compare Source
TestCafe v2.3.0 introduces
create-testcafe
--- an interactive tool that allows you to initialize a new TestCafe project in seconds. The update also includes experimental ECMAScript module support and a number of bug fixes.create-testcafe
Use the create-testcafe tool to initialize a new TestCafe project, or add TestCafe to an existing Node.js application.
Execute the following command to launch
create-testcafe
:The
create-testcafe
tool allows you to perform the following actions with a single command:Read the TestCafe Setup Wizard guide for more information on the create-testcafe tool.
Experimental: ECMAScript module support
TestCafe has always used CommonJS syntax for module imports:
An increasing number of Node.JS packages abandon CommonJS in favour of ECMAScript module syntax:
Enable the
--experimental-esm
CLI flag to import modules that do not support CommonJS. Note: tests with ECMASCript module syntax are subject to additional requirements.Additional Reuqirements
To run tests with ECMAScript
import
statements, make sure that your project meets at least one of the following requirements:type
key in your project's package.json file ismodule
..mjs
extension.Bug Fixes
_blank
target (#6926).dns.setDefaultResultOrder
method in older Node.js environments (#7447).babel-plugin-module-resolver
package (#7456).Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).
🚦 Automerge: Enabled.
♻ Rebasing: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR was generated by Mend Renovate. View the repository job log.