Cypress v5.6.0 Release Notes

Release Date: 2020-11-09 // over 3 years ago
  • ๐Ÿš€ Released 11/09/2020

    ๐Ÿ”‹ Features:

    • ๐Ÿ‘€ You can now dynamically add aliases for requests intercepted via cy.route2(). See an example. Addresses #387.
    • โœ… You can now run all integration specs or all component specs separately (or a filtered list of specs) by clicking the appropriate button in the Test Runner in the Tests tab. Addresses #8203.
    • โž• Added a new modifier syntax to cy.type(). You can now type shortcuts like {ctrl+z}. Addressed in #5694.
    • ๐Ÿš€ We now show a modal with release notes when available when there is a new version of Cypress. Addressed in #9006.
    • In the Test Runner's Settings and Runs tab you can now quickly copy the project id configuration and record key using a copy to clipboard icon. Addresses #9002.

    ๐Ÿ›  Bugfixes:

    • ๐Ÿ›  Fixed a regression introduced in 4.12.0 where snapshotting caused images to load too many times. Fixes #8679.
    • ๐Ÿ›  Using cy.visit() on sites with content-type of text-html followed by parameters (like text/html;charset=utf-8) will no longer throw an error about visiting a site with an invalid content-type. Fixes #8506
    • ๐Ÿ›  The Cannot access 'continueSent' before initialization error will no longer throw when using cy.route2(). Fixes #8926.
    • Awaiting a request body when providing a static response stub in cy.route2() should now work properly. Addressed in #9059.
    • ๐ŸŒฒ The way that intercepted cy.route2() requests are displayed in the Command Log has been improved, including showing the progress bar correctly. Addresses #9053.
    • ๐Ÿ›  The Cannot read property 'replace' of undefined error will no longer throw when attempting to generate the stack trace from an error thrown in the application. Fixes #7915.
    • ๐Ÿ›  Stack traces in the Command Log originating from application errors where the location is unavailable will no longer show as a clickable link to open in IDE. Fixes #9106.
    • ๐Ÿ›  When using the fixture: prefix as a stubbed response to cy.route(), JSON fixtures containing only a number or boolean will no longer throw an error. Fixes #4899.
    • ๐Ÿ›  Fixed an issue causing failed subresource integrity checks for external scripts. Fixes #8983, #9049, and #8992.

    Misc:

    • โฑ Typings for .invoke() and .its() now allow for a timeout option. Addresses #9079.
    • Typings for cy.task() now allow for parameterizing the task return type. Addresses #7136.
    • ๐Ÿ–จ A clearer error is printed during cypress cache list when no cached versions are found. Addresses #6303.

    โšก๏ธ Dependency Updates:

    • โฌ†๏ธ Upgraded commander from ^4.1.1 to ^5.1.0. Addressed in #8979.
    • โฌ†๏ธ Upgraded semver from 6.3.0 to 7.3.2. Addressed in #9068.
    • โฌ†๏ธ Upgraded systeminformation from 4.26.9 to 4.27.11. Addressed in #8979.
    • โœ‚ Removed node-webkit-updater. This should remove some security warnings that were shown during install. Addresses #8314.