Update dependency cypress to v7 - autoclosed #184
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->7.7.0Release Notes
cypress-io/cypress
v7.7.0Compare Source
Released 07/07/2021
Features:
experimentalStudio, Cypress Studio can now copy all commands generated to your clipboard. Addressed in #16912.Bugfixes:
preventScrolloptions passed toelement.focus()calls within the application under test. Fixes #15294..contains(0)will now show the zero in the Command Log. Fixes #1119.showedOnBoardingModalwhen runningcypress open. Fixes #17095..contains()now correctly allow for theincludeShadowDomoption. Fixes #17066.Misc:
v7.6.0Compare Source
Released 06/23/2021
Features:
.type()withCypress.Keyboard.defaults()or via test configuration. Addresses #566.cypress openhas been improved. Addressed in #15826.cy.intercept()(req) now has areq.queryproperty, which is a getter/setter for the query parameters on the request URL. Addresses #16327.ArrayBufferas a request / response body withcy.intercept(). Addresses #16722Bugfixes:
dev-server:startevent for component testing. Fixes #16860.cy.intercept()now correctly sets the response body as a string instead of an ArrayBuffer when it contains multi-byte characters. Fixes #16292.cy.intercept()won't corrupt certain binary responses. Fixes #16722.spawn UNKNOWNerrors when launching Cypress with code signing required by policy on Windows. Fixes #2543EPERMerrors when accessing the project directory instead of erroring. Fixes #16933.CyHttpMessages.BaseMessage.headersto support the value being an array of strings. Fixes #16734.Dependency Updates:
enquirerdependency. Fixes #16846.v7.5.0Compare 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:
hasBinaryinfinite recursive call. Fixes #16476.--config-fileoption 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:
listrwithlistr2. Addressed in #16663.v7.4.0Compare 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 usingRouteMatcherproperties besidesurlandmethod. 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.componentFolderandtestFilesvalues from returned from plugins in the component testing runner. Fixes #16424.projectRootwill now open in IDE and generate studio commands when saved. Fixes #16255.configin the plugins file will now display in alphabetical order. Fixes #16564.Dependency Updates:
dependency-treefrom7.0.2to8.1.0. Addressed in #16464.extract-zipfrom1.7.0to2.0.1. Fixes #6896v7.3.0Compare Source
Released 05/10/2021
Features:
testingType: 'component'via the newtestingTypeproperty. ThetestingTypewill default toe2e. Addresses #16302.cy.intercept()now accepts atimesoption in theRouteMatcher.timeswill 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), whereurlis a regular expression. Previously, this only worked ifurlwas a string. Addresses #16390.DEBUG=cypress:server:record:ci-infowill print commit information and CI provider information that's sent to the Dashboard as debug logs. Addresses #16236.CYPRESS_DOWNLOAD_USE_CAis specified. See "Using a custom CA" for more information. Addresses #8825.Bugfixes:
/__/whenlocation.hrefis set to a relative path within the call stack of an XHR event handler. Fixes #3975 and #7439._topor_parentso that it no longer redirects the parent frame. Fixes #1244.RangeError: Maximum call stack size exceeded at _deconstructPacketerror. Most commonly, this occurred when handling network errors withcy.request(). Fixes #15101.ERR_INVALID_ARG_TYPEtype 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.e2eandcomponentconfiguration values will now correctly show when previewing resolved configuration in the Test Runner. Fixes #16282.—quietflag, 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:
classnamesfrom2.2.6to2.3.1. Addressed in #8337.color-stringfrom1.5.4to1.5.5. Addressed in #16362.lodashfrom4.17.19to4.17.21. Addressed in #16406.registry-jsfrom1.13.0to1.15.0. Addressed in #16409.url-parsefrom1.4.7to1.5.0. Addressed in #16408.v7.2.0Compare Source
Released 04/26/2021
Features:
Performance:
Bugfixes:
ERR_INVALID_ARG_TYPEtype 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-ctno 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 thevalueattribute of button-like inputs with type button, submit, reset, image, radio, or checkbox. Fixes #15913.componentFolderoutside 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 runand when selecting Electron browser incypress openfrom89.0.4348.1to89.0.4328.0. This was done to address a performance regression introduced in 7.0.0. Addressed in #16113.systeminformationfrom5.3.1to5.6.4. Addressed in #15819.lolexwith@sinonjs/fake-timers. Addressed in #15595.v7.1.0Compare Source
Released 04/12/2021
Features:
before:spec,after:spec,before:run, andafter:runnow fire in interactive mode in addition to run mode. This requires theexperimentalInteractiveRunEventsflag to be enabled. Addressed in #15787.Bugfixes:
cypress.jsonis 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.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.0Released 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.8.0Compare 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.1Compare Source
Released 3/15/2021
Bugfixes:
scroll-behavior: smoothno longer fails Cypress's actionability check. Fixes #15453.projectIdwill be written correctly to thecypress.jsonfile on initial creation without an extra config object. Fixes #15497.v6.7.0Compare Source
Released 3/15/2021
Features:
experimentalRunEventsconfiguration flag has been removed. You can now listen tobefore:run,after:run,before:specandafter:specevents in the plugins file without needing theexperimentalRunEventsconfiguration option. See thebefore:run,after:run,before:specandafter:specdocs 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 downevent, fixes #8279.Misc:
Dependency Updates:
electronfrom11.2.3to11.3.0. Addressed in #15201.v6.6.0Compare Source
Released 2/18/2021
Features:
Dependency Updates:
ramdato version0.27.1. Addressed in #14958.v6.5.0Compare Source
Released 2/15/2021
Performance:
cypress openandcypress run. Addresses #15075.Bugfixes:
Cypress.ondid not support chaining. Addresses #14991..zipcould become corrupted and break the install process. Addresses #4595.Misc:
autoEndto the types forLogConfig. Addresses #9590.Dependency Updates:
electronto version11.2.3. Addresses #15056.v6.4.0Compare Source
Released 2/1/2021
Features:
delayMsoption forcy.intercept()has been renamed todelay.delayMswill 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.interceptwhere aliases set viareq.aliascontaining a period character would not work as expected. Addresses #14444.cy.interceptwould not work as expected. Addresses #14446 and #14511.Misc:
Dependency Updates:
recastto version0.20.4. Addresses #14623.registry-jsto version1.13.0. Addresses #14668.@cypress/get-windows-proxyto version1.6.2. Addresses #14711.systeminformationto version4.31.1. Addresses #14715.semantic-releaseto version17.2.3. Addresses #14713.electron to version11.2.1`. Addresses #14764.v6.3.0Compare Source
Released 1/19/2021
Features:
experimentalStudioattribute to your configuration,cypress.jsonby default. Address #73.downloadsFolderwhich is set tocypress/downloadsby default. ThedownloadsFolderwill be deleted before each run unlesstrashAssetsBeforeRunsis set tofalse. Addresses #949.Bugfixes:
.only, the error will now correctly display in the Command Log. Fixes #14455.--keyflag when followed by other CLI flags. Fixed #14593.afterEachhook. Fixes #9209.waitForAnimationsset tofalseno 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.valueon an undefined subject would throw an error. Fixes #14359.Misc:
Dependency Updates:
node-sasswithsass. Addressed in #14415.debugfrom4.1.1to4.3.1. Addressed in #14583.electronfrom11.0.3to11.2.0. Addressed in #14567.electron-builderfrom22.8.0to22.9.1. Addressed in #14493.shell-envfrom3.0.0to3.0.1. Addressed in #14622.uuidfrom8.2.0to8.3.2. Addressed in #14170.v6.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.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.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](https://on.cypress.io/intConfiguration
📅 Schedule: "every weekend" in timezone America/New_York.
🚦 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.