Skip to content

Releases: DevExpress/testcafe

v2.5.0-rc.3

06 Apr 08:48
Compare
Choose a tag to compare
v2.5.0-rc.3 Pre-release
Pre-release

What's Changed

Full Changelog: v2.5.0-rc.2...v2.5.0-rc.3

v2.5.0-rc.2

04 Apr 11:56
Compare
Choose a tag to compare
v2.5.0-rc.2 Pre-release
Pre-release
release: publish 2.5.0-rc.2

v2.5.0-rc.1

30 Mar 14:56
Compare
Choose a tag to compare
v2.5.0-rc.1 Pre-release
Pre-release

What’s Changed

v2.4.0

07 Mar 08:47
661b8b3
Compare
Choose a tag to compare

v2.4.0 (2023-03-06)

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.

  • TestCafe highlights page elements that match the Selector query.
  • If no elements match the Selector query, the panel displays the No Matching Elements warning.
  • If your Selector query contians a syntax error, the panel displays the Invalid Selector warning.

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.4.0-rc.1

03 Mar 17:47
8fd03c3
Compare
Choose a tag to compare
v2.4.0-rc.1 Pre-release
Pre-release

What’s Changed

v2.3.1

09 Feb 14:52
8278596
Compare
Choose a tag to compare

v2.3.1 (2023-02-09)

TestCafe v2.3.1 introduces a number of bug fixes.

Bug Fixes

  • Client-side code with optional chaining may trigger a TestCafe error (#7387).
  • TestCafe cannot interact with images from the Shadow DOM (#7454).
  • TestCafe v2.3.0 fails to launch when the test.meta method precedes test code (#7482).
  • When TestCafe launches a headless instance of Google Chrome in proxyless mode, it cannot interact with elements that are overlapped by the status bar (#7483).

v2.3.1-rc.2

08 Feb 20:08
0ddf646
Compare
Choose a tag to compare
v2.3.1-rc.2 Pre-release
Pre-release

What’s Changed

v2.3.1-rc.1

06 Feb 11:36
6f50233
Compare
Choose a tag to compare
v2.3.1-rc.1 Pre-release
Pre-release

What’s Changed

v2.3.1-alpha.1

02 Feb 09:11
7048138
Compare
Choose a tag to compare
v2.3.1-alpha.1 Pre-release
Pre-release

What’s Changed

v2.3.0

30 Jan 10:04
62635a6
Compare
Choose a tag to compare

v2.3.0 (2023-01-30)

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.

IMPORTANT:
TestCafe v2.3.0 ends support for Node.js 14 due to a known vulnerability in the babel-plugin-module-resolver module.

Install an up-to-date version of the Node.js runtime to use TestCafe v2.3.0 and up.

The official maintenance period for Node.js 14 elapses on April 1st, 2023.

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:

npx create-testcafe

wizard

The create-testcafe tool allows you to perform the following actions with a single command:

  1. Create a new folder for the TestCafe project (optional).
  2. Create a new local installation of TestCafe and its dependencies.
  3. Create and initialize a TestCafe configuration file.
  4. Create a separate subfolder for tests.
  5. Populate the test folder with test examples (optional).
  6. Create a YAML file with a GitLab Actions workflow that runs TestCafe tests (optional).

Read the TestCafe Setup Wizard guide for more information on the create-testcafe tool.

Experimental: ECMAScript module support

IMPORTANT:
ESM module suppport works with Node.js 16 and up.
TestCafe has always used CommonJS syntax for module imports:

const { x } = require('y');

An increasing number of Node.JS packages abandon CommonJS in favour of ECMAScript module syntax:

import {x} from 'y'

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.

testcafe chrome test.js --experimental-esm

Additional Reuqirements

To run tests with ECMAScript import statements, make sure that your project meets at least one of the following requirements:

  1. The value of the type key in your project's package.json file is module.
  2. The test files in your project use the .mjs extension.

Bug Fixes

  • TestCafe doesn't delete expired cookies (#7432).
  • TestCafe cannot handle windows that appear when the user clicks a link with a _blank target (#6926).
  • TestCafe fails to start because it triggers the dns.setDefaultResultOrder method in older Node.js environments (#7447).
  • TestCafe depends on a vulnerable, outdated version of the babel-plugin-module-resolver package (#7456).