[Snyk] Upgrade cypress from 3.4.1 to 3.5.0 #14
Merged
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
cypress
from 3.4.1 to 3.5.0.Release notes
Released 10/23/2019
Features:
cypress run
in Chrome, Chromium, and Canary browsers. This requires passing the name or path of the Chrome browser to the--browser
flag. Addresses #4608..rightclick()
command to right click on DOM elements. Addresses #53.--config-file
argument to specify a different file to be used for Cypress configuration. You can also passfalse
to the--config-file
to not use any configuration file. Addresses #1369.nodeVersion
tosystem
in your configuration. This Node version will be used to build files in yourintegrationFolder
and "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
, andy
arguments. Addresses #116..dblclick()
dblclick now acceptsforce
andmultiple
in itsoptions
. Addresses #116..screenshot()
now accepts apadding
argument when screenshotting elements that will alter the dimensions of the screenshot of the element. Addresses #4440.cy.visit()
now accepts aqs
option 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-s10
andsamsung-note9
. Addresses #4967.~
toCYPRESS_CACHE_FOLDER
will 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.maxLength
when using .type() on an input. Fixes #4587.datetime-local
inputs would not have theirvalue
updated during.type()
. Fixes #2613..type()
now allows you to type-
into number inputs with text selection. Fixes #4767.input
event when using.type()
typing{enter}
inserts a newline. Fixes #4870.{shift}
modifier keys are typed in.type()
. Fixes #5424.code
property during keyboard events triggered during.type()
. Fixes #3722screenX
andscreenY
properties to events triggered using.trigger()
. Fixes #3187.cy.visit()
to IP addresses over HTTPS, leading toERR_SSL_VERSION_OR_CIPHER_MISMATCH
errors. 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-type
application/vnd.api+json
to JSON. Fixes #5165.cy.route()
that exceed 80kb in size no longer fail with anERR_EMPTY_RESPONSE
error. Fixes #76.dest.end
errors on Windows machines. Fixes #2181.onFocus
event 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 string
error when receiving an erroneous HTTP CONNECT. Fixes #3250.done()
callback is not called within thecommandTimeout
. Fixes #1075, #2478, #3349, and #4790.ENOTCONN
error 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..js
file containing Unicode transferred usingContent-Encoding: gzip
that could cause the JavaScript file to become corrupted. Fixes #1746.node_modules/cypress
folder. Fixes #2364.Misc:
Could not start Xvfb
was being thrown because Xvfb could not start within the allowed time. Addresses #5110.cypress run
from 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_ENV
environment variable will now throw an error. Addresses #1621.browser
argument of the Browser Launch API explaining that a String is expected instead. Addresses #4966.name
orvalue
is supplied tocy.setCookie()
, matching the RFC 6265 compliant validation of cookie names and values. Addresses #5206.cy.get()
now throws an error explaining that anoptions
Object is expected. Addresses #2953.cy.screenshot()
that would result in a screenshot with 0 width or height. Addresses #5149.cypress run
no 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.localhost
to be inNO_PROXY
. To make Cypress send traffic forlocalhost
through 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 usingfetch
with 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 anoptions
object as an argument. Addresses #5341.failures
andmessage
types when a run fails using the Module API. Addresses #5335.Documentation Changes:
.rightclick()
doc..dblclick()
doc to include newposition
,x
, andy
arguments plusforce
andmultiple
options.--config-file
argument to Command Line and Module API doc.nodeVersion
argument to Configuration doc and mentioned its uses in the Plugins Guide and Writing a Plugin doc.cypress.json
file since this is not configurable via a--config-file
argument.qs
option tocy.visit()
with examples.padding
option tocy.screenshot()
with examples.cy.viewport()
doc to have a max viewport size of4000
.cy.viewport()
doc.cypress-fiddle
plugin used for playing around with small test cases.url
in thecy.route()
doc.file://
prefix is not supported in thecy.visit()
doc.<-loopback>
inNO_PROXY
is necessary in the Proxy Configuration doc.Dependency Updates
cypress run
and when selecting Electron browser incypress open
from61
to73
. Addressed in #4720.electron
from2.0.18
to5.0.10
. Addressed in #4720.node
from8.9.3
to12.0.0
. Addressed in #4720.jquery
from2.2.4
to3.1.1
. Addressed in #1229.sanitize-filename
from1.6.1
to1.6.3
. Addressed in #5216.@cypress/get-windows-proxy
from1.5.4
to1.6.0
. Addressed in #5108.Released 7/29/2019
Dashboard Features:
Bugfixes:
and
chainable getter. Fixes #4833.include
andincludes
assertion chainers now correctly work the same ascontain
andcontains
assertion chainers. Fixes #4833.cy.type()
now factors in thereadonly
property of<input />
elements, and will wait for this property to befalse
before attempting to type. Fixes #1246.top
andlocation
in your application code are no longer modified whenmodifyObstructiveCode
istrue
. Fixes #4794.mocha-teamcity-reporter
dependency so that it no longer errors in certain situations when trying to access duration on tests. Fixes #4654.lodash
dependency to fix a security vulnerability warning. Fixes #4699, #4730, #4743.Misc:
react
,mobx
, etc. This should help to prevent conflicts with Developer Tools extensions and increase performance by reducing memory, heap allocation, and overall JS bundle size. Addresses #4844.npm install
. Addresses #4719.npm
package. Addresses #1573.cy.location()
and.should()
. Addresses #3684 and #4715.cy.contains(content, options)
syntax have been added. Addresses #4727.cy.once()
have been added. Addressed in #4788.{ parseSpecialCharSequences: false }
option tocy.type()
that disables parsing the special character sequences found between the{}
characters. This will now type what you've provided literally without any special parsing. Fixes #4287.Documentation Changes:
Dependency Updates
@ffmpeg-installer/ffmpeg
from1.0.17
to1.0.19
. Addressed in #4792.browserify
from13.3.0
to16.3.0
. Addressed in #4751, #4825 and #4826.data-uri-to-buffer
from1.2.0
to2.0.1
. Addressed in #4622.duplexify
from4.0.0
to4.1.1
. Addressed in #4853.graceful-fs
from4.1.15
to4.2.0
. Addressed in #4818.lodash
from4.17.11
to4.17.15
. Addressed in #4684, #4709, #4784.mocha-junit-reporter
from1.23.0
to1.23.1
. Addressed in #4785.p-queue
from1.2.0
to6.1.0
. Addressed in #4750.semver
from6.0.0
to6.3.0
. Addressed in #4797.🧐 View latest project report
🛠 Adjust upgrade PR settings
🔕 Ignore this dependency or unsubscribe from future upgrade PRs