[Snyk] Upgrade cypress from 3.5.0 to 3.6.0 #19
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.
Snyk has created this PR to upgrade
cypressfrom 3.5.0 to 3.6.0.Release notes
Released 10/31/2019
Features:
testFilesnow also accepts an Array of glob patterns when specifying what test files to load in configuration. Addresses #5401.Bugfixes:
cy.route()was limited to 8kb causing requests to fail with a 431 HTTP error. Fixes #5431.uncaught:exceptionhandler, and thus could not caught and ignored. These errors will also now correctly indicate that they came from application code. Fixes #987.cypress verifywhen running as a non-root user on a non-Windows machine. We now always set the--no-sandboxflag when verifying in Electron, even when running as a non-root user. Fixes #5434.cy.visit()orcy.request(). Fixes #5432.Cypress.env(). Fixes #5435..click()or.type()inside of an iframe element. Fixes #5449. Fixes #5435.position:fixed. Fixes #5430.clickevents to not be sent to the correct elements during.click(). Fixes #5459..type()to properly respect focus selection changes during typing. Fixes #5456..type(). Fixes #5439..type()to input elements with typedate,time, anddatetime-localso that it now behaves as it did prior to 3.5.0. Fixes #5476.Misc:
{multiple: true}in the Command Log or the console duringcy.dblclick(). Addresses #5406.Dependency Updates
express-handlebarswithsquirrellyto reduce dependency size. Addressed in #5521.graceful-fsfrom4.2.0to4.2.3. Addressed in #5497.Released 10/23/2019
Features:
cypress runin Chrome, Chromium, and Canary browsers. This requires passing the name or path of the Chrome browser to the--browserflag. Addresses #4608..rightclick()command to right click on DOM elements. Addresses #53.--config-fileargument to specify a different file to be used for Cypress configuration. You can also passfalseto the--config-fileto not use any configuration file. Addresses #1369.nodeVersiontosystemin your configuration. This Node version will be used to build files in yourintegrationFolderand "supportFile" configuration#Folders-Files and also be used to execute code in your "pluginsFile" configuration#Folders-Files. If not set, Cypress will continue to use the Node version bundled with Cypress. Addresses #4432..dblclick()dblclick now acceptsposition,x, andyarguments. Addresses #116..dblclick()dblclick now acceptsforceandmultiplein itsoptions. Addresses #116..screenshot()now accepts apaddingargument when screenshotting elements that will alter the dimensions of the screenshot of the element. Addresses #4440.cy.visit()now accepts aqsoption representing an object of query paramaters to be used in the URL. Addresses #5034.cy.viewport()now allows for viewport sizes up to 4,000 pixels. Addresses #5181.cy.viewport()accepts new size presets foriphone-xr,iphone-x,samsung-s10andsamsung-note9. Addresses #4967.~toCYPRESS_CACHE_FOLDERwill automatically resolve to the user's home directory. Addresses #5386.Bugfixes:
.dblclick()dblclick and.click()now fire all appropriate mouse events includingmouseover,mousemove,mouseout,pointerdown,pointerup, andpointermove. Fixes #1016, #1847, #2045, #2521, #2768, #2928, #2957, and #3224..dblclick()dblclick to follow the same actionability checks as.click(). Fixes #3798..click()are now correct if the element being clicked is within an iframe. Fixes #4347..type()to be used on any DOM element. The element will receive all of the type events. Fixes #2166 and #3661..type(), Cypress now continues typing into the newly focused element. Fixes #2240.maxLengthwhen using .type() on an input. Fixes #4587.datetime-localinputs would not have theirvalueupdated during.type(). Fixes #2613..type()now allows you to type-into number inputs with text selection. Fixes #4767.inputevent when using.type()typing{enter}inserts a newline. Fixes #4870.{shift}modifier keys are typed in.type(). Fixes #5424.codeproperty during keyboard events triggered during.type(). Fixes #3722screenXandscreenYproperties to events triggered using.trigger(). Fixes #3187.cy.visit()to IP addresses over HTTPS, leading toERR_SSL_VERSION_OR_CIPHER_MISMATCHerrors. Fixes #771.cy.visit()andcy.request()with a "handshake failed" error. Fixes #4394.cy.visit()that was introduced in 3.3.0. Fixes #4368.Cypress.env()now escapes<script>tags in the configuration file. Fixes #4952.content-typeapplication/vnd.api+jsonto JSON. Fixes #5165.cy.route()that exceed 80kb in size no longer fail with anERR_EMPTY_RESPONSEerror. Fixes #76.dest.enderrors on Windows machines. Fixes #2181.onFocusevent no longer incorrectly fires on hidden elements. This fixes an issue introduced in 3.3.2. Fixes #4898..click()on inputs or textareas that arereadonly. This fixes an issue introduced in 3.4.1. Fixes #4874."port" option should be a number or stringerror when receiving an erroneous HTTP CONNECT. Fixes #3250.done()callback is not called within thecommandTimeout. Fixes #1075, #2478, #3349, and #4790.ENOTCONNerror at the end of a test run when using Node >12.11.0 on Windows OS. Fixes #5241..in Chrome 77. Fixes #5142 and #5206..jsfile containing Unicode transferred usingContent-Encoding: gzipthat could cause the JavaScript file to become corrupted. Fixes #1746.node_modules/cypressfolder. Fixes #2364.Misc:
Could not start Xvfbwas being thrown because Xvfb could not start within the allowed time. Addresses #5110.cypress runfrom the binary directly (not from an npm module) since this is not its intended use. Addresses #1573.cy.visit('file://...)to explain that this url format is not supported and suggest visiting a relative HTML file. Addresses #4452.CYPRESS_ENVenvironment variable will now throw an error. Addresses #1621.browserargument of the Browser Launch API explaining that a String is expected instead. Addresses #4966.nameorvalueis supplied tocy.setCookie(), matching the RFC 6265 compliant validation of cookie names and values. Addresses #5206.cy.get()now throws an error explaining that anoptionsObject is expected. Addresses #2953.cy.screenshot()that would result in a screenshot with 0 width or height. Addresses #5149.cypress runno longer truncates text such a filenames and instead wraps the text to fit within the width of the terminal. Addresses #4977.cy.request()errors. Addresses #3145.localhostto be inNO_PROXY. To make Cypress send traffic forlocalhostthrough the proxy, you will now have to pass<-loopback>inNO_PROXY. Addresses #4780.cy.visit()to more closely match the browser's behavior when setting cookies, particularly when usingfetchwith cookies. Addresses #4433.--disable-backgrounding-occluded-window,--disable-breakpad,--disable-ipc-flooding-protection,--password-store=basic, and--use-mock-keychain. Addresses #5132 and #3633.Cypress.Commands.overwrite()to not allow anoptionsobject as an argument. Addresses #5341.failuresandmessagetypes when a run fails using the Module API. Addresses #5335.Documentation Changes:
.rightclick()doc..dblclick()doc to include newposition,x, andyarguments plusforceandmultipleoptions.--config-fileargument to Command Line and Module API doc.nodeVersionargument to Configuration doc and mentioned its uses in the Plugins Guide and Writing a Plugin doc.cypress.jsonfile since this is not configurable via a--config-fileargument.qsoption tocy.visit()with examples.paddingoption tocy.screenshot()with examples.cy.viewport()doc to have a max viewport size of4000.cy.viewport()doc.cypress-fiddleplugin used for playing around with small test cases.urlin thecy.route()doc.file://prefix is not supported in thecy.visit()doc.<-loopback>inNO_PROXYis necessary in the Proxy Configuration doc.Dependency Updates
cypress runand when selecting Electron browser incypress openfrom61to73. Addressed in #4720.electronfrom2.0.18to5.0.10. Addressed in #4720.nodefrom8.9.3to12.0.0. Addressed in #4720.jqueryfrom2.2.4to3.1.1. Addressed in #1229.sanitize-filenamefrom1.6.1to1.6.3. Addressed in #5216.@cypress/get-windows-proxyfrom1.5.4to1.6.0. Addressed in #5108.🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs