Cypress v4.8.0 Release Notes

Release Date: 2020-06-08 // almost 4 years ago
  • ๐Ÿš€ Released 6/8/2020

    ๐Ÿ”‹ Features:

    ๐Ÿ›  Bugfixes:

    • ๐Ÿ›  Upon domain navigation, before and after hooks defined in completed suites no longer erroneously rerun. Fixes #1987.
    • โœ… Errors thrown within root level after hooks now correctly display in the Test Runner's Command Log. Fixes #2296.
    • ๐Ÿ›  We fixed a regression in 4.6.0 where an XHR response without a body would cause Cypress to throw Cannot read property '__error' of null. Fixes #7518.
    • ๐Ÿ›  We fixed a regression in 4.6.0 where using cy.visit() to an authenticated URL would error with Request cannot be constructed from a URL that includes credentials: /__cypress/runner/./wasm/mappings.wasm Fixes #7481.
    • ๐Ÿ”Œ We now properly load code from the pluginsFile or supportFile when they are TypeScript files. Fixes #7459.
    • ๐Ÿ›  utf-8 characters now properly display within error code frames. Fixes #7507.
    • ๐Ÿ›  Errors thrown in a cy.on('fail', fn) fail handler now display a stack trace and code frame pointing to the origin of the error. Fixes #7512.
    • ๐Ÿ›  .click() now properly clicks on wrapped inline elements when the first child element in the parent element has no width or height. Fixes #7434 and #7012.
    • ๐Ÿ›  cy.wrap() now properly respects the timeout option. It also better handles situations when passed a promise that never resolves. Fixes #5980.
    • โœ… When experimentalComponentTesting is enabled, Cypress will no longer exit with SIGABRT in certain situations. Fixes #7572.
    • โœ… We fixed a regression in 3.8.0 where the "Tests" button in the Test Runner wouldn't take you back to the tests list in all browsers. Fixes #5948.
    • โœ… Using the S shortcut during .pause() no longer does anything. This prevents the Test Runner from getting into a 'stuck' state. Fixes #6867.

    Misc:

    • โšก๏ธ The design of errors and some iconography displayed in the Test Runner's Command Log have been updated. Addresses #7499, #7542 and #7563.
    • โœ… The commands in the Test Runner's Command Log now display in the same casing as the original command. Addresses #5773.
    • ๐Ÿ’… The navigation links in the Test Runner now display the correct CSS styles when focused. Addresses #7491.
    • Cypress.config() now has TypeScript types for the taskTimeout option. Addresses #7531.
    • โšก๏ธ TypeScript types for cy.screenshot() options and Cypress.log() have been updated to be more accurate. Addresses #7445.
    • TypeScript types for Cypress.automation have been added. Addresses #7519.
    • ๐Ÿ’ป We now display a more accurate error message when passing a browser to the --browser flag that is not supported by Cypress. Addresses #6979.
    • We're continuing to make progress in converting our codebase from CoffeeScript to JavaScript. Addresses #2690 in #7588 and #7591.

    โšก๏ธ Dependency Updates:

    • โฌ†๏ธ Upgraded chrome-remote-interface from 0.28.1 to 0.28.2. Addressed in #7615.
    • โฌ†๏ธ Upgraded electron from 8.3.0 to 8.3.1. Addressed in #7599.