9.6.0
Released Released on April 24, 2022
Features:
Now you can easily test multi-domain workflows by using the experimental
cy.origin()command. This feature allows you to test across different origins or domains within a single test. This experiment was designed to work side-by-side with thecy.session()experimental feature. You can turn on use of this command by setting theexperimentalSessionAndOriginconfiguration option totrue. For more details, read our blog post. Addressed #17336 and #944.Added a new configuration option called
experimentalSessionAndOrigin. This option enables support forcy.session()andcy.origin()for end-to-end testing.The
experimentalSessionSupportconfiguration option has been removed and replaced by theexperimentalSessionAndOriginconfiguration option. Please update your configuration to use the newexperimentalSessionAndOriginoption to continue to opt-in to this experimental feature.When
experimentalSessionAndOriginis enabled, cross-origin requests will no longer immediately fail, but instead, time out based on thepageLoadTimeoutconfiguration. This allows the request to be appropriately handled by thecy.origin()command.When
experimentalSessionAndOriginis enabled, Cypress will no longer wait on page loads between hooks before moving on to the next test.
Bugfixes:
Fixed an issue with Firefox 98+ where the Enter keystroke was not being sent to an input element when using
.type('{enter}'). Fixed #21033.We now verify if an interruption while running tests was signaled by the user or if it came from an error in a plugin before showing the error message. Fixed #21010.
Improved the error message observed on Windows platforms when unzipping the Cypress binary and the max file length is exceeded. Fixed in #21047.
Updated the
Cypress.Commands.add()TypeScript types to better reflect the attributes of the.add()utility and the JQuery element, a possible previous subject type. #20376.
Dependency Updates:
Upgraded
electrondependency from15.3.5to15.5.1to consume fixes related to improve performance on macOS Big Sur and later. Addressed #21068.