3.7.0
Released Released on November 26, 2019
Features:
Cypress now includes the full list of browsers found and their properties within the Cypress configuration. This means that the
browsersarray is also editable within plugins by accessingconfig.browsersvia the Configuration API. The currently available browsers are also displayed within the configuration panel under Settings in the Test Runner. Addresses #5067.Environment variables within GitHub Actions are now detected and passed to the Dashboard in order to display the proper git information for recorded runs. Addresses #5609.
.its() and .invoke() now support a Number for its
propertyNameandfunctionNamearguments respectively. Addresses #5754.
Bugfixes:
We fixed a regression in 3.5.0 where a cy.visit() that changes superdomain would incorrectly clear cookies of other domains. Fixes #5756.
We fixed a regression in 3.5.0 where cookies set in a redirect on a cy.visit() or in a
cy.requestwith a customDomainthat is not a subdomain of the current domain would fail to set. Fixes #5656.We fixed a regression in 3.5.0 which caused .type() to send duplicate modifier keys. Fixes #5622.
We fixed a regression in 3.6.1 where cy.request() with
followRedirect: falsewould fail if aSet-Cookieheader was present in the response. Fixes #5654.The context of
windowis no longerundefinedwithin the application under test when called within asetTimeoutduring strict mode. Fixes #5707.Cypress now captures the SHA of builds generated through Travis CI during pull requests. This should resolve issues with Cypress status checks sometimes not running within GitHub Integration. Fixes #5728.
Cypress now automatically strips double quotes from --ci-build-id and group flag arguments during
cypress run. Fixes #5686.Assertions printed in the Command Log now correctly identify integers from string integers. Fixes #25.
Empty spaces are now accurately reflected in the Command Log within assertions. Fixes #1360.
Keys printed in the Command Log when using the
have.all.keysassertion now correctly display. Fixes #753.We fixed an issue where Cypress would throw an error when using cy.visit() on a
cleverapp.iodomain. Fixes #5722.Fixed a bug where fixtures consisting only of
nullwould cause an error. Fixes #472.Fixed a bug where, if the Test Runner child process is killed with a signal and does not exit normally, the npm CLI process would not exit with an error. Fixes #5808.
Misc:
Added a new, more specific error message when an item is not visible because it has
position: fixedand is being overflowed over. Addresses #1379.cy.visits that cause a superdomain change will now result in 2 requests to the origin server. This should not affect tests, as tests will still re-run on a superdomain change. This is a side-effect of the fix for #5756.The configuration object returned from the plugins file is now validated and will throw a helpful error message when invalid. Addresses #5712.
The configuration panel under Settings in the Test Runner now has a white background for better readability. Also each configuration option with nested properties is now collapsible. Addressed in #5068.
Documentation Changes:
Updated the its() and invoke() doc to allow for arguments of type Number for their first argument.
Documented how to pass in a custom list of browsers using
config.browsers.
Dependency Updates:
Upgraded
parse-domainfrom2.0.0to2.3.4. Addressed in #5726.