4.12.0
Released Released on August 2, 2020
Features:
Now you can control whether screenshots are automatically taken on test failure during
cypress runby settingscreenshotOnRunFailurein your configuration. Addresses #5029.The
pluginsFilenow has access to a readonlyversionproperty within theconfigobject that returns the current Cypress version being run. This will allow plugins to better target specific Cypress versions. Addresses #6352.During
cypress open, you can now run a subset of all specs by entering a text search filter and clicking 'Run n tests' Addresses #6581.
Bugfixes:
position: fixedelements that have a parent withpointer-events: nonewill now correctly evaluate as visible. Fixes #6675.Applications using custom elements will no longer trigger infinite XHR request loops. Fixes #1068.
When snapshotting the DOM, Cypress no longer causes
attributeChangedCallbackto be triggered on custom elements. Fixes #7187.Spec files containing
+characters now properly run in Cypress. Fixes #5909.When using the
fxshortcut incy.route(), an error is now thrown when the fixture file cannot be found. Fixes #7818.Cypress no longer thrown
Cannot read property '__error' of nullerror when passing a file containingnullcontent to cy.fixture(). Fixes #8010.Values containing exponential operators passed to
--envvia the command line are now properly read. Fixes #6891.The "Open in IDE" button no longer disappears from hooks when the tests are manually rerun. Fixes #8094.
When experimentalSourceRewriting is enabled, AST rewriting will no longer return an output before the body is done being written. This would happen when the response body was too large and the response would be sent while the body was still being modified. Fixes #8043.
When using .type(), Cypress now properly types into an input within an iframe that auto focuses the input. Fixes #8111.
Misc:
Dependencies for our
cypressnpm package are no longer pinned to a specific version. This allows the use ofnpm audit fixto fix security vulnerabilities without needing a patch release from Cypress. Addresses #8046.We now collect environment variables for AWS CodeBuild when recording to the Dashboard. Addressed #8101.
Types inside Module API are now accessible via the
CypressCommandLinenamespace. Addresses #7309.We added more type definitions for the .should() command. Addresses #5573.
Cookie command's
expiryproperty type is now a Number instead of a String. Addresses #8144.There are some minor visual improvements to the Test Runner's Command Log when hovering, focusing and clicking on hook titles and pending tests. Addressed in #8153.
Dependency Updates: