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

Changelog History
Page 9

  • v1.8.0 Changes

    January 17, 2020

    v1.8.0 (2020-1-17)

    🍱 🌟 Support for the New Microsoft Edge

    πŸ“š TestCafe v1.8.0 supports the new Microsoft Edge based on Chromium. The new Edge is available under the same alias: edge.

    testcafe edge test.js
    
    await runner .src('test.js') .browsers('edge') .run();
    

    πŸ‘Œ Supported Edge's features include headless mode, mobile device emulation, and video recording.

    πŸ› Bug Fixes

  • v1.8.0-rc.3 Changes

    January 17, 2020

    What’s Changed

  • v1.8.0-rc.2 Changes

    January 17, 2020

    What’s Changed

  • v1.8.0-rc.1 Changes

    January 16, 2020

    What’s Changed

  • v1.7.1 Changes

    December 19, 2019

    v1.7.1 (2019-12-19)

    πŸ› Bug Fixes

    • βœ… Status bar has been redesigned to fit the debug panel into small screens and emulated mobile devices (#2510)
    • βž• Added timestamp to requests logged with RequestLogger (#3738)
    • βœ… t.typeText now fires the beforeInput event (#4486)
    • βœ… The t.hover action can now be detected with the jQuery :hover pseudoselector (#4493)
    • πŸ”€ Object.assign now merges Symbol properties on tested pages correctly (testcafe-hammerhead/#2189)
  • v1.7.1-rc.1 Changes

    December 18, 2019

    What’s Changed

  • v1.7.0 Changes

    November 21, 2019

    v1.7.0 (2019-11-21)

    ✨ Enhancements

    🍱 βš™οΈ Identify the Browser and Platform in Test Code (#481)

    βœ… TestCafe now allows you to obtain information about the current user agent. These data identify the operating system, platform type, browser, engine, etc.

    πŸ“š Use the t.browser property to access user agent data.

    import { Selector } from 'testcafe'; fixture `My fixture` .page `https://example.com`;test('My test', async t =\> { if (t.browser.name !== 'Chrome') await t.expect(Selector('div').withText('Browser not supported').visible).ok(); });
    

    πŸ“š The t.browser object exposes the following properties:

    Property Type Description Example
    πŸ“š alias String The browser alias string specified when tests were launched.
    πŸ“š name String The browser name.
    πŸ“š version String The browser version.
    πŸ“š platform String The platform type.
    πŸ“š headless Boolean true if the browser runs in headless mode.
    πŸ“š os Object The name and version of the operating system.
    πŸ“š engine Object The name and version of the browser engine.
    πŸ“š userAgent String The user agent string.
    πŸ“š prettyUserAgent String Formatted string with the browser's and operating system's name and version.

    πŸ“š The following example shows how to create a beforeEach hook that runs for specific browser engines.

    import { Selector } from 'testcafe'; fixture `My fixture` .page `https://example.com` .beforeEach(async t =\> { if (t.browser.engine.name === 'Blink') return; // ... });
    

    πŸ“š You can also use t.browser to generate the screenshot path based on the browser name. This prevents screenshots taken with t.takeElementScreenshot in different browsers from being overwritten.

    import { Selector } from 'testcafe'; fixture `My fixture` .page `https://example.com`;test('My test', async t =\> { const loginButton = Selector('div').withText('Login'); await t.takeElementScreenshot(loginButton, `auth/${t.browser.name}/login-button.png`); });
    

    πŸ“š For more information and examples, see Identify the Browser and Platform.

    πŸ› Bug Fixes

    • πŸ›  Fixed an error on pages that submit forms immediately after loading (#4360 by @bill-looby-i)
    • βœ… TestCafe now scrolls to elements located inside Shadow DOM roots (#4222)
    • πŸ›  Fixed an error that occurred when TypeScripts tests that use Node.js globals were run with TestCafe installed globally (#4437)
    • πŸ›  Fixed the TypeScript definition for the Selector.withAttribute method's return type (#4448)
    • πŸ›  Fixed an issue when custom browser providers could not take screenshots (#4477)
    • πŸ‘Œ Support pages that use advanced ES6 module export (testcafe-hammerhead/#2137)
    • πŸ›  Fixed compatibility issues with Salesforce Lightning Web Components (testcafe-hammerhead/#2152)
  • v1.7.0-rc.1

    November 20, 2019
  • v1.6.2-rc.1 Changes

    November 20, 2019

    What’s Changed

  • v1.6.1 Changes

    October 29, 2019

    v1.6.1 (2019-10-29)

    πŸ› Bug Fixes

    • πŸ›  Fixed a conflict with Jest type definitions that caused a TypeScript error (#4405)
    • βœ… TestCafe no longer deletes screenshots with no page content detected (#3552)
    • πŸ›  Fixed a bug when TestCafe did not use the default path to the test files (#4331)
    • πŸ›  Fixed a bug when the FFmpeg library could not be detected in the PATH locations (PR #4377)
    • βž• Added a TypeScript definition for runner.tsConfigPath (PR #4403)