All Versions
167
Latest Version
Avg Release Cycle
24 days
Latest Release
538 days ago

Changelog History
Page 10

  • v1.6.1-alpha.3 Changes

    October 31, 2019

    What’s Changed

  • v1.6.1-alpha.2

    October 28, 2019
  • v1.6.1-alpha.1

    October 28, 2019
  • v1.6.0 Changes

    October 16, 2019

    v1.6.0 (2019-10-16)

    🍎 🌟 Support for macOS 10.15 Catalina

    ⚑️ This version provides compatibility with macOS 10.15. Update TestCafe to v1.6.0 if you run macOS Catalina.

    ✨ Enhancements

    🍱 βš™οΈ Full-Page Screenshots (#1520)

    βœ… TestCafe can now take screenshots that show the full page, including content that is not visible due to overflow.

    πŸ”§ Enable the fullPage option in CLI, API or configuration file to capture the full page on all screenshots. You can also pass this option to t.takeScreenshot to capture a single full-page screenshot.

    πŸ’» Command line interface

    πŸ“š Enable the fullPage parameter of the -s (--screenshots) flag:

    testcafe chrome test.js -s fullPage=true
    

    API

    πŸ“š Pass the fullPage option to runner.screenshots:

    runner.screenshots({ fullPage: true});
    

    πŸ”§ Configuration file

    πŸ“š Set the screenshots.fullPage property:

    { "screenshots": { "fullPage": true } }
    

    βœ… Test code

    πŸ“š Pass the fullPage option to the t.takeScreenshot action:

    t.takeScreenshot({ fullPage: true});
    

    🍱 βš™οΈ Compound Screenshot Options

    ⚑️ The command line interface and configuration file schema have been updated to provide a more concise way to specify the screenshot options.

    TestCafe v1.6.0 also supports the existing options to maintain backward compatibility. However, these options are now marked obsolete in the documentation. In the future updates, we will deprecate them and emit warnings.

    πŸ’» Command line interface

    πŸ“š Screenshot options in CLI are now consolidated under the -s (--screenshots) flag in an option=value string:

    testcafe chrome test.js -s takeOnFails=true,pathPattern=${DATE}\_${TIME}/${FILE\_INDEX}.png
    
    Old Usage New Usage
    -s artifacts/screenshots -s path=artifacts/screenshots
    -S, --screenshots-on-fails -s takeOnFails=true
    -p ${DATE}_${TIME}/${FILE_INDEX}.png -s pathPattern=${DATE}_${TIME}/${FILE_INDEX}.png

    πŸ”§ Configuration file

    πŸ“š Configuration file properties that specify screenshot options are now combined in the screenshots object:

    { "screenshots": { "path": "artifacts/screenshots", "takeOnFails": true, "pathPattern": "${DATE}\_${TIME}/${FILE\_INDEX}.png" } }
    
    Old Property New Property
    screenshotPath screenshots.path
    takeScreenshotsOnFails screenshots.takeOnFails
    screenshotPathPattern screenshots.pathPattern

    🍱 βš™οΈ Default Screenshot Directory

    βœ… TestCafe now saves the screenshots to ./screenshots if the base directory is not specified.

    πŸ“š The --screenshots CLI flag, the runner.screenshots method or the screenshotPath configuration option are not required to take screenshots. For instance, you can run TestCafe with no additional parameters and use the t.takeScreenshot action in test code:

    testcafe chrome test.js
    

    βœ… test.js

    fixture `My fixture` .page `https://example.com`;test('Take a screenshot', async t =\> { await t.takeScreenshot(); });
    

    πŸ“š The path argument in runner.screenshots is now optional.

    runner.screenshots({ takeOnFails: true});
    

    🍱 βš™οΈ New Option to Disable Screenshots

    πŸ“š We have added an option that allows you to disable taking screenshots. If this option is specified, TestCafe does not take screenshots when a test fails and when the t.takeScreenshot or t.takeElementScreenshot action is executed.

    πŸ”§ You can disable screenshots with a command line, API or configuration file option:

    πŸ“š the --disable-screenshots command line flag

    testcafe chrome my-tests --disable-screenshots
    

    πŸ“š the disableScreenshots option in the runner.run method

    runner.run({ disableScreenshots: true });
    

    πŸ“š the disableScreenshots configuration file property

    { "disableScreenshots": true}
    

    πŸ› Bug Fixes

    • πŸ›  Fixed an error thrown when you pass the -b command line flag (#4294)
    • βœ… TestCafe no longer hangs when Firefox downloads a file (#2741)
    • βœ… You can now start tests from TypeScript code executed with ts-node (#4276)
    • πŸ›  Fixed TypeScript definitions for client script injection API (PR #4272)
    • πŸ›  Fixed TypeScript definitions for disablePageCaching (PR #4274)
    • πŸ›  Fixed a bug when anchor links did not navigate to their target destinations (testcafe-hammerhead/#2080)
  • v1.6.0-rc.1

    October 15, 2019
  • v1.6.0-alpha.1

    October 14, 2019
  • v1.5.1-alpha.1

    September 18, 2019
  • v1.5.0 Changes

    September 12, 2019

    v1.5.0 (2019-9-12)

    ✨ Enhancements

    🍱 βš™οΈ Page Caching Can be Disabled (#3780)

    πŸ“š TestCafe may be unable to log in to the tested website correctly if the web server uses caching for authentication pages or pages to which users are redirected after login. See the User Roles topic for details.

    βœ… If tests fail unexpectedly after authentication, disable page caching in TestCafe.

    πŸ“š Use the fixture.disablePageCaching and test.disablePageCaching methods to disable caching during a particular fixture or test.

    fixture .disablePageCaching `My fixture` .page `https://example.com`;
    
    test .disablePageCaching ('My test', async t =\> { /\* ... \*/ });
    

    βœ… To disable page caching during the entire test run, use either of the following options:

    πŸ“š the --disable-page-caching command line flag

    testcafe chrome my-tests --disable-page-caching
    

    πŸ“š the disablePageCaching option in the runner.run method

    runner.run({ disablePageCaching: true });
    

    πŸ“š the disablePageCaching configuration file property

    { "disablePageCaching": true}
    

    βœ… If tests run correctly without page caching, we recommend that you adjust the server settings to disable caching for authentication pages and pages to which the server redirects from them.

    πŸ› Bug Fixes

    • πŸ›  Fixed an error that occured when a selector matched an <svg> element (#3684)
    • πŸ›  Fixed an issue when the reporter configuration file option was not applied (#4234)
    • πŸ›  Fixed a warning message about invalid tsconfig.json file (#4154)
    • βœ… LiveRunner.stop() now closes the browsers (#4107)
    • βœ… Quarantined tests now re-run correctly in live mode (#4093)
    • πŸ›  Fixed a bug when client scripts were not injected in live mode when it re-executed tests (#4183)
    • βœ… form.elements.length now returns the correct value for forms with file inputs (testcafe-hammerhead/#2034)
    • πŸ›  Fixed a bug when images were not displayed in inputs with the image type (testcafe-hammerhead/#2116)
    • πŸ›  Fixed an AngularJS compatibility issue that caused a TypeError (testcafe-hammerhead/#2099)
    • βœ… TestCafe now works correctly with servers that use JSZip to unpack uploaded files (testcafe-hammerhead/#2115)
  • v1.5.0-rc.2 Changes

    September 12, 2019

    What’s Changed

  • v1.5.0-rc.1 Changes

    September 11, 2019

    What’s Changed