Update dependency cypress to v9.7.0 #1135
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
This PR contains the following updates:
9.5.0
->9.7.0
Release Notes
cypress-io/cypress
v9.7.0
Compare Source
Released 5/23/2022
Features:
Addressed in #21418.
Deprecations:
Cypress.Cookies.preserveOnce()
andCypress.Cookies.defaults()
CypressAPIs have been deprecated. In a future release, support for
Cypress.Cookies.preserveOnce()
andCypress.Cookies.defaults()
will beremoved. Consider using the experimental
cy.session()
command instead to cache and restorecookies and other sessions details between tests. Fixed
#21333.
Bugfixes:
cy.contains()
command to correctlyerror 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.
cy.session()
command log grouping and validation verbiage.This change provides better insights to logs associated with the command.
Fixed #21377.
eventemitter2
third-party type definitions fromcy
andCypress
that were unintentionally exposed. Fixed
#20556.
Dependency Updates:
16.5.0
to16.13.2
. Addressed in#21418.
cypress run
and whenselecting Electron browser in
cypress open
from94.0.4606.81
to100.0.4896.75
. Addressed in#21418.
electron
dependency from15.5.1
to18.0.4
. Addressed in#21418.
v9.6.1
Compare Source
Released 5/9/2022
Bugfixes:
Fixed #19793.
body in the command log. Fixed
#21361.
cy.contains()
and.should('contain', ...)
to handle finding text thatcontains backslash characters. Fixed
#19116
.type('{enter}')
to support sending the Enterkeystroke to submit buttons that are not rendered within a form html element,
but are associated with a form via the
form
attribute. Fixed#21163.
cy.session()
such that re-running tests in open modewill now correctly recreate a session. Before this change, an error was thrown
indicating the saved
setup
function was not a function because it wasserialized. Fixed
#17805.
v9.6.0
Compare Source
Released 4/25/2022
Features:
cy.origin()
command. This feature allows you to testacross different origins or domains within a single test. This experiment was
designed to work side-by-side with the
cy.session()
experimental feature. You can turn on use of this command by setting the
experimentalSessionAndOrigin
configurationoption to
true
. For more details, readour blog post.
Addressed #17336 and
#944.
experimentalSessionAndOrigin
. Thisoption enables support for
cy.session()
andcy.origin()
.experimentalSessionSupport
configuration option has been removed andreplaced by the
experimentalSessionAndOrigin
configuration option. Pleaseupdate your configuration to use the new
experimentalSessionAndOrigin
option to continue to opt-in to this experimental feature.
experimentalSessionAndOrigin
is enabled, cross-origin requests willno longer immediately fail, but instead, time out based on the
pageLoadTimeout
configuration. This allows the request to be appropriately handled by the
cy.origin()
command.experimentalSessionAndOrigin
is enabled, Cypress will no longer waiton page loads between hooks before moving on to the next test.
Bugfixes:
to an input element when using
.type('{enter}')
. Fixed#21033.
or if it came from an error in a plugin before showing the error message.
Fixed #21010.
Cypress binary and the max file length is exceeded. Fixed in
#21047.
Cypress.Commands.add()
TypeScript types to better reflect theattributes of the
.add()
utility and the JQuery element, a possible previoussubject type. #20376.
Dependency Updates:
electron
dependency from15.3.5
to15.5.1
to consume fixesrelated to
improve performance on
macOS Big Sur and later. Addressed
#21068.
v9.5.4
Compare Source
Released 4/11/2022
Bugfixes:
connect to dbus. These errors are normal and expected, and do not result in
test failures. Because they are always present when running Electron inside
docker containers, it has incorrectly led people to believe it is the
root-cause of an error within their test run. By silencing these errors, it
will improve the debug experience to allow users to focus on meaningful
warning and error messages. Fixed
#19299.
*.enable
events are sent if Cypressbecomes disconnected from the Chrome DevTools Protocol and must re-establish a
connection to ensure all command logs are displayed to the user. This fixes an
issue where some command logs, like download or network events, are missing
once Cypress has disconnected and then reconnected to the Chrome DevTools
Protocol. Fixed #20618.
cy.type('{enter}')
was not sending the Enter key forFirefox
v98+
. This was not an issue with Firefoxv97
and below. Fixed#20562.
patterns provided to the
--spec
CLI parameter was incorrectly splitting thepatterns in unexpected places when it should have split on commas. Fixes
#20794.
cy.root()
to respect thetimeout
option passed to the command.Previously, when the
timeout
option was provided, it was ignored and thedefault timeout was used. Fixed
#19985.
to ensure
installing pre-release versions
of the Cypress binary are within the maximum path length of 260 characters.
Fixed in #20961.
prevented
.pause()
from correctly executing when passing the--headed --no-exit
CLI flags tocypress run
. Fixed#20745.
sometimes throw an expected error on navigation with
cy.back()
andcy.go()
. Fixed #19749and #20539.
any
when the correct type isCookie
. Fixed in#20513.
Cypress.Command.addAll()
Typescript types. Fixed#18886.
cy.session()
where an error was thrownwhen no cookies had been set for the session and the user clicks the session
command log to view additional details in the DevTools console. Fixed in
#20946.
Misc:
cy.session()
command log visuals.Fixed #20433.
Dependency Updates:
ansi-regex
dependency from4.1.0
to4.1.1
to address theCVE-2021-3807 NVD security
vulnerability. Addressed in
#20807.
plist
dependency from3.0.4
to3.0.5
to address theCVE-2022-22912 NVD security
vulnerability. Addressed in
#20808.
v9.5.3
Compare Source
Released 3/28/2022
Bugfixes:
cy.intercept()
where the response status codeand response body were sometimes missing from the log details in
open
mode.Fixed #18757.
cy.readFile()
where the command would not retry or providea meaningful error message if
null
encoding was used and the file was notfound. Fixed #20683.
pressed shortcut key was not used in conjunction with either the
alt
,ctrl
, orshift
modifier keys. This fixed an issue where the Cypressshortcut handler would override the browser native keyboard shortcut for
search (
ctrl + f
). Fixed#20222.
CYPRESS_DOWNLOAD_PATH_TEMPLATE
environment variable. Issues were seenutilizing this template when the env was provided from a package manager file.
Fixed #19914.
Cypress.Buffer
TypeScript type to reference the static constructorof
Buffer
, instead of incorrectly referencing theBuffer
instance whichcaused Type errors. Fixes
#20542.
Dependency Updates:
electron
dependency from15.3.4
to15.3.5
to address theCVE-2022-21718 NVD security
vulnerability. Addressed in
#20750.
minimist
dependency from1.2.5
to1.2.6
. Addressed in#20756.
nanoid
dependency from3.1.20
to3.1.31
to address theCVE-2021-23566 NVD security
vulnerability. Addressed in
#20726.
node-forge
dependency from1.0.0
to1.3.0
to address theCVE-2022-24771 NVD security
vulnerability. Addressed in
#20727.
v9.5.2
Compare Source
Released 3/14/2022
Bugfixes:
.type()
where click events could be fired on theincorrect target element because the target focus changed within a key-down
event handler callback. Fixed in
#20525.
colors were not removed from the FireFox warning message about the
chromeWebSecurity
configuration option having no effect on the Firefoxbrowser. Fixes #20496.
unique cache folder for each
pre-release installation
on a machine. This removes the need to run
cypress clear cache
beforeinstalling a new pre-release version of Cypress or before installing a new
released version of Cypress after a pre-release version had been installed.
Addressed in #20296.
Misc:
Origin-Agent-Cluster
header forproxied responses to ensure
document.domain
can continue to be set withChrome v106+. This was necessary because Chrome is planning to make
document.domain
immutablein v106+ to relax the same-origin policy by interpreting the
Origin-Agent-Cluster
astrue
, whereas it is currently interpreted asfalse
. Addresses#20147.
Dependency Updates:
url-parse
dependency from1.5.6
to1.5.9
to address these NVDsecurity vulnerabilities,
CVE-2022-0639,
CVE-2022-0686 and
CVE-2022-0691. Addressed in
#20386 and
#20439.
v9.5.1
Compare Source
Released 2/28/2022
Bugfixes:
ready
event to the Plugins process to ensure all plugins havesuccessfully started before the configuration is loaded and the tests start.
Fixed in #19792.
stuck in the initialization phase, where the user can only view the loading
spinner.
--loader
flag for plugins.on MacOS machines that leverage the VMWare CBCloud SaaS solution. Before this
change, random test failures were observed, as well as hanging tests and
initially pending HTTP and HTTPS responses. Fixed in
#20062.
colors were not removed from the
cy.fixtures()
error code frame. Fixes#20208.
test config override errors were formatted incorrectly. Fixes
#20208.
errors with booleans or numbers. Fixes
#19561.
Dependency Updates:
url-parse
dependency from1.5.2
to1.5.6
to avoid authorizationbypass through user-controlled key to address this
NVD security vulnerability.
Addressed in #20270.
Configuration
📅 Schedule: Branch creation - "after 10pm every weekday,before 5am every weekday,every weekend" (UTC), Automerge - At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻ Rebasing: Whenever PR becomes conflicted, or you tick the rebase/retry checkbox.
🔕 Ignore: Close this PR and you won't be reminded about this update again.
This PR has been generated by Mend Renovate. View repository job log here.