4.1.0
Released Released on February 27, 2020
Features:
There is a new
cypress infocommand to see the locally detected browsers and other information related to Cypress. Addresses #4540.You can now click a 'Try Again' button to recheck if the server at the designated
baseUrlis running within the warning message duringcypress open. Addresses #3284.There are "collapse all" and "expand all" links in the Test Runner's "Tests" tab to collapse or expand all folders within the "Integration Tests". Addresses #6282.
The plugins file function's config argument now includes
projectRoot(absolute path to the root of the project) andconfigFile(absolute path to the configuration file). Addresses #5941.
Bugfixes:
Fixed a regression in 4.0.2 where Cypress could throw a "Maximum call stack size exceeded" error when transmitting a circular object over the internal WebSocket. Fixes #6582.
We fixed an issue where using Chromium-family browsers could cause Cypress to throw a "WebSocket is not open: readyState 3" error under certain conditions. Fixes #5685.
We now more thoroughly ensure the parent of an element exists when recursively calling visibility and existence checks in order to prevent some maximum call stack errors. Fixes #4373.
We fixed an issue where a maximum call stack error would throw in some circumstances when
xhr.onreadystatechangeis accessed. Fixes #5864.We fixed a regression in 3.5.0 where typing into an iframe with a body element with the contenteditable attribute would throw an error. Fixes #5930.
We now set the default window size when running Chrome headlessly to 1280x720. Fixes #6210.
We fixed an issue where
cypress installwould not complete on Node.js8.0.0. Fixes #6512 and #6568.cy.clearLocalStorage() now properly accepts the
logoption to disable logging. Fixes #6342.
Misc:
The error messages displayed when rerouting to a non same-origin domain has been updated to more accurately reflect the rules around same-origin policy. Addresses #6048.
We fixed an error message that would display the wrong available browser families during validation. Addressed in #6517.
We fixed some typos in some of our error messages. Addressed in #6508.
We're collecting more environment variables when running Cypress with GitLab CI. Addresses #6231.
The typing of
cy.$$has been updated to distinguish differences between it andCypress.$. More info here Addresses #2027.We're continuing to make progress in converting our codebase from CoffeeScript to JavaScript. Addresses #2690 in #6552, #6523, and #6545.
Dependency Updates
Upgraded
electronfrom7.1.10to7.1.13. Addressed in #6566.