3.6.1

Released Released on November 7, 2019

Bugfixes:

  • The Electron browser no longer hangs when testing applications that have a prompt in a beforeunload handler. Fixes #2118.

  • We fixed a regression in 3.5.0 where HTTP redirects could cause strange behavior, including cookies not being set as expected, leading to authentication issues and other problems. Fixes #5436 and #5432.

  • When using cy.setCookie() with the same options Object, Cypress now correctly sets the new cookie instead of the one passed into a previous cy.setCookie(). Fixes #2701.

  • We fixed a regression in 3.5.0 where cy.clearCookie() would not act as expected when using certain baseUrls. Fixes #5453.

  • Cypress no longer crashes with the error Failed to parse or set cookie named "xxx" when loading certain websites. Fixes #4990.

  • Cypress now sends the expected headers or request body in a cy.visit() to an HTTPS URL using the default port, 443. Fixes #5367.

  • We fixed a regression in 3.6.0 where Cypress would crash with TypeError: Cannot read property 'length' of null on some network requests. Fixes #5585.

  • We fixed a regression in 3.5.0 that caused the red target to be rendered incorrectly when specifying offset coordinates to .click(). Fixes #5635.

  • We fixed a regression in 3.6.0 that was causing an incorrect element to receive the click event during action commands. Fixes #5578.

  • We fixed a regression in 3.5.0 causing text after using modifier keys in .type() to not be typed. Fixes #5622.

  • Elements with backface-visibility: hidden; are now accounted for when asserting on the elemtent's visibility. Fixes #2985.

  • We fixed a bug where a failed Cypress commands would incorrectly throw cannot read property 'replace' of undefined if the error's stack was undefined. Fixes #1669.

  • The 'Log In' modal within Cypress when setting up a project now correctly closes when manually closed. Fixes #5631.

Misc:

  • We improved the user experience around inspecting events fired during .click() and .type() commands within the console. Addresses #5553.

  • We increased the timeout when connecting to the "Developer Tools Protocol" from 5 seconds to 20 seconds and also added logging for when the connection takes longer than 5 seconds. Addresses #5610.

  • There is no longer a warning about Promise.defer appearing in stderr when running with video recording enabled. Addresses #5611.

  • Types for .rightclick() and .dblclick() have been updated to correctly reflect their accepted options. Addresses #5617.

  • We're continuing to make progress in converting our codebase from CoffeeScript to JavaScript. Addresses #2690 in #5556