chore(deps): update dependency cypress to v5 #4836
Open
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:
4.12.1
->5.5.0
Release Notes
cypress-io/cypress
v5.5.0
Compare Source
Released 10/26/2020
Features:
cy.viewport()
has a newmacbook-16
preset. Addresses #8889..type()
now fires thebeforeInput
event during typing. Note: Firefox does not support thebeforeinput
event. Addresses #7088.Bugfixes:
cy.route2
where HTTPS requests to a non-AUT origin would not be intercepted as expected.cy.route2()
now properly handles passing a method as its first argument. Fixes #8729.cy.route2()
where a "Cannot set property response of undefined" error would occasionally occur. Fixes #8858.cy.route2()
now serve the correct mime-type and content. Fixes #8623.experimentalNetworkStubbing
is enabled, usingcy.visit()
to URLs that redirect and set Transfer-Encoding: chunked will no longer fail in Cypress with a "Parse Error". Fixes #8497.cypress.run()
through the Module API now has astatus
property in the results matching the correct CLI types ("failed"
or"finished"
). Addresses #8799.e
character is passed to the--ci-build-id
flag, Cypress now properly reads it as a string. Fixes #8874.Misc:
runMode
oropenMode
toretries
alone. Addresses #8869.Dependency Updates:
electron
from10.1.3
to10.1.5
. Addresses #8927, #8975.color-string
from1.5.3
to1.5.4
. Addresses #8945.pretty-bytes
from^5.3.0
to^5.4.1
. Addresses #8964.v5.4.0
Compare Source
Released 10/14/2020
Features:
cypress cache prune
to delete all installed Cypress versions from the cache except for the currently-installed version. Addresses #5972.--size
option for thecypress cache list
command that prints the sizes of the Cypress cache folders. Addresses #6404.--browser
flag, likecypress open --browser C:/User/App/browser.exe:chrome
, to help detect the browser type. Addresses #6389.cy.viewport()
has newiphone-7
,iphone-8
, andiphone-se2
presets. Addressed in #8624CYPRESS_NO_COMMAND_LOG=1
environment variable duringcypress open
orcypress run
to be used as a tool to debug performance issues. Addressed in #8689.Bugfixes:
chromeWebSecurity
option had no effect in Electron. Fixes #8399.test:after:run
event listener. Fixes #2271 and #8701..within()
and "cy.get()
" is called inside it, the scope will no longer permanently change. Fixes #2106, #4672, #4757, and #5183.cy.contains()
when used after an.each()
commands now query as expected. Fixes #4921./
is no longer added to the URL whenbaseUrl
has param(s). Fixes #2101.cy.route2()
the route handler timeouts will no longer leak into other tests and cause random failures. Addressed in #8727.Misc:
cy.route2()
. Addresses #8694 and #8782.Dependency Updates:
cypress run
and when selecting Electron browser incypress open
from83
to85
. Addressed in #8406.12.14.1
to12.16.3
. Addressed in #8406.electron
from9.2.1
to10.1.3
. Addressed in #8406.firefox-profile
from2.0.0
to4.0.0
. Addressed in #8786.node-forge
from0.9.0
to0.10.0
. Addressed in #8800.v5.3.0
Compare Source
Released 9/28/2020
Features:
firefoxGcInterval
workaround. The desktop GUI will display a warning if such versions are used.Bugfixes:
cy.route2
would not automatically JSONify an empty array handler. Addresses #8532.cy.wait
on acy.route2
alias would not always have aresponse
property. Addresses #8536.cy.route2
routes would not be able to intercept requests to HTTPS destinations on a different origin. Addresses #8487.undefined
after certain assertion failures. Addresses #5763.cy.task
with no arguments passed would receivenull
as the first argument instead ofundefined
. Addresses #5913.cy.visit()
s to a relative URL containing..
would not work. Addresses #5090.cy.setCookie
failed when given a cookie name with a__Host-
prefix. Addresses #8261.Error
object. Addresses #7870.Misc:
Content-Security-Policy-Report-Only
header the same way that it does forContent-Security-Policy
. Addresses #7936.status
property toCypressRunResult
objects. Addresses #8580.CYPRESS_INSTALL_BINARY
now takes precedence over npm config. Addresses #8488.v5.2.0
Compare Source
Released 9/15/2020
Features:
includeShadowDom
for enabling shadow DOM querying globally, per-suite, per-test, or programmatically. Addresses #8442.followRedirect
option to request interception withcy.route2()
, allowing redirects to be followed before continuing to response interception. Addresses #7967.delayMs
andthrottleKbps
when stubbing static responses withcy.route2()
. Addresses #7661.CYPRESS_BINARY_INSTALL
environment variable. Addresses #8482.Performance Improvements:
Bugfixes:
cy.contains()
within a shadow root would not yield the correct element. Addresses #8494.cy.within()
callback would throw the errorroot.getRootNode is not a function
. Addresses #8478.cy.type()
{moveToStart}/{moveToEnd}
special characters moving the cursor to the current line instead of the entire text editable when typing in acontenteditable
element. Addresses #8465.cy.type()
now fires aKeyboardEvent
event instead of anEvent
event. Addresses #6125 and #5650.cy.getCookie()
would be called twice. Addresses #6672.Documentation Changes:
cy.route2()
. Addresses #8489.cy.route2()
. Addresses #8468.Misc:
experimentalShadowDomSupport
configuration flag has been removed. It is no longer necessary to enable shadow DOM testing.cy.shadow()
is not a shadow host. Addresses #8530.cy.route2()
command.Cypress.Commands.add()
, addingPromise
to the list of allowed return types. Addresses #7807.v5.1.0
Compare Source
Released 9/1/2020
Features:
experimentalNetworkStubbing
enabled, thecy.route2
command is available.XMLHttpRequest
s,fetch
requests, beacons, and subresources (like iframes and scripts).cy.trigger()
now accepts aneventConstructor
option for specifying the constructor with which to create the event to trigger. Addresses #5650.Bugfixes:
retries
toTestOptions
types. Addresses #8405.specType
field onCypress.spec
. Addresses #8256.noproxy
is set, unexpected behavior could occur. Addresses #8287..mjs
files. Addresses #8361..should
with only chainer assertions will now throw an error. Addresses #883.cy.trigger()
now includes theview
property in the event object when appropriate. Addresses #3686.Dependency Updates:
iconv-lite
to version0.6.2
. Addresses #8387.command-exists
to version1.2.9
. Addresses #8388.electron
to version9.2.1
. Addresses #8436.v5.0.0
Compare Source
Released 8/19/2020
Summary:
Cypress now includes support for test retries! Similar to how Cypress will retry assertions when they fail, test retries will allow you to automatically retry a failed test prior to marking it as failed. Read our new guide on Test Retries for more details.
Breaking Changes:
Please read our Migration Guide which explains the changes in more detail and how to change your code to migrate to Cypress 5.0.
cypress-plugin-retries
plugin has been deprecated in favor of test retries built into Cypress. Addresses #1313.Cypress.Cookies.defaults()
whitelist
option has been renamed topreserve
to more closely reflect its behavior. Addressed in #7782.blacklistHosts
configuration has been renamed toblockHosts
to more closely reflect its behavior. Addressed in #7622.cy.server()
whitelist
option has been renamed toignore
to more closely reflect its behavior. Addresses #6642.libgbm-dev
is now a requirement to run Cypress on Linux. Addressed in #7791.cy.setCookie()
,cy.getCookie()
, andcy.getCookies()
will now contain thesameSite
property if specified. Addresses #6892.experimentalGetCookiesSameSite
configuration flag has been removed, since this behavior is now the default. Addresses #6892.Cypress.Blob
methodsarrayBufferToBlob
,base64StringToBlob
,binaryStringToBlob
, anddataURLToBlob
have changed fromPromise<Blob>
toBlob
. Addresses #6001.?
in them. We now use the webpack preprocessor by default and it does not support files with question marks. Addressed in #7982.esModuleInterop
option is no longer coerced totrue
. If you need to utilizeesModuleInterop
, set it in yourtsconfig.json
. Addresses #7575.__dirname
and__filename
no longer include leading slashes. Addressed in #7982.Features:
retries
configuration option to configure the number of times to retry a failing test. Addresses #1313..click()
,.dblclick()
, and.rightclick()
now accept optionsaltKey
,ctrlKey
,metaKey
, andshiftKey
to hold down key combinations while clicking. Addresses #486..snapshot()
off ofcy.stub()
andcy.spy()
to disabled snapshots during those commands. For example:cy.stub().snapshot(false)
. Addresses #3849.Bugfixes:
Cannot set property 'err' of undefined
will no longer incorrectly throw when rerunning tests in the Test Runner. Fixes #7874 and #8193.Cannot read property 'isAttached' of undefined
error duringcypress run
on Firefox versions >= 75. Fixes #6813.Maximum call stack size exceeded
will no longer throw when callingscrollIntoView
on an element in the shadow dom. Fixes #7986.display: inline
will no longer be considered hidden if it has child elements within it that are visible. Fixes #6183.experimentalShadowDomSupport
is enabled,.parent()
and.parentsUntil()
commands now work correctly in shadow dom as well as passing a selector to.parents()
when the subject is in the shadow dom. Fixed in #8202.afterEach
orbeforeEach
hook after the hook has already passed. Fixes #3744.cy.screenshot()
onAfterScreenshot
option as a unique screenshot. Fixes #8079.cypress open
if a non-default-channel browser was selected. Fixes #8281.tsconfig.json
will now be loaded and used to configure TypeScript compilation of spec and support files. Fixes #7006 and #7503.reporterStats
now correctly show the number of passed and failed tests when a test passes but theafterEach
fails. Fixes #7730.Documentation Changes:
Misc:
Window
object returned fromcy.window()
is now correct. Addresses #7856.ApplicationWindow
can now be extended. Addresses #7856.reporterOptions
has been added. Addresses #7877.Dependency Updates
80
to83
. Addressed in #7791.12.8.1
to12.14.1
. Addressed in #7791.chalk
from2.4.2
to4.1.0
. Addressed in #7650.cli-table3
from0.5.1
to0.6.0
. Addressed in #7650.electron
from8.3.1
to9.2.0
. Addressed in #7791 and #8235.execa
from1.0.0
to4.0.2
. Addressed in #7650.express
from4.16.4
to4.17.1
. Addressed in #8179.fs-extra
from8.1.0
to9.0.1
. Addressed in #7650.log-symbols
from3.0.0
to4.0.0
. Addressed in #7650.tmp
from0.1.0
to0.2.1
. Addressed in #7650.Renovate configuration
📅 Schedule: At any time (no schedule defined).
🚦 Automerge: Disabled by config. Please merge this manually once you are satisfied.
♻️ Rebasing: Whenever PR becomes conflicted, or if you modify the PR title to begin with "
rebase!
".🔕 Ignore: Close this PR and you won't be reminded about this update again.
Available now for Enterprise: Renovate Pro with real-time webhook handling and priority job queue.