chore(deps): update dependency @cypress/react to v9 #325
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:
5.12.5->9.0.1Release Notes
cypress-io/cypress (@cypress/react)
v9.0.1Compare Source
v9.0.0: 9.0.0Compare Source
Released 11/10/2021
Breaking Changes:
nodeVersionconfiguration option now defaults tosystem. The behaviorof the
systemoption has changed to always use the Node.js binary/versionthat launched Cypress. If Cypress was not launched via the terminal, Cypress
will use the
bundledNode.js version. This could change the behavior of codewithin your
pluginsFilesince it may be run in yoursystemNode.jsversion. Addresses
#18684.
#17962.
Cypress.config.Previously invalid values were ignored and could cause unexpected behavior.
Addresses #18589.
cy.contains()no longer yields the<body>element when it matches thecontent of
<script>or<style>tags. Addresses#14861.
Cypress.Commands.add()will now throw an error, indicating thatCypress.Commands.overwrite()should be used instead to overwrite thebehavior of existing commands. Addresses
#18572.
chainables. Addresses
#17496.
14.17.0to16.5.0. Thiscould change the behavior of code within the
pluginsFilewhen using thebundled Node.js version of Cypress. Addressed in
#18317.
Deprecations:
nodeVersionconfiguration option has been deprecated and will be removedin a future release.
Features:
nullis passed as the encoding tocy.readFile()orcy.fixture(),the file is treated as binary and read as a Buffer. Similarly,
nullpassedas the encoding to
cy.writeFile()allows direct writing of buffers. If theencoding is unspecified, the default remains
utf8, matching the currentbehavior. Addresses
#18534.
Bugfixes:
scrolled to during action commands. Fixes
#4233.
document.referrerwill now correctly reflect the correct value from theapplication under test after
cy.visit(). Fixes#4295.
Dependencies:
cypress runand when selectingElectron browser in
cypress openfrom91to94. Addressed in#15292.
14.17.0to16.5.0. Addressed in#15292.
electronfrom14.1.0to15.2.0. Addressed in#15292.
v8.0.2Compare Source
v8.0.1Compare Source
v8.0.0: 8.0.0Compare Source
Released 07/19/2021
Summary:
We've made some updates to ensure a consistent run experience across browsers.
Now all browsers run via
cypress runrun headlessly, with a device pixel ratioof 1, and a screen size of 1280x720 by default.
Breaking Changes:
Please read our
Migration Guide which explains the changes
in more detail and how to change your code to migrate to Cypress 8.0.
cypress runprevious to 8.0, some browsers would launch headedwhile others were launched headless by default. Cypress now runs all browsers
during
cypress runas headless by default. Addresses#16832.
to 1280x720 pixels (pre 7.0 behavior). Addresses
#16853.
--headlessChrome browser viacypress run, the devicepixel ratio will now be 1 by default, matching the behavior of all other
browsers. This behavior can be overridden through the
browser launch API.
Addresses #17375.
during
cypress runand not allow opening the browser incypress openwhenattempting to open unsupported browser versions. Cypress supports Chrome >=
64, Firefox >= 86, and Edge >= 79. Addressed in
#17355.
type
jQueryand instead have ananytype. Fixes#16669.
Cypress.ConfigOptions,Cypress.ResolvedConfigOptionsandCypress.RuntimeConfigOptiontypes have been updated so thatConfigOptionsmatch the JSON schema. Addressed in
#17251.
Features:
use within tests on a per-URL basis via a
clientCertificatesconfigurationoption. See Client certificates for
more detail.
ELECTRON_RUN_AS_NODEnow starts Cypress asa normal Node.js process rather than an Electron process. See
Running headless tests without Xvfb
for more details. Addresses
#16505.
Bugfixes:
console.logandconsole.errorcalled within theplugins file
will now be captured in the
stdoutsent to the Cypress Dashboard, making itvisible in Output logs in the Dashboard. Fixes
#7434.
cy.intercept()including:
timesoption now works correctly withreq.continue. Fixes#16821.
localhostis now accepted as a validhostnamein theRouteMatcher.Fixes #17015.
delaynow works correctly with astatusCodeof 204. Fixes#15188.
Cypress Studio, there should be a
reduced occurrence of "Studio failed to save commands" error messages. Fixes
#14767.
cy.invoke()now retains the properthiscontext onnested object methods. Fixes
#3871.
Command Log. Fixes
#17257.
v7.0.3Compare Source
v7.0.2Compare Source
v7.0.1: 7.0.1Compare Source
Released 04/07/2021
Bugfixes:
Enter. Addressed in #15833.--ipc=host. Fixes #15814 and #350.stderrin production builds of Cypress. Addressed in #15817.stdoutwhen the video cannot be found after a run. Addressed in #15828.tsconfig.jsonfile present. Addressed in #15828.Misc:
v7.0.0: 7.0.0Compare Source
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 aStaticResponsetocy.intercept()will now be JSONified and sent as the body. Previously, an empty string was sent instead. Addresses #15234 and #14205.matchUrlAgainstPathRouteMatcherproperty 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.delayoption for StaticResponses used withcy.intercept()has been removed. Please go back to using thedelayMSoption. 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 openorcypress run. Now, they need to be executed by runningcypress open-ctorcypress run-ct. Addressed in #15701.experimentalComponentTestingmust be removed from yoru configuration file,cypress.jsonby default, or it will throw an error. Addressed in #15701.file:preprocessorevent is no longer used to compile component tests. Now, adev-server:startevent must be registered.window.onerror. Addresses #8802.uncaught:exceptionevent with the promise as the third argument. Addresses #243.redirectionLimitconfig. Addresses #14445.contextIsolationby default in the Electron browser. You can override this option if needed within thebefore:browser:launchAPI. 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.3to14.16.0. This could change the behavior of code within thepluginsFilewhen 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.sendis called or until there are no more response handlers.middleware, has been added to theRouteMatchertype. 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).routeMatcherwill be merged withurl, and the handler is required.cy.visit()can now visit pages withapplication/xhtml*content-type. Addresses #15738.componenttests versuse2etests. Addressed in #15526.ctrl/cmd + f) to search spec files in the Test Runner based on your OS. Addresses #6229.cy.tick()now accepts alogoption. Addresses #15180.keep-aliveheader to all proxy responses. Addressed in #15292NODE_OPTIONS. Addressed in #15292Bugfixes:
response.bodyofcy.intercept()is now correct after stubbing a response usingres.send({ fixture })in areq.continuecallback or abefore:responseorresponsehandler. 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 styleare gone from the console inopen-ctduring Component Testing. Addressed in #15661.@cypress/vue. Addressed in #15275.Misc:
set-cookieallowstring[], 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 runand when selecting Electron browser incypress openfrom87to89. Addressed in #15292.12.18.3to14.16.0. Addressed in #15292.electronfrom11.3.0to12.0.0. Addressed in #15292.v6.2.1: 6.2.1Compare Source
Released 1/4/2021
Bugfixes:
cypress run. Fixes #9040.multipart/form-datais no longer wrongly encoded when usingcy.intercept(). This should preventUnexpected end of multipart dataerrors 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 ofundefinedsometimes. Fixes #14278.calledOnceWithandcalledOnceWithExactlysinon matchers no longer throw an error when used within Cypress. Fixes #9644.--disable-backgrounding-occluded-windowsas a default flag to Chrome to prevent backgrounding rendering when the Cypress window is occluded. Fixes #9604.Misc:
Dependency Updates:
devtools-protocolfrom0.0.734984to0.0.839267. Addressed in #14353.electronfrom11.0.3to11.1.1. Addressed in #14352.v6.2.0: 6.2.0Compare Source
Released 12/21/2020
Features:
before:runandafter:runevents in the plugins file. See thebefore:runandafter:rundocs for more information. Addressed in #14238 and #14263.before:specandafter:specevents in the plugins file. See thebefore:specandafter:specdocs for more information. Addressed in #9646 and #14178.Timed out retryingerror 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 (HTTPOPTIONSrequests) that match defined routes. Fixes #9599.forceNetworkErrorcan 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.overwriteto overwrite.then()now preserves the properthiscontext and sets aliases correctly. Fixes #5101.Cypress.Commands.overwriteto overwritecy.route()orcy.intercept()and wait on its alias now properly works. Fixes #3890 and #9580.Misc:
scrollBehavioris now an allowed type when passed as test configuration. Addresses #9643.FileObjecttype for the file argument of thefile:preprocessorevent now includes theEventEmittertype. Addresses #9276.Dependency Updates:
electronfrom11.0.2to11.0.3. Addressed in #9409.v6.1.1Compare Source
v6.1.0: 6.1.0Compare Source
Released 12/07/2020
Features:
scrollBehaviorconfiguration 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: falsedisables scrolling altogether.scrollBehaviorcan 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-OriginandAccess-Control-Allow-Credentialsto permissive values unless explicitly overridden. Fixes #9264.Cannot read property "fireChangeEvent" of undefinederror will no longer throw during a race condition when usingcy.intercept(). #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.isVisiblebehavior 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.momenthas been deprecated and will be replaced in a future release. Consider migrating to a different datetime formatter. Addresses #8714.Misc:
waitForAnimationsandanimationDistanceThresholdtypes are now included for all actionable commands. Addresses #8854.Dependency Updates:
mocha-junit-reporterfrom1.23.1to2.0.0. Addressed in #9528.v6.0.0: 6.0.0Compare 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 HTTP request originating from your app.Breaking Changes:
Please read our Migration Guide which explains the changes in more detail and how to change your code to migrate to Cypress 6.0.
not.exist). Assertions such asnot.visible,not.contains,not.have.class, etc will now fail when used on non-existent DOM elements. Addresses #205.opacity: 0are no longer considered visible. However these are still considered actionable and "any action commands" interacting-with-elements#Actionability used to interact with the element will perform the action. This matches browser's implementation on how they regard elements withopacity: 0. Addresses #4474.cy.wait(alias)has changed in order to support use ofcy.intercept(). Addressed in #9266.experimentalNetworkStubbingoption has been removed and made the default behavior. You can safely removed this configuration option. Addressed in #9185..type()and.click()on elements inside acontenteditableelement, the events are now properly triggered on the inside elements. This may cause unintended consequences if you were relying on the previous behavior. Addressed in #9066.http.STATUS_CODES. If you have code that relies on a reason phrase, then this could affect you. Addressed in #8969.cy.intercept()are now automatically parsed, removing the need to manually doJSON.parse. Addressed in #9280.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.
cy.server()andcy.route()have been deprecated. In a future release, support forcy.server()andcy.route()will be moved to a plugin. We encourage you to usecy.intercept()instead. Addressed in #9185.experimentalFetchPolyfillhas been deprecated. We encourage you to usecy.intercept()to intercept requests using the Fetch API instead.cy.route2()was renamed tocy.intercept(). We encourage you to update usages ofcy.route2()to usecy.intercept(). Addressed in #9182.Features:
cy.intercept()command can be used to manage the behavior of HTTP requests at the network layer. Addressed in #9182.—disable-dev-shm-usageto the Chrome browser flags by default. This will write shared memory files into/tmpinstead of/dev/shm. If you're passing this flag in yourpluginsfile, you can now remove this code. Addresses #5336.cypress versioncommand now also displays the current Electron and bundled Node versions. Addresses #9180.cypress versioncommand now accepts a--componentflag that allows you to print the version of specific components of Cypress. ie Electron, Node, etc. Addresses #9214.Bugfixes:
.type()to not type the entire string when focus was called away from the target element. Fixes #9254..type()and.click()now properly work on elements inside acontenteditableelement. Fixes #2717 and #7721.Content-Lengthforcy.route2request bodies could be incorrectly recalculated. Fixes #9166.Documentation Changes:
cy.intercept()in place ofcy.route()including our Network Requests doc.Misc:
redirectsand changedredirectedToUrloptional for Response types. Addresses #9275.Dependency Updates
cypress runand when selecting Electron browser incypress openfrom85to87. Addressed in #9222.12.16.3to12.18.3. Addressed in #9222.electronfrom10.1.5to11.0.2. Addressed in #9222.Configuration
📅 Schedule: Branch creation - At any time (no schedule defined), 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 was generated by Mend Renovate. View the repository job log.