Released 12/20/2021
Features:
- Cypress will throw an error when a user attempts to update a configuration
value at run-time using either the Test Configuration or using
Cypress.config()
that is a
readonly option.
Addresses #6407 and
#19001. - A
timeout
option has been added to thecy.writeFile()
command, with a
default value ofdefaultCommandTimeout
. Addresses
#3350. - The default
maxHttpBufferSize
for the internal socket server has been
increased to
Node's maximum Buffer size
(size varies by OS) to allow large file writes withcy.writeFile()
.
Addresses #19140. - Add
CYPRESS_VERIFY_TIMEOUT
environment variable to override the timeout
duration of theverify
command. Addresses
#18290.
Bugfixes:
- Prevent unnecessary snapshotting when running default assertions that would
unnecessarily increase CPU use incypress open
mode which lead to out of
memory crashes on certain browsers. Fixes
#18549. - Removed automatic retries for failed HTTP requests through the proxy. This
fixes an issue where failed requests could be re-sent too many times in some
conditions. This change could increase the number of failed requests that your
app sees. Fixes #19043. - Reduced the occurrence of an issue where logs for
fetch
andxhr
requests
could be associated with the wrong request. Fixes
#19043. - Tests that are skipped within
then
blocks will no longer throw errors
causing the test to fail. Tests that are skipped outside ofthen
blocks will
no longer trigger the fail event. This will prevent screenshots from happening
from errors thrown by the fail event.Fixes
#14867 and
#17660. - Fixed a regression in 9.0.0 where a
fixture provided in a static response tocy.intercept()
did not support
passingnull
to encoding to read the fixture as a Buffer. This identified an
undocumented 9.0.0 Breaking Change where the default read behavior of a
fixture changed from a Buffer to being read withutf8
encoding. Fixes
#19344. - Fixed a regression in 9.0.0 where
cy.contains()
attempted to ignore<script>
and<style>
elements found
within<body>
. by deleting them from the dom. This behavior was corrected to
ignore the elements without deleting them. Fixes
#19377. - Cypress will no longer crash when proxying an ill formed request. For example,
if the application under test has a resource of"http: //localhost/asset.js"
(notice the extraneous space), Cypress will now log a debug message and the
asset will fail to load. Fixes
#9220. - Correct
Cypress.Command.add()
andCypress.Command.override()
TypeScript
types. Fixes #18879,
#19095 and
#18940.- Custom command implementations typings take into account
prevSubject
variants. - Custom command implementations now allows to NOT return a value.
- Custom command overwrites typings take into account
originalFn
function.
- Custom command implementations typings take into account
- Add types for
Cypress.session.clearAllSavedSessions()
. Fixes
#19363.
Dependencies:
- Upgraded
ssri
from6.0.1
to6.0.2
to mitigate
ssri vulnerability. Addressed in
#19351.