8.6.0
Released Released on October 10, 2021
Features:
cy.screenshot()now acceptsoverwrite: trueas an option to overwrite existing screenshots with the same file name. Addresses #7955.cy.select([])can now be used to clear any selected options in a multi-value select. Addresses #4318.Using
cy.pause()when usingcypress run --headed --no-exitwill now pause a test. Addresses #4044.
Bugfixes:
Fixed a regression introduced in 8.2.0 where certain XMLHttpRequests would not display their response bodies in the DevTools Console when clicked. Fixes #17656.
Fixed a regression in 8.3.0 where capturing videos in Chrome versions earlier than 89 would result in choppy videos and skipped frames. Fixes #18021.
Cypress displays the correct error when certain custom error types are thrown within a test. Fixes #18259.
The Cypress App will no longer crash when passed a
--spec: {}from the CLI and instead error when passed an invalid object argument. Fixes #3957.Logging a plain object no longer results in the error "Cannot convert object to primitive value". Fixes #18143.
Misc:
Updated the
cy.request()error message when conflictingfailOnStatusCodeandretryOnStatusCodeFailureoptions are passed to be clearer. Fixes #18271.
Dependency Updates: