Released MM/DD/YYYY
Breaking Changes:
experimentalSessionAndOrigin
flag has been removed and all functionality is on by default now.- The new concept of
testIsolation
has been introduced and it defaults toon
. - Cypress now throws an error if commands are invoked from inside a
.should()
callback. This previously resulted in unusual and undefined behavior; it is now explicitly an error. - The
.within()
command now throws an error if given more than one DOM element as a subject. This is done for consistency - in older versions, some commands inside a.within()
block would respect all passed in elements, while others silently discarded subjects beyond the first, and.screenshot()
would throw an error. Cookies.defaults
andCookies.preserveOnce
have been removed. Please update to usecy.session()
to preserve session details between tests. Addresses #21472.- The
cy.server()
andcy.route()
commands and theCypress.Server.defaults
API has been removed. Use [cy.intercept()
(/api/commands/intercept) instead. Addressed in #24411.