This repository was archived by the owner on Apr 28, 2023. It is now read-only.
chore(deps): update dependency cypress to v4 #142
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->4.12.1Release Notes
cypress-io/cypress
v4.12.1: 4.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.0: 4.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.0: 4.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.0: 4.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.0: 4.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.0: 4.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.Sshortcut 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 thetaskTimeoutoption. Addresses #7531.cy.screenshot()options andCypress.log()have been updated to be more accurate. Addresses #7445.Cypress.automationhave been added. Addresses #7519.--browserflag that is not supported by Cypress. Addresses #6979.Dependency Updates:
chrome-remote-interfacefrom0.28.1to0.28.2. Addressed in #7615.electronfrom8.3.0to8.3.1. Addressed in #7599.v4.7.0: 4.7.0Compare Source
Released 5/26/2020
Features:
cy.request()now supports anencodingoption that can be used to set the encoding of the response body, defaulting toutf-8. Addresses #2029 and #3576.Bugfixes:
Misc:
v4.6.0: 4.6.0Compare Source
Released 5/20/2020
Features:
@cypress/webpack-preprocessorshould upgrade to v5.4.1 or later of the package which will correctly inline source maps. Addresses #881, #1761 and #3966.experimentalSourceRewritingconfiguration option totrue. Addresses #5273.have.text,have.id,have.data,have.value, andhave.attrassertions chainers are now automatically cast to strings for comparison. Addresses #7314.Bugfixes:
module: commonJSwhich Node.js and the browser expect. This fixes a situation where setting a different module in atsconfig.jsonwould cause errors to throw if you hadexport,importorasynckeywords in your code. Fixes #7005, #7011, #7043, and #7151.experimentalSourceRewritingis enabled, settinglocationorlocation.hrefto a relative href, or usinglocation.replaceorlocation.assignwith a relative href will no longer navigate the AUT to the wrong URL. Fixes #3975 and #3994.experimentalSourceRewritingis enabled, the use ofwindow.topandwindow.parentwill no longer cause the AUT to break out of the Cypress iframe. Fixes #5271 and #1467.experimentalSourceRewritingis enabled, calls towindow.frames,window.parent.frames, and otherframeswill no longer point to the wrong reference after being proxied through Cypress. Fixes #2664.experimentalSourceRewritingis enabled, scripts using theintegrityattribute for sub-resource integrity (SRI) will now load after being proxied through Cypress. Fixes #2393.experimentalSourceRewritingis enabled, the use ofdocument.locationto set the URL will no longer navigate the AUT to the wrong URL. Fixes #7402..clickwill now click in the correct coordinates when either x or y coordinate options are zero. Fixes #7319.onError is not a functionwhen a browser can't connect. Fixes #7217.force: trueoption to.select()to select options within a disabled<select>. Addresses #107..select()an<option>within a disabled<optgroup>. Fixes #7226.Cypress._.capitalizenow correctly behaves the same as Lodash's capitalize method. Fixes #7222.experimentalComponentTestingis 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:
--versioncommand when looking for available browsers from 5 seconds to 30 seconds. Addressed in #7366.Cypress.ConfigOptionstypes as a partial of the full options interface. Addresses #7238.Dependency Updates:
@cypress/browserify-preprocessorfrom2.2.2to2.2.3. Addressed in #7291.cookie-parserfrom1.4.4to1.4.5. Addressed in #7389.cypress-multi-reportersfrom1.2.4to1.4.0. Addressed in #7431.electronfrom8.2.3to8.3.0. Addressed in #7236 and #7387.image-sizefrom0.7.4to0.8.3. Addressed in #7236.jimpfrom0.9.3to0.12.0. Addressed in #7408.return-deep-difffrom0.3.0to0.4.0. Addressed in #7292.v4.5.0: 4.5.0Compare Source
Released 4/28/2020
Features:
experimentalComponentTestingconfiguration option totrue. For more details see the cypress-react-unit-test and cypress-vue-unit-test repos. Addresses #5922 and #6968.Bugfixes:
modifyObstructiveCodeistrue. Fixes #7138.Misc:
yarn upgradeCypress instead ofyarn addto help prevent installing 2 versions of Cypress when using yarn workspaces. Addressed in #7101.Dependency Updates:
electronfrom8.2.0to8.2.3. Addressed in #7079.v4.4.1: 4.4.1Compare Source
Released 4/20/2020
Bugfixes:
mouseupevent's target element is detached before issuing theclickevent during.click(). Fixes #6923.undefinedorganization ID during project setup when the default organization is preselected. Fixes #7013.Feature-Policy: document-domain 'none'headers would fail to load in Cypress. Fixes #6480.Misc:
nullorundefined. Addresses #6126.v4.4.0: 4.4.0Compare Source
Released 4/13/2020
Features:
Bugfixes:
This socket has been ended by the other partyerror when testing applications that make use of WebSockets. Fixes #6458.optionsobject passed into Cypress commands so that they're not mutated and receive the properoptions. Fixes #3171.Set-Cookievalues could cause requests to fail with acannot read property key of undefinederror. Now, invalidSet-Cookievalues will be ignored. Fixes #6890.Misc:
cypress --version,cypress version,cypress cache path, orcypress cache listcommands when npm log level issilentorwarn. Addresses #2705.cy.task()error message is now more specific about the promise resolution value required. Addresses #6241.Dependency Updates:
http-proxyfrom1.17.0to1.18.0. Addressed in #6934.v4.3.0: 4.3.0Compare Source
Released 3/30/2020
Features:
sameSitevalues viacy.setCookie(). Addresses #2437.sameSitevalues to the objects yielded fromcy.setCookie(),cy.getCookie(), andcy.getCookies(). Users can enable this by setting theexperimentalGetCookiesSameSiteconfiguration value totrue. In Cypress 5, this will be the default. Addresses #2437.SameSitecookie attribute incy.request(),cy.visit(), and proxied HTTP requests. Addresses #6757..should()) and fails, it now shows the diff in thestdout. Addresses #6722.Bugfixes:
Parse Error: Invalid header value charorParse Error: Header overflow. Fixes #5602.foo=bar; Domain=.cypress.testwill now be sent during cy.request() tohttp://local.cypress.test. Fixes #6628.vue-fragmentelements no longer throw an unexpected error. Fixes #6745..onlythat throw an error. Fixes #6744.firefoxGcIntervalcan now correctly be set tonull. Fixes #6825.Misc:
tagproperty when using Module API. Addresses #6795.Dependency Updates
cypress runand when selecting Electron browser incypress openfrom80.0.3987.141to80.0.3987.158. Addressed in #6855.electronfrom8.1.1to8.2.0. This bumps the bundled Chromium to80.0.3987.158. Addressed in #6855.@benmalka/foxdriverfrom0.2.3to0.3.0. Addressed in #6592.@cypress/get-windows-proxyfrom1.6.0to1.6.1. Addressed in #6823.execafrom1.0.0to4.0.0. Addressed in #6013.extract-zipfrom1.6.7to1.7.0. Addresses #6845 in #6845.firefox-profilefrom1.3.0to1.3.1. Addressed in #6594.get-portfrom5.1.0to5.1.1. Addressed in #6854.mimefrom1.6.0to2.4.4. Addressed in #6764.minimistfrom1.2.2to1.2.5. Addressed in #6747.squirrellyfrom7.7.0to7.9.2. Addressed in #6735.v4.2.0: 4.2.0Compare Source
Released 3/16/2020
Features:
--headedmode. Addresses #1767.cypress cache listnow prints the last time the cached binary was accessed for each version present. Addresses #6682.Bugfixes:
&or%characters now correctly run instead of erroring. Fixes #4210.cypress openwhen there was an exception if thrown in anafterhook. Fixes #6619.cypress verifyno longer incorrectly prints messaging about this being the first time using that Cypress version. Fixes #6607.DEBUGlogs are enabled. Fixes #6662.Misc:
CYPRESS_INTERNAL_ENVto a non-production value. Addresses #6436.cypress:launcher, they now print a clearer log during browser detection for easier reading. Addresses #6700..click,.dblclick, and.rightclickcommand'spositionargument. Addresses #6341..its()and.invoke(). Addresses #6431.Cypress.dom.isDetachedno longer throws a type error in TypeScript projects. Addresses #4408.cy.clearLocalStorage({ log:false })no longer throws a type error in TypeScript projects. Addresses #6615.Cypress.sinon. Addresses #6720.Dependency Updates
cypress runand when selecting Electron browser incypress openfrom78to80. Addressed in #6555.electronfrom7.1.13to8.1.1. This bumps the bundled Chromium to 80.0.3987.141 and the bundled Node to 12.13.0. Addressed in #6555.@ffmpeg-installer/ffmpegfrom1.0.19to1.0.20. Addressed in #6686.minimistfrom1.2.0to1.2.2. Addressed in #6726.requestwithcypress-io/request. Addressed in #6679.v4.1.0: 4.1.0Compare Source
Released 2/28/2020
Features:
cypress infocommand to see the locally detected browsers and other information related to Cypress. Addresses #4540.baseUrlis running within the warning message duringcypress open. Addresses #3284.configargument now includesprojectRoot(absolute path to the root of the project) andconfigFile(absolute path to the configuration file). Addresses #5941.Bugfixes:
xhr.onreadystatechangeis accessed. Fixes #5864.cypress installwould not complete on Node.js 8.0.0. Fixes #6512 and #6568.cy.clearLocalStorage()" clearlocalstorage now properly accepts thelogoption to disable logging. Fixes #6342.Misc:
cy.$$has been updated to distinguish differences between it andCypress.$. "More info here" $#Cypress-vs-cy Addresses #2027.Configuration
📅 Schedule: Branch creation - "every weekend" in timezone America/New_York, 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 has been generated by Mend Renovate. View repository job log here.