3.8.0
Released Released on December 11, 2019
Features:
Chrome can now be run in headless mode by using
cypress run --headless --browser chrome. Addresses #832.Cypress now accepts a --tag argument to be used to identify separate runs. Any tags assigned will be shown on the run in the Cypress Dashboard. Addresses #2561.
The commands .its() and .invoke() now accept an
optionsobject to allow changing logging options. Addresses #1450.Cypress will now attempt to use the
unzipbinary duringcypress installbefore trying the slower, Node.js-based unzipping method. Addresses #3803.
Bugfixes:
We fixed a regression in 3.5.0 where Cypress would crash on Windows when trying to pass a url through
--configor--envcommand line flags. Fixes #5466.We fixed a regression in 3.5.0 where a supplied
Cookieheader during cy.visit() or cy.request() would be overwritten by theCookieheader generated from the browser's cookie store. Fixes #5894.We fixed a regression in 3.5.0 where cy.getCookie() would incorrectly filter cookies by their domain, leading to unexpected results. Fixes #5656.
We fixed a regression in 3.5.0 where calling
.type({ force: true })on hidden inputs would not type the correct characters. Fixes #5835.We fixed a regression in 3.5.0 where .type() was not respecting previous selections if the current value of the input was the same as the key. This also fixed an where .type() would not respect previous selections in non-selectionRange inputs (like email or number inputs). Fixes #5703.
During visibility checks, Cypress now properly evaluates a DOM element transformed by
scale(0)orrotateY(90deg)as not visible. Fixes #723.Fixed a bug where the specs list during
cypress openwould not refresh when files are changed on disk. Fixes #5933.envconfiguration option displays properly within the settings panel. Previously, setting env options would incorrectly render"undefined"as the value. Fixes #5859.
Misc:
We removed the max viewport size and lowered min viewport size to
0for cy.viewport() Addresses #5871 and #5892.The Test Runner now shows a non-Chrome logo for browsers passed in via
config.browserthat are not of the Chrome family. It also supports showing the Firefox logo (in preparation for Firefox browser support). Fixes #5745.We updated the look of some of our icons. Addressed in #5822.
We're continuing to make progress in converting our codebase from CoffeeScript to JavaScript. Addresses #2690 in #5643.
cy.requestwill now automatically encode special characters in the request URL, including Unicode. Addresses #5274.You can pass additional Electron launch command line arguments using environment variable
ELECTRON_EXTRA_LAUNCH_ARGS. Addresses #5807.
Dependency Updates: