10.9.0
Released Released on September 26, 2022
Features:
Added support for requiring dependencies within the
cy.origin()callback. See thecy.origin()docs for more information.Added support for visiting cross-origin pages outside of a
cy.origin()callback. See thecy.origin()andcy.visit()docs for more information and caveats. Addresses #21485, #22282, #21300, and #23236.Added support for re-using session data cached by
cy.session()across specs via thecacheAcrossSpecsoption. Addresses #17710.Added support for advanced dev server configuration via an async function that can optionally modify the dev server config. Addresses #23302.
Launch options returned from the
before:browser:launchevent can now include anenvkey that can be used to pass environment variables to the browser when it is launched. Addressed by #23624.Component tests that fail now display a code frame of the source location of the error within the Cypress reporter. Addresses #21720.
Bugfixes:
The spec results printed stdout after a test run now show the path to the spec and not just the file name. Fixes #22304.
The viewport dropdown in the Cypress App now displays the correct text. Fixes #23789.
Compile errors are now surfaced in the command log during tests for Angular and Next projects. Fixes #23219.
The error "Automatic publicPath is not supported in this browser" will no longer be displayed when using Webpack 5 and dynamic imports. Fixes #18435.
The correct source control link is now sent to the Cypress Dashboard for failed specs when the cypress config file is not the project root. Fixes #22971.
The error "Invalid left-hand-side in assignment" will no longer be thrown when the
experimentalModifyObstructiveThirdPartyCodeflag is enabled. Fixes #23647.it.skipnow functions correctly in Angular component tests. Fixes #23409.The
tsConfigbuild option is now respected for Angular component tests. Fixes #23673.Configuring a custom browser no longer logs a warning when trying to use that browser. Addressed in #23446.
Misc: