Update dependency cypress to v5 - autoclosed #141
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.6.0Release Notes
cypress-io/cypress
v5.6.0Compare Source
Released 11/09/2020
Features:
cy.route2(). See an example. Addresses #387.cy.type(). You can now type shortcuts like{ctrl+z}. Addressed in #5694.Bugfixes:
cy.visit()on sites withcontent-typeoftext-htmlfollowed by parameters (liketext/html;charset=utf-8) will no longer throw an error about visiting a site with an invalid content-type. Fixes #8506Cannot access 'continueSent' before initializationerror will no longer throw when usingcy.route2(). Fixes #8926.cy.route2()should now work properly. Addressed in #9059.cy.route2()requests are displayed in the Command Log has been improved, including showing the progress bar correctly. Addresses #9053.Cannot read property 'replace' of undefinederror will no longer throw when attempting to generate the stack trace from an error thrown in the application. Fixes #7915.fixture:prefix as a stubbed response tocy.route(), JSON fixtures containing only a number or boolean will no longer throw an error. Fixes #4899.Misc:
.invoke()and.its()now allow for atimeoutoption. Addresses #9079.cy.task()now allow for parameterizing the task return type. Addresses #7136.cypress cache listwhen no cached versions are found. Addresses #6303.Dependency Updates:
commanderfrom^4.1.1to^5.1.0. Addressed in #8979.semverfrom6.3.0to7.3.2. Addressed in #9068.systeminformationfrom4.26.9to4.27.11. Addressed in #8979.node-webkit-updater. This should remove some security warnings that were shown during install. Addresses #8314.v5.5.0Compare Source
Released 10/26/2020
Features:
cy.viewport()has a newmacbook-16preset. Addresses #8889..type()now fires thebeforeInputevent during typing. Note: Firefox does not support thebeforeinputevent. Addresses #7088.Bugfixes:
cy.route2where 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.experimentalNetworkStubbingis 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 astatusproperty in the results matching the correct CLI types ("failed"or"finished"). Addresses #8799.echaracter is passed to the--ci-build-idflag, Cypress now properly reads it as a string. Fixes #8874.Misc:
runModeoropenModetoretriesalone. Addresses #8869.Dependency Updates:
electronfrom10.1.3to10.1.5. Addresses #8927, #8975.color-stringfrom1.5.3to1.5.4. Addresses #8945.pretty-bytesfrom^5.3.0to^5.4.1. Addresses #8964.v5.4.0Compare Source
Released 10/14/2020
Features:
cypress cache pruneto delete all installed Cypress versions from the cache except for the currently-installed version. Addresses #5972.--sizeoption for thecypress cache listcommand that prints the sizes of the Cypress cache folders. Addresses #6404.--browserflag, 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-se2presets. Addressed in #8624CYPRESS_NO_COMMAND_LOG=1environment variable duringcypress openorcypress runto be used as a tool to debug performance issues. Addressed in #8689.Bugfixes:
chromeWebSecurityoption had no effect in Electron. Fixes #8399.test:after:runevent 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 whenbaseUrlhas 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 runand when selecting Electron browser incypress openfrom83to85. Addressed in #8406.12.14.1to12.16.3. Addressed in #8406.electronfrom9.2.1to10.1.3. Addressed in #8406.firefox-profilefrom2.0.0to4.0.0. Addressed in #8786.node-forgefrom0.9.0to0.10.0. Addressed in #8800.v5.3.0Compare Source
Released 9/28/2020
Features:
firefoxGcIntervalworkaround. The desktop GUI will display a warning if such versions are used.Bugfixes:
cy.route2would not automatically JSONify an empty array handler. Addresses #8532.cy.waiton acy.route2alias would not always have aresponseproperty. Addresses #8536.cy.route2routes would not be able to intercept requests to HTTPS destinations on a different origin. Addresses #8487.undefinedafter certain assertion failures. Addresses #5763.cy.taskwith no arguments passed would receivenullas the first argument instead ofundefined. Addresses #5913.cy.visit()s to a relative URL containing..would not work. Addresses #5090.cy.setCookiefailed when given a cookie name with a__Host-prefix. Addresses #8261.Errorobject. Addresses #7870.Misc:
Content-Security-Policy-Report-Onlyheader the same way that it does forContent-Security-Policy. Addresses #7936.statusproperty toCypressRunResultobjects. Addresses #8580.CYPRESS_INSTALL_BINARYnow takes precedence over npm config. Addresses #8488.v5.2.0Compare Source
Released 9/15/2020
Features:
includeShadowDomfor enabling shadow DOM querying globally, per-suite, per-test, or programmatically. Addresses #8442.followRedirectoption to request interception withcy.route2(), allowing redirects to be followed before continuing to response interception. Addresses #7967.delayMsandthrottleKbpswhen stubbing static responses withcy.route2(). Addresses #7661.CYPRESS_BINARY_INSTALLenvironment 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 acontenteditableelement. Addresses #8465.cy.type()now fires aKeyboardEventevent instead of anEventevent. Addresses #6125 and #5650.cy.getCookie()would be called twice. Addresses #6672.Documentation Changes:
cy.route2(). Addresses #8489.cy.route2(). Addresses #8468.Misc:
experimentalShadowDomSupportconfiguration 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(), addingPromiseto the list of allowed return types. Addresses #7807.v5.1.0Compare Source
Released 9/1/2020
Features:
experimentalNetworkStubbingenabled, thecy.route2command is available.XMLHttpRequests,fetchrequests, beacons, and subresources (like iframes and scripts).cy.trigger()now accepts aneventConstructoroption for specifying the constructor with which to create the event to trigger. Addresses #5650.Bugfixes:
retriestoTestOptionstypes. Addresses #8405.specTypefield onCypress.spec. Addresses #8256.noproxyis set, unexpected behavior could occur. Addresses #8287..mjsfiles. Addresses #8361..shouldwith only chainer assertions will now throw an error. Addresses #883.cy.trigger()now includes theviewproperty in the event object when appropriate. Addresses #3686.Dependency Updates:
iconv-liteto version0.6.2. Addresses #8387.command-existsto version1.2.9. Addresses #8388.electronto version9.2.1. Addresses #8436.v5.0.0Compare 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-retriesplugin has been deprecated in favor of test retries built into Cypress. Addresses #1313.Cypress.Cookies.defaults()whitelistoption has been renamed topreserveto more closely reflect its behavior. Addressed in #7782.blacklistHostsconfiguration has been renamed toblockHoststo more closely reflect its behavior. Addressed in #7622.cy.server()whitelistoption has been renamed toignoreto more closely reflect its behavior. Addresses #6642.libgbm-devis now a requirement to run Cypress on Linux. Addressed in #7791.cy.setCookie(),cy.getCookie(), andcy.getCookies()will now contain thesameSiteproperty if specified. Addresses #6892.experimentalGetCookiesSameSiteconfiguration flag has been removed, since this behavior is now the default. Addresses #6892.Cypress.BlobmethodsarrayBufferToBlob,base64StringToBlob,binaryStringToBlob, anddataURLToBlobhave 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.esModuleInteropoption is no longer coerced totrue. If you need to utilizeesModuleInterop, set it in yourtsconfig.json. Addresses #7575.__dirnameand__filenameno longer include leading slashes. Addressed in #7982.Features:
retriesconfiguration option to configure the number of times to retry a failing test. Addresses #1313..click(),.dblclick(), and.rightclick()now accept optionsaltKey,ctrlKey,metaKey, andshiftKeyto 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 undefinedwill no longer incorrectly throw when rerunning tests in the Test Runner. Fixes #7874 and #8193.Cannot read property 'isAttached' of undefinederror duringcypress runon Firefox versions >= 75. Fixes #6813.Maximum call stack size exceededwill no longer throw when callingscrollIntoViewon an element in the shadow dom. Fixes #7986.display: inlinewill no longer be considered hidden if it has child elements within it that are visible. Fixes #6183.experimentalShadowDomSupportis 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.afterEachorbeforeEachhook after the hook has already passed. Fixes #3744.cy.screenshot()onAfterScreenshotoption as a unique screenshot. Fixes #8079.cypress openif a non-default-channel browser was selected. Fixes #8281.tsconfig.jsonwill now be loaded and used to configure TypeScript compilation of spec and support files. Fixes #7006 and #7503.reporterStatsnow correctly show the number of passed and failed tests when a test passes but theafterEachfails. Fixes #7730.Documentation Changes:
Misc:
Windowobject returned fromcy.window()is now correct. Addresses #7856.ApplicationWindowcan now be extended. Addresses #7856.reporterOptionshas been added. Addresses #7877.Dependency Updates
80to83. Addressed in #7791.12.8.1to12.14.1. Addressed in #7791.chalkfrom2.4.2to4.1.0. Addressed in #7650.cli-table3from0.5.1to0.6.0. Addressed in #7650.electronfrom8.3.1to9.2.0. Addressed in #7791 and #8235.execafrom1.0.0to4.0.2. Addressed in #7650.expressfrom4.16.4to4.17.1. Addressed in #8179.fs-extrafrom8.1.0to9.0.1. Addressed in #7650.log-symbolsfrom3.0.0to4.0.0. Addressed in #7650.tmpfrom0.1.0to0.2.1. Addressed in #7650.v4.12.1Compare Source
Released 8/5/2020
Bugfixes:
Cannot set property 'err' of undefinedwill no longer incorrectly throw when rerunning tests in the Test Runner. Fixes #7874.beforehook will now correctly run the tests in the suite following the skipped test. Fixes #8086.Dependency Updates:
md5from2.2.1to2.3.0. Addressed in #8161.electron-context-menufrom0.15.1to2.2.0. Addressed in #8180.v4.12.0Compare Source
Released 8/3/2020
Features:
cypress runby setting screenshotOnRunFailure in your configuration. Addresses #5029.pluginsFilenow has access to a readonlyversionproperty within theconfigobject 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: fixedelements that have a parent withpointer-events: nonewill now correctly evaluate as visible. Fixes #6675.attributeChangedCallbackto be triggered on custom elements. Fixes #7187.+characters now properly run in Cypress. Fixes #5909.fxshortcut incy.route(), an error is now thrown when the fixture file cannot be found. Fixes #7818.Cannot read property '__error' of nullerror when passing a file containingnullcontent tocy.fixture(). Fixes #8010.--envvia the command line are now properly read. Fixes #6891.experimentalSourceRewritingis 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:
cypressnpm package are no longer pinned to a specific version. This allows the use ofnpm audit fixto fix security vulnerabilities without needing a patch release from Cypress. Addresses #8046.CypressCommandLinenamespace. Addresses #7309..should()command. Addresses #5573.expiryproperty type is now a Number instead of a String. Addresses #8144.Dependency Updates:
jimpfrom0.13.0to0.14.0. Addressed in #8102.momentfrom2.26.0to2.27.0. Addressed in #8122.v4.11.0Compare Source
Released 7/21/2020
Features:
ensureScrollability: falseoption 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 runon Windows will no longer fail trying to make a connection to the browser. Fixes #6392.Cannot read property 'isAttached' of undefinederror duringcypress runon Firefox versions >= 75. Fixes #6813.invalid for option "size"error. Fixes #6099.viewportHeightorviewportWidthfrom within the test configuration now properly changes the viewport size for the duration of the suite or test.configwithin thepluginsFilenow sets the values correctly. Fixes #7959.cy.wait()now reflects the correctrequestTimeoutandresponseTimeoutof the command. Fixes #7881.ELECTRON_EXTRA_LAUNCH_ARGSaskey=valuewill 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:
pluginsFileandsupportFilenow mention that.tsextensions are supported. Addresses #7940.Dependency Updates:
@benmalka/foxdriverfrom0.4.0to0.4.1. Addressed in #8040.firefox-profilefrom1.3.1to2.0.0. Addressed in #8000.fix-pathfrom2.1.0to3.0.0. Addressed in #8028.human-intervalfrom0.1.6to1.0.0. Addressed in #8031.lodashfrom4.17.15to4.17.19. Addressed in #7954.plistfrom2.1.0to3.0.1. Addressed in #8045.proxy-from-envfrom1.0.0to1.1.0. Addressed in #7900.resolvefrom1.13.1to1.17.0. Addressed in #7989.systeminformationfrom4.21.1to4.26.9. Addressed in #7975.uuidfrom3.3.2to8.2.0. Addressed in #7976, #8002, and #8011.v4.10.0Compare Source
Released 7/7/2020
Features:
before,beforeEach,after, andafterEachhook definition in your IDE from the Test Runner's Command Log by clicking the Open in IDE button. Addresses #7793.before,beforeEach,after, andafterEachhook definitions now display separately in the Test Runner's Command Log when defined in separate hook definitions. Addresses #7779.Bugfixes:
responseTimeoutwill no longer be prematurely canceled by the Cypress proxy layer. Fixes #6426.parentvariable will no longer throw Illegal Invocation errors. Fixes #6412.experimentalShadowDomSupportis enabled, using.type()on an input in the Shadow DOM will not result in an error. Fixes #7741.experimentalShadowDomSupportis 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/foxdrivermodule will no longer appear if anyDEBUGenvironment variable was set. Fixed #7723.Misc:
Dependency Updates:
recastfrom0.18.8to0.19.1. Addressed in #7898.v4.9.0Compare Source
Released 6/23/2020
Features:
experimentalFetchPolyfillconfiguration option. When this option istrue, Cypress will automatically replacewindow.fetchwith a polyfill that Cypress can spy on and stub. Addresses #7710.--quietflag tocypress runto 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 andexperimentalShadowDomSupportwas not enabled. Fixes #7679..should('have.value')now properly asserts against<progress>,<meter>or<li>element's values. Fixes #7603.cypress runwhen the stdout is too large. Fixes #7548.beforeEachhook. Fixes #7731.experimentalShadowDomSupportis enabled, querying shadow dom in certain situations will no longer cause the errorCannot read property 'length' of undefinedduringcypress run. Fixes #7676.cypress runwill no longer crash when provided an empty string to the--projectflag. Fixes #7743.Misc:
fixturesFolder,pluginsFile,screenshotsFoldersandvideoCompressionhave been updated to allowfalseTypeScript types. Addresses #7654.cy.wait(ms)now correctly yield the type of the previous subject. Addresses #7682.Dependency Updates:
archfrom2.1.1to2.1.2. Addressed in #7672.eventemitter2from4.1.2to6.4.2. Addressed in #7705 and #7707.getosfrom3.1.1to3.2.1. Addressed in #7685.is-installed-globallyfrom0.1.0to0.3.2. Addressed in #7703.jimpfrom0.12.0to0.13.0. Addressed in #7618.momentfrom2.24.0to2.26.0. Addressed in #7718.signal-exitfrom3.0.2to3.0.3. Addressed in #7738.v4.8.0Compare 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.experimentalShadowDomSupportoption. See the Experiments page for more information. Addresses #144.Bugfixes:
beforeandafterhooks defined in completed suites no longer erroneously rerun. Fixes #1987.afterhooks 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.wasmFixes #7481.pluginsFileorsupportFilewhen 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 thetimeoutoption. It also better handles situations when passed a promise that never resolves. Fixes #5980.experimentalComponentTestingis enabled, Cypress will no longer exit with SIGABRT in certain situations. Fixes #7572.Renovate configuration
📅 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.