dependencies: Update dependency cypress to v5 #2251
Closed
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:
3.8.3
->5.3.0
Release Notes
cypress-io/cypress
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.v4.12.1
Compare Source
Released 8/5/2020
Bugfixes:
Cannot set property 'err' of undefined
will no longer incorrectly throw when rerunning tests in the Test Runner. Fixes #β7874.before
hook will now correctly run the tests in the suite following the skipped test. Fixes #β8086.Dependency Updates:
md5
from2.2.1
to2.3.0
. Addressed in #β8161.electron-context-menu
from0.15.1
to2.2.0
. Addressed in #β8180.v4.12.0
Compare Source
Released 8/3/2020
Features:
cypress run
by setting screenshotOnRunFailure in your configuration. Addresses #β5029.pluginsFile
now has access to a readonlyversion
property within theconfig
object that returns the current Cypress version being run. This will allow plugins to better target specific Cypress versions. Addresses #β6352.cypress open
, you can now run a subset of all specs by entering a text search filter and clicking 'Run n tests'. Addresses #β6581.Bugfixes:
position: fixed
elements that have a parent withpointer-events: none
will now correctly evaluate as visible. Fixes #β6675.attributeChangedCallback
to be triggered on custom elements. Fixes #β7187.+
characters now properly run in Cypress. Fixes #β5909.fx
shortcut incy.route()
, an error is now thrown when the fixture file cannot be found. Fixes #β7818.Cannot read property '__error' of null
error when passing a file containingnull
content tocy.fixture()
. Fixes #β8010.--env
via the command line are now properly read. Fixes #β6891.experimentalSourceRewriting
is enabled, AST rewriting will no longer return an output before the body is done being written. This would happen when the response body was too large and the response would be sent while the body was still being modified. Fixes #β8043..type()
, Cypress now properly types into an input within an iframe that auto focuses the input. Fixes #β8111.Misc:
cypress
npm package are no longer pinned to a specific version. This allows the use ofnpm audit fix
to fix security vulnerabilities without needing a patch release from Cypress. Addresses #β8046.CypressCommandLine
namespace. Addresses #β7309..should()
command. Addresses #β5573.expiry
property type is now a Number instead of a String. Addresses #β8144.Dependency Updates:
jimp
from0.13.0
to0.14.0
. Addressed in #β8102.moment
from2.26.0
to2.27.0
. Addressed in #β8122.v4.11.0
Compare Source
Released 7/21/2020
Features:
ensureScrollability: false
option to.scrollTo()
to skip checking whether the element is scrollable. Addresses #β1924.cy.clock()
now accepts Dates as well as a Number for now. Fixes #β7786.Bugfixes:
cypress run
on Windows will no longer fail trying to make a connection to the browser. Fixes #β6392.Cannot read property 'isAttached' of undefined
error duringcypress run
on Firefox versions >= 75. Fixes #β6813.invalid for option "size"
error. Fixes #β6099.viewportHeight
orviewportWidth
from within the test configuration now properly changes the viewport size for the duration of the suite or test.config
within thepluginsFile
now sets the values correctly. Fixes #β7959.cy.wait()
now reflects the correctrequestTimeout
andresponseTimeout
of the command. Fixes #β7881.ELECTRON_EXTRA_LAUNCH_ARGS
askey=value
will now be properly read in. Fixes #β7994.cy.route()
now correctly display as 'xhr stub' in the Test Runner's Command Log. Fixes #β8018.Misc:
pluginsFile
andsupportFile
now mention that.ts
extensions are supported. Addresses #β7940.Dependency Updates:
@benmalka/foxdriver
from0.4.0
to0.4.1
. Addressed in #β8040.firefox-profile
from1.3.1
to2.0.0
. Addressed in #β8000.fix-path
from2.1.0
to3.0.0
. Addressed in #β8028.human-interval
from0.1.6
to1.0.0
. Addressed in #β8031.lodash
from4.17.15
to4.17.19
. Addressed in #β7954.plist
from2.1.0
to3.0.1
. Addressed in #β8045.proxy-from-env
from1.0.0
to1.1.0
. Addressed in #β7900.resolve
from1.13.1
to1.17.0
. Addressed in #β7989.systeminformation
from4.21.1
to4.26.9
. Addressed in #β7975.uuid
from3.3.2
to8.2.0
. Addressed in #β7976, #β8002, and #β8011.v4.10.0
Compare Source
Released 7/7/2020
Features:
before
,beforeEach
,after
, andafterEach
hook definition in your IDE from the Test Runner's Command Log by clicking the Open in IDE button. Addresses #β7793.before
,beforeEach
,after
, andafterEach
hook definitions now display separately in the Test Runner's Command Log when defined in separate hook definitions. Addresses #β7779.Bugfixes:
responseTimeout
will no longer be prematurely canceled by the Cypress proxy layer. Fixes #β6426.parent
variable will no longer throw Illegal Invocation errors. Fixes #β6412.experimentalShadowDomSupport
is enabled, using.type()
on an input in the Shadow DOM will not result in an error. Fixes #β7741.experimentalShadowDomSupport
is enabled, checking for visibility on a shadow dom host element will no longer hang if the host element was the foremost element and had an ancestor with fixed position. Fixes #β7893.@benmalka/foxdriver
module will no longer appear if anyDEBUG
environment variable was set. Fixed #β7723.Misc:
Dependency Updates:
recast
from0.18.8
to0.19.1
. Addressed in #β7898.v4.9.0
Compare Source
Released 6/23/2020
Features:
experimentalFetchPolyfill
configuration option. When this option istrue
, Cypress will automatically replacewindow.fetch
with a polyfill that Cypress can spy on and stub. Addresses #β7710.--quiet
flag tocypress run
to silence any Cypress specific output from stdout. Addresses #β7714.Bugfixes:
cy.wait()
now correctly resolves when waiting for XHR requests that contain resource-like text in the XHR's query params or hash (like.js
, .html
,.css
). #β7280..click()
would hang if the subject had a shadow root andexperimentalShadowDomSupport
was not enabled. Fixes #β7679..should('have.value')
now properly asserts against<progress>
,<meter>
or<li>
element's values. Fixes #β7603.cypress run
when the stdout is too large. Fixes #β7548.beforeEach
hook. Fixes #β7731.experimentalShadowDomSupport
is enabled, querying shadow dom in certain situations will no longer cause the errorCannot read property 'length' of undefined
duringcypress run
. Fixes #β7676.cypress run
will no longer crash when provided an empty string to the--project
flag. Fixes #β7743.Misc:
fixturesFolder
,pluginsFile
,screenshotsFolders
andvideoCompression
have been updated to allowfalse
TypeScript types. Addresses #β7654.cy.wait(ms)
now correctly yield the type of the previous subject. Addresses #β7682.Dependency Updates:
arch
from2.1.1
to2.1.2
. Addressed in #β7672.eventemitter2
from4.1.2
to6.4.2
. Addressed in #β7705 and #β7707.getos
from3.1.1
to3.2.1
. Addressed in #β7685.is-installed-globally
from0.1.0
to0.3.2
. Addressed in #β7703.jimp
from0.12.0
to0.13.0
. Addressed in #β7618.moment
from2.24.0
to2.26.0
. Addressed in #β7718.signal-exit
from3.0.2
to3.0.3
. Addressed in #β7738.v4.8.0
Compare Source
Released 6/8/2020
Features:
Cypress.isBrowser()
has been expanded to allow for new matcher arguments to assist in filtering matching browsers. Addresses #β7168.experimentalShadowDomSupport
option. See the Experiments page for more information. Addresses #β144.Bugfixes:
before
andafter
hooks defined in completed suites no longer erroneously rerun. Fixes #β1987.after
hooks now correctly display in the Test Runner's Command Log. Fixes #β2296.Cannot read property '__error' of null
. Fixes #β7518.cy.visit()
to an authenticated URL would error withRequest cannot be constructed from a URL that includes credentials: /__cypress/runner/./wasm/mappings.wasm
Fixes #β7481.pluginsFile
orsupportFile
when they are TypeScript files. Fixes #β7459.cy.on('fail', fn)
fail handler now display a stack trace and code frame pointing to the origin of the error. Fixes #β7512..click()
now properly clicks on wrapped inline elements when the first child element in the parent element has no width or height. Fixes #β7434 and #β7012.cy.wrap()
now properly respects thetimeout
option. It also better handles situations when passed a promise that never resolves. Fixes #β5980.experimentalComponentTesting
is enabled, Cypress will no longer exit with SIGABRT in certain situations. Fixes #β7572.S
shortcut during.pause()
no longer does anything. This prevents the Test Runner from getting into a 'stuck' state. Fixes #β6867.Misc:
Cypress.config()
now has TypeScript types for thetaskTimeout
option. Addresses #β7531.cy.screenshot()
options andCypress.log()
have been updated to be more accurate. Addresses #β7445.Cypress.automation
have been added. Addresses #β7519.--browser
flag that is not supported by Cypress. Addresses #β6979.Dependency Updates:
chrome-remote-interface
from0.28.1
to0.28.2
. Addressed in #β7615.electron
from8.3.0
to8.3.1
. Addressed in #β7599.v4.7.0
Compare Source
Released 5/26/2020
Features:
cy.request()
now supports anencoding
option that can be used to set the encoding of the response body, defaulting toutf-8
. Addresses #β2029 and #β3576.Bugfixes:
Misc:
v4.6.0
Compare Source
Released 5/20/2020
Features:
@cypress/webpack-preprocessor
should upgrade to v5.4.1 or later of the package which will correctly inline source maps. Addresses #β881, #β1761 and #β3966.experimentalSourceRewriting
configuration option totrue
. Addresses #β5273.have.text
,have.id
,have.data
,have.value
, andhave.attr
assertions chainers are now automatically cast to strings for comparison. Addresses #β7314.Bugfixes:
module: commonJS
which Node.js and the browser expect. This fixes a situation where setting a different module in atsconfig.json
would cause errors to throw if you hadexport
,import
orasync
keywords in your code. Fixes #β7005, #β7011, #β7043, and #β7151.experimentalSourceRewriting
is enabled, settinglocation
orlocation.href
to a relative href, or usinglocation.replace
orlocation.assign
with a relative href will no longer navigate the AUT to the wrong URL. Fixes #β3975 and #β3994.experimentalSourceRewriting
is enabled, the use ofwindow.top
andwindow.parent
will no longer cause the AUT to break out of the Cypress iframe. Fixes #β5271 and #β1467.experimentalSourceRewriting
is enabled, calls towindow.frames
,window.parent.frames
, and otherframes
will no longer point to the wrong reference after being proxied through Cypress. Fixes #β2664.experimentalSourceRewriting
is enabled, scripts using theintegrity
attribute for sub-resource integrity (SRI) will now load after being proxied through Cypress. Fixes #β2393.experimentalSourceRewriting
is enabled, the use ofdocument.location
to set the URL will no longer navigate the AUT to the wrong URL. Fixes #β7402..click
will now click in the correct coordinates when either x or y coordinate options are zero. Fixes #β7319.onError is not a function
when a browser can't connect. Fixes #β7217.force: true
option to.select()
to select options within a disabled<select>
. Addresses #β107..select()
an<option>
within a disabled<optgroup>
. Fixes #β7226.Cypress._.capitalize
now correctly behaves the same as Lodash's capitalize method. Fixes #β7222.experimentalComponentTesting
is enabled, clicking on a component spec now watches the correct file without assuming it is an integration file. Fixes #β7244.cy.visit()
. Fixes #β6193.Misc:
--version
command when looking for available browsers from 5 seconds to 30 seconds. Addressed in #β7366.Cypress.ConfigOptions
types as a partial of the full options interface. Addresses #β7238.Dependency Updates:
@cypress/browserify-preprocessor
from2.2.2
to2.2.3
. Addressed in #β7291.cookie-parser
from1.4.4
to1.4.5
. Addressed in #β7389.cypress-multi-reporters
from1.2.4
to1.4.0
. Addressed in #β7431.electron
from8.2.3
to8.3.0
. Addressed in #β7236 and #β7387.image-size
from0.7.4
to0.8.3
. Addressed in #β7236.jimp
from0.9.3
to0.12.0
. Addressed in #β7408.return-deep-diff
from0.3.0
to0.4.0
. Addressed in #β7292.v4.5.0
Compare Source
Released 4/28/2020
Features:
experimentalComponentTesting
configuration option totrue
. For more details see the cypress-react-unit-test and cypress-vue-unit-test repos. Addresses #β5922 and #β6968.Bugfixes:
modifyObstructiveCode
istrue
. Fixes #β7138.Misc:
yarn upgrade
Cypress instead ofyarn add
to help prevent installing 2 versions of Cypress when using yarn workspaces. Addressed in [#β7101](httpsRenovate 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 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 WhiteSource Renovate. View repository job log here.