Released 12/21/2020
Features:
- You can now listen to
before:run
andafter:run
events in the plugins file. See thebefore:run
andafter:run
docs for more information. Addressed in #14238 and #14263. - You can now listen to
before:spec
andafter:spec
events in the plugins file. See thebefore:spec
andafter:spec
docs for more information. Addressed in #9646 and #14178. - The
Timed out retrying
error message now displays the amount of time Cypress retried. Addresses #5781.
Bugfixes:
- Getting an alias of
cy.intercept()
usingcy.get()
will no longer always yieldnull
. Fixes #9306. cy.intercept()
will now automatically responds to CORS preflight requests (HTTPOPTIONS
requests) that match defined routes. Fixes #9599.- Response errors from
forceNetworkError
can now be awaited usingcy.intercept()
andcy.wait()
. Fixes #9062. - Using
cy.log()
inside.then()
no longer breaks the subject value in the command chain. Fixes #8084. - Using
Cypress.Commands.overwrite
to overwrite.then()
now preserves the properthis
context and sets aliases correctly. Fixes #5101. - Using
Cypress.Commands.overwrite
to overwritecy.route()
orcy.intercept()
and wait on its alias now properly works. Fixes #3890 and #9580. - Cypress no longer fails to find specs if you set the fixtures folder to be the same as the integration folder. Fixes #14226.
- Cypress no longer fails to show error code frames if the spec filename has a space in it, fixes #7553.
Misc:
scrollBehavior
is now an allowed type when passed as test configuration. Addresses #9643.- The
FileObject
type for the file argument of thefile:preprocessor
event now includes theEventEmitter
type. Addresses #9276.
Dependency Updates:
- Upgraded
electron
from11.0.2
to11.0.3
. Addressed in #9409.