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).