9.7.0
Released Released on May 22, 2022
Features:
The Electron version and shipped Chromium browser version has been updated. Addressed in #21418.
Deprecations:
The
Cypress.Cookies.preserveOnce()andCypress.Cookies.defaults()Cypress APIs have been deprecated. In a future release, support forCypress.Cookies.preserveOnce()andCypress.Cookies.defaults()will be removed. Consider using the experimentalcy.session()command instead to cache and restore cookies and other sessions details between tests. Fixed #21333.
Bugfixes:
Updated the
cy.contains()command to correctly error and retry if the provided regex pattern begins with an equal sign and a match was not initially found. Previously the command would incorrectly fail with a syntax error. Fixed #21108.Corrected the
cy.session()command log grouping and validation verbiage. This change provides better insights to logs associated with the command. Fixed #21377.Removed
eventemitter2third-party type definitions fromcyandCypressthat were unintentionally exposed. Fixed #20556.
Dependency Updates:
Upgraded the bundled
nodeversion shipped with Cypress from16.5.0to16.13.2. Addressed in #21418.Upgraded the Chromium browser version used during
cypress runand when selecting Electron browser incypress openfrom94.0.4606.81to100.0.4896.75. Addressed in #21418.Upgraded
electrondependency from15.5.1to18.0.4. Addressed in #21418.