New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

testcafe

Package Overview
Dependencies
Maintainers
7
Versions
466
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

testcafe - npm Package Versions

1
35
47

3.1.0-rc.1

Diff
kirovboris
published 3.1.0-rc.1 •
kirovboris
published 3.0.1 •

Changelog

Source

v3.0.1 (2023-06-29)

Bug fixes

  • The TestCafe status bar overlaps page elements, which leads to test execution issues (#7797)
  • TestCafe outputs an unhelpful warning message when it cannot apply the artifact path template (#7256)
  • A bug in the testcafe-browser-tools package causes TestCafe tests to hang on Ubuntu (#7752)
kirovboris
published 3.0.1-rc.1 •
kirovboris
published 3.0.0 •

Changelog

Source

v3.0.0 (2023-06-21)

This major update includes two breaking changes:

  • TestCafe v3.0.0 uses native CDP automation to run tests in Chromium-based browsers.
  • TestCafe v3.0.0 removes support for Internet Explorer.

Other changes include:

  • You can now access test and fixture data in hooks.
  • You can now dismiss the print dialog with the native dialog handler.

Native automation

TestCafe v2.5.0 introduced an experimental mode that allows users to automate Chromium-based browsers, such as Google Chrome and Microsoft Edge, with the native CDP protocol. TestCafe v3.0.0 and up enables this capability out of the box.

Native automation increases test quality, stability, and speed.

Access Test and Fixture data in hooks

You can now access the following data in fixture hooks (fixture.before, fixture.after) :

  • Fixture name
  • Fixture metadata
  • Fixture path

Test hooks (fixture.beforeEach, fixture.afterEach, test.before, test.after) can access fixture data and the following test data:

  • Test name
  • Test metadata
fixture `Example Fixture`
    .page `http://example.com`
    .meta({ fixtureMeta: 'v' })
    .before( async (ctx, info) => {
        const fixtureName = info.name; /* Example Fixture */
        const fixtureMeta = info.meta; /* { fixtureMeta: 'v' } */
        const fixturePath = info.path /* /Users/dan/testcafe/fixture.js */
    });
    .beforeEach( async t => {
        const fixtureName = t.fixture.name; /* Example Fixture */
        const fixtureMeta = t.fixture.meta; /* { fixtureMeta: 'v' } */
        const fixturePath = t.fixture.path /* /Users/dan/testcafe/fixture.js */
        const testName = t.test.name; /* MyTest */
        const testMeta = t.test.meta; /* { 'key': 'value' } */
})

Read the Hooks guide for more information.

Dismiss the print dialog

You can now use the t.setNativeDialogHandler method to dismiss the print dialog.

Removed: Internet Explorer support

TestCafe v3.0.0 removes support for Internet Explorer 11, six months after the browser's official retirement. The browser came out more than 9 years ago, and has a worldwide market of less than 0.5%. It is survived by Edge, a popular Chromium-based browser that ships with modern versions of Windows.

Bug fixes

  • Some client functions yield a fatal error when the test navigates to a new page or removes an iframe (#7707).
  • TestCafe fails to correctly modify certain request headers when it uses native automation (#7748).
  • A bug in the CDP protocol causes TestCafe to incorrectly process request hooks (#7743).
  • TestCafe outputs a vague error message if the framework fails to read or process the configuration file (#7208, #6437).
  • TestCafe cannot select content with the "Ctrl+A" shortcut when the framework uses native automation (#7667).
  • The Monaco editor does not display code completion hints when TestCafe automates it with CDP #7770.
kirovboris
published 3.0.0-rc.2 •
kirovboris
published 3.0.0-rc.1 •
kirovboris
published 2.6.2 •

Changelog

Source

v2.6.2 (2023-06-01)

TestCafe v2.6.2 introduces a number of bug fixes.

Bug fixes

  • Internet Explorer 11 hangs because it cannot process client-side scripts that ship with TestCafe v2.6.1 (#7741).
  • The pressKey('space') action doesn't affect checkbox status in Firefox (#6969).
kirovboris
published 2.6.2-rc.1 •
kirovboris
published 2.6.1 •

Changelog

Source

v2.6.1 (2023-05-29)

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

  • When TestCafe runs in Native Automation mode, Request Hooks yield an error (#7683).
  • When TestCafe runs in Native Automation mode, the framework incorrectly processes pages with the pound sign ("#") in the URL (#7652).
  • TestCafe incorrectly handles XHR headers in Native Automation mode (#7664, #7686, #7645).
  • TestCafe reports an incorrect browser alias when it runs tests in Microsoft Edge (#7647).
  • TestCafe fails to intercept all HTTP requests when it runs in Native Automation mode. (#7640).
  • TestCafe cannot resize browser windows in the latest version of Chrome for macOS (#7684).
  • TestCafe incorrectly processes client-side styles, causing slowdowns and errors (#6726, #6747).
  • TestCafe crashes when you use the TestCafe Test Runner API to launch multiple tests simultaneously (#7711).
kirovboris
published 2.6.1-rc.1 •