Cypress v3.8.0 Release Notes

Release Date: 2019-12-12 // over 4 years ago
  • ๐Ÿš€ Released 12/12/2019

    ๐Ÿ”‹ Features:

    • ๐Ÿ’ป Chrome can now be run in headless mode by using cypress run --headless --browser chrome. Addresses #832.
    • Cypress now accepts a --tag argument to be used to identify separate runs. Any tags assigned will be shown on the run in the Cypress Dashboard. Addresses #2561.
    • ๐ŸŒฒ The commands .its() and .invoke() now accept an options object to allow changing logging options. Addresses #1450.
    • Cypress will now attempt to use the unzip binary during cypress install before trying the slower, Node.js-based unzipping method. Addresses #3803.
    • โฌ†๏ธ Upgraded Electron to 7.1.4. This bumps the internal Node version to 12.8.1 and the internal Chromium version to 78.0.3904.113.

    ๐Ÿ›  Bugfixes:

    • ๐Ÿ We fixed a regression in 3.5.0 where Cypress would crash on Windows when trying to pass a url through --config or --env command line flags. Fixes #5466.
    • ๐Ÿ’ป We fixed a regression in 3.5.0 where a supplied Cookie header during "cy.visit() visit or cy.request() would be overwritten by the Cookie header generated from the browser's cookie store. Fixes #5894.
    • ๐Ÿ›  We fixed a regression in 3.5.0 where cy.getCookie() would incorrectly filter cookies by their domain, leading to unexpected results. Fixes #5656.
    • ๐Ÿ›  We fixed a regression in 3.5.0 where calling .type({ force: true }) on hidden inputs would not type the correct characters. Fixes #5835.
    • ๐Ÿ›  We fixed a regression in 3.5.0 where .type() was not respecting previous selections if the current value of the input was the same as the key. This also fixed an where .type() would not respect previous selections in non-selectionRange inputs (like email or number inputs). Fixes #5703.
    • ๐Ÿ›  During visibility checks, Cypress now properly evaluates a DOM element transformed by scale(0) or rotateY(90deg) as not visible. Fixes #723.
    • ๐Ÿ›  Fixed a bug where the specs list in interactive mode would not refresh when files are changed on disk. Fixes #5933.
    • ๐Ÿ”ง env configuration option displays properly within the settings panel. Previously, setting env options would incorrectly render "undefined" as the value. Fixes #5859.

    Misc:

    • ๐Ÿšš We removed the max viewport size and lowered min viewport size to 0 for cy.viewport() Addresses #5871 and #5892.
    • โœ… The Test Runner now shows a non-Chrome logo for browsers passed in via config.browser that are not of the Chrome family. It also supports showing the Firefox logo (in preparation for Firefox browser support). Fixes #5745.
    • โšก๏ธ We updated the look of some of our icons. Addressed in #5822.
    • We're continuing to make progress in converting our codebase from CoffeeScript to JavaScript. Addresses #2690 in #5643.
    • cy.request will now automatically encode special characters in the request URL, including Unicode. Addresses #5274.
    • You can pass additional Electron launch command line arguments using environment variable ELECTRON_EXTRA_LAUNCH_ARGS. Addresses #5807.

    โšก๏ธ Dependency Updates:

    • โฌ†๏ธ Upgraded ansi-escapes from 4.2.1 to 4.3.0. Addressed in #5815.
    • โฌ†๏ธ Upgraded electron-context-menu from 0.11.0 to 0.15.1. Addressed in #5495.