TestCafe v1.13.0 Release Notes

Release Date: 2021-03-22 // about 3 years ago
  • ๐Ÿ›  This release adds support for custom paths to the configuration file, support for Microsoft Edge on Linux systems, and multiple bugfixes.

    โœจ Enhancements

    ๐Ÿ”ง :gear: Specify Custom Path to the TestCafe Configuration File (PR #6035 by @Chris-Greaves)

    ๐Ÿ“š TestCafe now allows you to specify a custom configuration file path.

    To set this path, use one of the following options:

    โž• Add Support for Microsoft Edge on Linux (PR testcafe-browser-tools/#210 by @dcsaszar)

    ๐Ÿง If you follow the Microsoft Edge Insider Channels for Linux and have Microsoft Edge installed on your Linux machine, you can now launch TestCafe tests in this browser.

    testcafe edge tests/test.js
    

    โœ… :gear: Deprecated the t.setPageLoadTimeout method (PR #5979)

    ๐Ÿ“š Starting with v1.13.0, the t.setPageLoadTimeout method is deprecated. To set the page load timeout, use the new test.timeouts method.

    fixture`Setting Timeouts`
        .page`http://devexpress.github.io/testcafe/example`;
    
    test
        .timeouts({
            pageLoadTimeout: 2000
        })
        ('My test', async t => {
            //test actions
        })
    

    ๐Ÿ“š You can also use test.timeouts to set the pageRequestTimeout and ajaxRequestTimeout.

    fixture`Setting Timeouts`
        .page`http://devexpress.github.io/testcafe/example`;
    
    test
        .timeouts({
            pageLoadTimeout:    2000,
            pageRequestTimeout: 60000,
            ajaxRequestTimeout: 60000
        })
        ('My test', async t => {
            //test actions
        })
    

    ๐Ÿ› Bug Fixes

    • ๐Ÿ›  Fixed a bug where TestCafe would sometimes be unable to trigger a hover event on a radio element (#5916)
    • ๐Ÿ›  Fixed a bug where TestCafe was unable to register a Service Worker due to the wrong currentScope calculation inside a Window.postMessage call (testcafe-hammerhead/#2524)
    • โœ… RequestLogger now shows a correct protocol for WebSocket requests (testcafe-hammerhead/#2591)
    • โœ… Test execution now pauses when the browser window is in the background (testcafe-browser-tools/#158)
    • โœ… TestCafe now appends an extension to screenshot filenames (#5103)
    • ๐Ÿ›  Fixed a bug where TestCafe would emit test action events after the end of a test run (#5650)
    • โœ… TestCafe now closes if the No tests to run error occurs in Live mode (#4257)
    • ๐Ÿ›  Fixed a freeze that happened when you run a test suite with skipped tests (#4967)
    • ๐Ÿ›  Fixed an error where a documentElement.transform.translate call moved the TestCafe UI in the browser window (#5606)
    • โœ… TestCafe now emits a warning if you pass an unawaited selector to an assertion (#5554)
    • ๐Ÿ›  Fixed a crash that sometimes occurred in Chrome v85 and earlier on pages with scripts (PR testcafe-hammerhead/#2590)