chore(deps): update dependency cypress to v7 - autoclosed #106
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.2
->7.5.0
Release Notes
cypress-io/cypress
v7.5.0
Compare Source
Released 06/07/2021
Features:
cy.request()
now accepts a generic in TypeScript for specifying the type of the request body. Addresses #9109.Bugfixes:
hasBinary
infinite recursive call. Fixes #16476.--config-file
option now correctly handles absolute paths. Fixes #6136.cy.location(<key>)
will now retry if the remote location returns an empty string, which is possible during otherwise harmless redirects. Fixes #16463.<value>.should()
syntax. Fixes #16548.Dependency Updates:
listr
withlistr2
. Addressed in #16663.v7.4.0
Compare Source
Released 05/24/2021
Features:
.pause()
and to toggle auto-scrolling of the Test Runner (a). Addresses #248.Bugfixes:
cy.request()
can now send binary files in form data. Fixes #1647.cy.request()
can now send blob data. Fixes #6178.cy.wait()
could yield the incorrect result when used withcy.intercept()
and several simultaneous requests. Fixes #16451.cy.intercept()
matchers are displayed in the Command Log when usingRouteMatcher
properties besidesurl
andmethod
. Fixes #9403.cy.intercept()
argument validation has been improved. Invalid hostnames and extra arguments passed tocy.intercept()
now result in an error. Addressed in #16577.cy.screenshot()
no longer incorrectly captures parts of the Test Runner UI during component testing. Fixes #16543.cypress open-ct
. Fixes #16278.componentFolder
andtestFiles
values from returned from plugins in the component testing runner. Fixes #16424.projectRoot
will now open in IDE and generate studio commands when saved. Fixes #16255.config
in the plugins file will now display in alphabetical order. Fixes #16564.Dependency Updates:
dependency-tree
from7.0.2
to8.1.0
. Addressed in #16464.extract-zip
from1.7.0
to2.0.1
. Fixes #6896v7.3.0
Compare Source
Released 05/10/2021
Features:
testingType: 'component'
via the newtestingType
property. ThetestingType
will default toe2e
. Addresses #16302.cy.intercept()
now accepts atimes
option in theRouteMatcher
.times
will specify the number of times that a particularcy.intercept()
should be applied. Addresses #4460 and #8531.cy.intercept()
now accepts invocation usingcy.intercept(url, routeMatcher, handler)
, whereurl
is a regular expression. Previously, this only worked ifurl
was a string. Addresses #16390.DEBUG=cypress:server:record:ci-info
will print commit information and CI provider information that's sent to the Dashboard as debug logs. Addresses #16236.CYPRESS_DOWNLOAD_USE_CA
is specified. See "Using a custom CA" for more information. Addresses #8825.Bugfixes:
/__/
whenlocation.href
is set to a relative path within the call stack of an XHR event handler. Fixes #3975 and #7439._top
or_parent
so that it no longer redirects the parent frame. Fixes #1244.RangeError: Maximum call stack size exceeded at _deconstructPacket
error. Most commonly, this occurred when handling network errors withcy.request()
. Fixes #15101.ERR_INVALID_ARG_TYPE
type error when testing a binary file upload. Fixes #15898 and #16223..then()
only accepting functions to display. Fixes #15281.cy.intercept()
now adds aaccess-control-expose-headers: '*'
header by default for CORS requests unless overridden. Fixes #15050.cy.intercept()
andcy.route()
requests with multiple aliases are displayed in the command log. Addressed in #16382.Cypress.cookies.debug(true)
will now correctly show cookie-related messages on the console. Fixes #15032.cy.log()
will now show all arguments, not only the first 2. Fixes #16068..select()
now correctly selects option elements with values that have
characters. Fixes #16045.e2e
andcomponent
configuration values will now correctly show when previewing resolved configuration in the Test Runner. Fixes #16282.—quiet
flag, Cypress will no longer print uploading output to Stdout. Fixes #16268./
hotkey in Firefox, Cypress will select the SpecList's SearchInput as it does in other browsers. Fixes #16309.Dependency Updates:
classnames
from2.2.6
to2.3.1
. Addressed in #8337.color-string
from1.5.4
to1.5.5
. Addressed in #16362.lodash
from4.17.19
to4.17.21
. Addressed in #16406.registry-js
from1.13.0
to1.15.0
. Addressed in #16409.url-parse
from1.4.7
to1.5.0
. Addressed in #16408.v7.2.0
Compare Source
Released 04/26/2021
Features:
Performance:
Bugfixes:
ERR_INVALID_ARG_TYPE
type error. We now correctly detect a utf8 request body with multi-byte Unicode characters. Fixes #15901.cy.intercept()
aliases will now work as expected. Fixes #15823.cy.intercept
. Fixes #16117.cypress run-ct
no longer hangs on Windows machines. Fixes #15976.Cannot read property 'name' of null
. Fixes #15816..select()
an<option>
within a disabled<fieldset>
. Fixes #5951..type()
will no longer change thevalue
attribute of button-like inputs with type button, submit, reset, image, radio, or checkbox. Fixes #15913.componentFolder
outside of the root project when specifying--project
. Fixes #16053.Misc:
Cypress.Cookies.defaults()
now returns the correct type instead ofvoid
. Addresses #15426..then()
will show the correct type when a collection of HTMLElements is provided. Addressed in #15869.cy.intercept()
. Addressed in #16167.Dependency Updates:
cypress run
and when selecting Electron browser incypress open
from89.0.4348.1
to89.0.4328.0
. This was done to address a performance regression introduced in 7.0.0. Addressed in #16113.systeminformation
from5.3.1
to5.6.4
. Addressed in #15819.lolex
with@sinonjs/fake-timers
. Addressed in #15595.v7.1.0
Compare Source
Released 04/12/2021
Features:
before:spec
,after:spec
,before:run
, andafter:run
now fire in interactive mode in addition to run mode. This requires theexperimentalInteractiveRunEvents
flag to be enabled. Addressed in #15787.Bugfixes:
cypress.json
is now correctly applied in the Component Test Runner. Fixes #15899.cy.intercept(routeMatcher, staticResponse)
would still be sent to the destination server. Fixes #15841.v7.0.1
Compare Source
Released 04/07/2021
Bugfixes:
Enter
. Addressed in #15833.--ipc=host
. Fixes #15814 and #350.stderr
in production builds of Cypress. Addressed in #15817.stdout
when the video cannot be found after a run. Addressed in #15828.tsconfig.json
file present. Addressed in #15828.Misc:
v7.0.0
Released 04/05/2021
Summary:
🎉 Introducing the Cypress Component Test Runner - now in alpha. Today's release includes a brand new test runner designed to replace your Node-based component tests. Our Component Test Runner tests your components in the browser, just like a user would. And, since it runs in the browser, you get to debug your components using your favorite developer tools. Read our Component Testing Guide 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 7.0.
cy.intercept()
are now matched starting with the most recently defined request interceptor. This allows users to override request handlers by callingcy.intercept()
again. This matches the previous behavior that was default incy.route()
. Addresses #9302.cy.intercept()
now automatically parses more JSON MIME types, including 'application/vnd.api+json'. You can now removeJSON.parse(req.body)
orJSON.parse(res.body)
from some tests that previously required it. Addresses #14763.undefined
) supplied as the body of aStaticResponse
tocy.intercept()
will now be JSONified and sent as the body. Previously, an empty string was sent instead. Addresses #15234 and #14205.matchUrlAgainstPath
RouteMatcher
property has been removed fromcy.intercept()
.cy.intercept()
URL matching has been removed. Previously, a URL would match if it contained the supplied string anywhere. Now, the URL (including querystring) only matches if it is an equality match or a minimatch.delay
option for StaticResponses used withcy.intercept()
has been removed. Please go back to using thedelayMS
option. Addresses #15255.cy.route2()
was previously aliased tocy.intercept()
. Now the aliascy.route2()
has been removed. Please update usage ofcy.route2()
tocy.intercept()
. Addressed in #14709.cypress open
orcypress run
. Now, they need to be executed by runningcypress open-ct
orcypress run-ct
. Addressed in #15701.experimentalComponentTesting
must be removed from yoru configuration file,cypress.json
by default, or it will throw an error. Addressed in #15701.file:preprocessor
event is no longer used to compile component tests. Now, adev-server:start
event must be registered.window.onerror
. Addresses #8802.uncaught:exception
event with the promise as the third argument. Addresses #243.redirectionLimit
config. Addresses #14445.contextIsolation
by default in the Electron browser. You can override this option if needed within thebefore:browser:launch
API. Addressed in #15493.Cypress.moment()
has been removed. Please migrate to a different datetime formatter. See our recipe for example replacements. Addresses #8714.12.18.3
to14.16.0
. This could change the behavior of code within thepluginsFile
when using the bundled Node.js version of Cypress. Addressed in #15292.Features:
cy.intercept()
includingbefore:response
,response
, andafter:response
.req.continue(cb)
) supplied tocy.intercept()
will be called in reverse order untilres.send
is called or until there are no more response handlers.middleware
, has been added to theRouteMatcher
type. If true, the supplied request handler will be called before any non-middleware request handlers.req.continue(cb)
, is available on request objects yielded bycy.intercept()
. It is functionally the same asreq.reply(cb)
- the request will stop propagating to other event handlers, will be sent outgoing, and the response will be handled by cb.cy.intercept()
can now be called with a new overload:cy.intercept(url, routeMatcher, handler)
.routeMatcher
will be merged withurl
, and the handler is required.cy.visit()
can now visit pages withapplication/xhtml*
content-type. Addresses #15738.component
tests versuse2e
tests. Addressed in #15526.ctrl/cmd + f
) to search spec files in the Test Runner based on your OS. Addresses #6229.cy.tick()
now accepts alog
option. Addresses #15180.keep-alive
header to all proxy responses. Addressed in #15292NODE_OPTIONS
. Addressed in #15292Bugfixes:
response.body
ofcy.intercept()
is now correct after stubbing a response usingres.send({ fixture })
in areq.continue
callback or abefore:response
orresponse
handler. Addressed in #14543.cy.wait()
. Fixes #14522..click()
will no longer fail with "coordsHistory must be at least 2 sets of coords" when specifying{ multiple: true }
. Fixes #3738.Refused to apply style
are gone from the console inopen-ct
during Component Testing. Addressed in #15661.@cypress/vue
. Addressed in #15275.Misc:
set-cookie
allowstring[]
, so the header's type has been changed to reflect this. Addresses #15419.cy.writeFile()
now allows 4 arguments. Addresses #15353..then()
will show the correct type when raw HTMLElements are provided. Addresses #14875Dependency Updates
cypress run
and when selecting Electron browser incypress open
from87
to89
. Addressed in #15292.12.18.3
to14.16.0
. Addressed in #15292.electron
from11.3.0
to12.0.0
. Addressed in #15292.v6.8.0
Compare Source
Released 3/17/2021
User Experience:
Bugfixes:
experimentalStudio
, Cypress Studio the icon to add commands will now fully display on long test titles. Fixes #15182.v6.7.1
Compare Source
Released 3/15/2021
Bugfixes:
scroll-behavior: smooth
no longer fails Cypress's actionability check. Fixes #15453.projectId
will be written correctly to thecypress.json
file on initial creation without an extra config object. Fixes #15497.v6.7.0
Compare Source
Released 3/15/2021
Features:
experimentalRunEvents
configuration flag has been removed. You can now listen tobefore:run
,after:run
,before:spec
andafter:spec
events in the plugins file without needing theexperimentalRunEvents
configuration option. See thebefore:run
,after:run
,before:spec
andafter:spec
docs for more information. Addressed in #15276.Bugfixes:
cy.wait()
no longer falsely returns a timeout when the user aborts an XHR. Fixes #9549..clear()
and.type('{selectall}{del}')
now behave the same when they're used against elements that contain text inputs. Fixes #8447.experimentalStudio
, Cypress Studio now records typing by using the value of the input rather than the keys that were pressed. Studio also no longer records pressing special keys (such as arrows or ctrl) except for Enter. Fixes #15023.mouse down
event, fixes #8279.Misc:
Dependency Updates:
electron
from11.2.3
to11.3.0
. Addressed in #15201.v6.6.0
Compare Source
Released 2/18/2021
Features:
Dependency Updates:
ramda
to version0.27.1
. Addressed in #14958.v6.5.0
Compare Source
Released 2/15/2021
Performance:
cypress open
andcypress run
. Addresses #15075.Bugfixes:
Cypress.on
did not support chaining. Addresses #14991..zip
could become corrupted and break the install process. Addresses #4595.Misc:
autoEnd
to the types forLogConfig
. Addresses #9590.Dependency Updates:
electron
to version11.2.3
. Addresses #15056.v6.4.0
Compare Source
Released 2/1/2021
Features:
delayMs
option forcy.intercept()
has been renamed todelay
.delayMs
will still work, but it is deprecated and will be removed in a future release. Addresses #14822.Bugfixes:
cy.type()
commands. Addresses #14684.watchForFileChanges: false
. Addresses #14744.cy.click()
beforecy.type()
. Addresses #14685.cy.intercept
where aliases set viareq.alias
containing a period character would not work as expected. Addresses #14444.cy.intercept
would not work as expected. Addresses #14446 and #14511.Misc:
Dependency Updates:
recast
to version0.20.4
. Addresses #14623.registry-js
to version1.13.0
. Addresses #14668.@cypress/get-windows-proxy
to version1.6.2
. Addresses #14711.systeminformation
to version4.31.1
. Addresses #14715.semantic-release
to version17.2.3
. Addresses #14713.electron to version
11.2.1`. Addresses #14764.v6.3.0
Compare Source
Released 1/19/2021
Features:
experimentalStudio
attribute to your configuration,cypress.json
by default. Address #73.downloadsFolder
which is set tocypress/downloads
by default. ThedownloadsFolder
will be deleted before each run unlesstrashAssetsBeforeRuns
is set tofalse
. Addresses #949.Bugfixes:
.only
, the error will now correctly display in the Command Log. Fixes #14455.--key
flag when followed by other CLI flags. Fixed #14593.afterEach
hook. Fixes #9209.waitForAnimations
set tofalse
no longer affects whether Cypress fires actions on inner elements. Fixes #14370.CYPRESS_
prefixed env variables containing commas to be parsed as multiple values. Fixes #8818.have.value
on an undefined subject would throw an error. Fixes #14359.Misc:
Dependency Updates:
node-sass
withsass
. Addressed in #14415.debug
from4.1.1
to4.3.1
. Addressed in #14583.electron
from11.0.3
to11.2.0
. Addressed in #14567.electron-builder
from22.8.0
to22.9.1
. Addressed in #14493.shell-env
from3.0.0
to3.0.1
. Addressed in #14622.uuid
from8.2.0
to8.3.2
. Addressed in #14170.v6.2.1
Compare Source
Released 1/4/2021
Bugfixes:
cypress run
. Fixes #9040.multipart/form-data
is no longer wrongly encoded when usingcy.intercept()
. This should preventUnexpected end of multipart data
errors on the back end service where the request was pointing to. Fixes #9359.cy.contains()
no longer throws an error when a single quote is used inside its argument when RegExp. Fixes #8626.capture: 'runner'
to acy.screenshot()
command inside.within()
now screenshots the entire Test Runner as expected. Fixes #14253.Cypress.dom.isJquery()
now always returns a boolean instead ofundefined
sometimes. Fixes #14278.calledOnceWith
andcalledOnceWithExactly
sinon matchers no longer throw an error when used within Cypress. Fixes #9644.--disable-backgrounding-occluded-windows
as a default flag to Chrome to prevent backgrounding rendering when the Cypress window is occluded. Fixes #9604.Misc:
Dependency Updates:
devtools-protocol
from0.0.734984
to0.0.839267
. Addressed in #14353.electron
from11.0.3
to11.1.1
. Addressed in #14352.v6.2.0
Compare Source
Released 12/21/2020
Features:
before:run
andafter:run
events in the plugins file. See thebefore:run
andafter:run
docs for more information. Addressed in #14238 and #14263.before:spec
andafter:spec
events in the plugins file. See thebefore:spec
andafter:spec
docs for more information. Addressed in #9646 and #14178.Timed out retrying
error message now displays the amount of time Cypress retried. Addresses #5781.Bugfixes:
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.forceNetworkError
can now be awaited usingcy.intercept()
andcy.wait()
. Fixes #9062.cy.log()
inside.then()
no longer breaks the subject value in the command chain. Fixes #8084.Cypress.Commands.overwrite
to overwrite.then()
now preserves the properthis
context and sets aliases correctly. Fixes #5101.Cypress.Commands.overwrite
to overwritecy.route()
orcy.intercept()
and wait on its alias now properly works. Fixes #3890 and #9580.Misc:
scrollBehavior
is now an allowed type when passed as test configuration. Addresses #9643.FileObject
type for the file argument of thefile:preprocessor
event now includes theEventEmitter
type. Addresses #9276.Dependency Updates:
electron
from11.0.2
to11.0.3
. Addressed in #9409.v6.1.0
Compare Source
Released 12/07/2020
Features:
scrollBehavior
configuration option that controls the viewport position when an element is scrolled prior to action commands. Possible values are'top'
,'bottom'
,'center'
,'nearest'
, andfalse
, with'top'
being the default.scrollBehavior: false
disables scrolling altogether.scrollBehavior
can be specified in global configuration, test configuration or individual action commands viaoptions
. Addresses #871 and #4356.Bugfixes:
cy.intercept()
will now automatically setAccess-Control-Allow-Origin
andAccess-Control-Allow-Credentials
to permissive values unless explicitly overridden. Fixes #9264.Cannot read property "fireChangeEvent" of undefined
error will no longer throw during a race condition when usingcy.intercept()
. Cannot read property "fireChangeEvent" of undefined when stubbing with route2 in Chrome cypress-io/cypress#9170cy.intercept()
. Fixes #8934 and #8999.cy.intercept()
unless dynamically intercepted. Addressed in #9097.before()
hook. Fixes #9162./
from URLs when they are explicitly passed with query paramaters. Fixes #9360.Cypress.dom.isVisible
behavior for elements withposition: fixed
, addresses #8998 and #9031.Deprecations:
Deprecations still work as before but will be removed from Cypress in a future release. We encourage you to update your code now to remove uses of deprecations.
Cypress.moment
has been deprecated and will be replaced in a future release. Consider migrating to a different datetime formatter. Addresses #8714.Misc:
waitForAnimations
andanimationDistanceThreshold
types are now included for all actionable commands. Addresses #8854.Dependency Updates:
mocha-junit-reporter
from1.23.1
to2.0.0
. Addressed in #9528.v6.0.1
Compare Source
Released 11/30/2020
Bugfixes:
Option 'sourceMap' cannot be specified with option 'inlineSourceMap'
error to throw when settingsourceMap
in your tsconfig. Fixes #8477.cy.screenshot()
no longer throws an"offset" is out of range
error when Cypress attempts to crop the image. Fixes #2034.cy.screenshot()
types won't mistakenly display the command as deprecated. Fixes #9303.cy.intercept()
. Fixes #9313.v6.0.0
Compare Source
Released 11/23/2020
Summary:
Cypress now offers full network stubbing support with the introduction of the
cy.intercept()
command (previouslycy.route2()
). Withcy.intercept()
your tests can intercept, modify and wait on any type of HConfiguration
📅 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.