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:
- ๐ the --config-file CLI flag
- ๐ the configFile parameter of the createTestCafe function
โ 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 aradio
element (#5916) - ๐ Fixed a bug where TestCafe was unable to register a Service Worker due to the wrong
currentScope
calculation inside aWindow.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)