TestCafe v1.17.0 Release Notes
Release Date: 2021-11-02 // over 2 years ago-
โจ Enhancements
โ Global Test and Fixture Hooks
๐ You can now specify global test and fixture hooks. TestCafe attaches these hooks to every test / fixture in the test suite.
module.exports = { hooks: { fixture: { before: async (ctx) => { // your code }, after: async (ctx) => { // your code } }, test: { before: async (t) => { // your code }, after: async (t) => { // your code } } } };
Execution Timeouts
๐ You can now specify custom timeouts for tests and test runs. If a test/test run is idle or unresponsive for the specified length of time, TestCafe terminates it. Specify these timeouts in the configuration file or from the command line.
๐ป Command line interface
testcafe chrome my-tests --test-execution-timeout 180000 testcafe chrome my-tests --run-execution-timeout 180000
๐ง Configuration file
{ "runExecutionTimeout": 180000, "testExecutionTimeout": 180000 }
๐ Bug Fixes
- โ TestCafe fails to continue the test after the user downloads a file. (#6242).
- โ The TestCafe proxy does not fire the "unpipe" event when necessary. This omission leads to the "This socket has been ended by the other party" error (#6558).
- โ TestCafe incorrectly handles rewritten uninitialized iframes (testcafe-hammerhead/#2694, testcafe-hammerhead/#2693).