Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Snyk] Upgrade cypress from 3.4.1 to 3.5.0 #14

Merged
merged 1 commit into from
Nov 2, 2019

Conversation

snyk-bot
Copy link
Contributor

@snyk-bot snyk-bot commented Nov 1, 2019

Snyk has created this PR to upgrade cypress from 3.4.1 to 3.5.0.

  • The recommended version is 1 version ahead of your current version.
  • The recommended version was released 8 days ago, on 2019-10-23.
Release notes
  • Package name: cypress
    • 3.5.0 - 2019-10-23

      Released 10/23/2019

      Features:

      • We now record video during 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.
      • There is a new .rightclick() command to right click on DOM elements. Addresses #53.
      • Cypress now accepts a --config-file argument to specify a different file to be used for Cypress configuration. You can also pass false to the --config-file to not use any configuration file. Addresses #1369.
      • You can now use your system's Node version by setting the nodeVersion to system in your configuration. This Node version will be used to build files in your integrationFolder 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 accepts position, x, and y arguments. Addresses #116.
      • ".dblclick() dblclick now accepts force and multiple in its options. Addresses #116.
      • .screenshot() now accepts a padding argument when screenshotting elements that will alter the dimensions of the screenshot of the element. Addresses #4440.
      • cy.visit() now accepts a qs 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 for iphone-xr, iphone-x, samsung-s10 and samsung-note9. Addresses #4967.
      • Passing a ~ to CYPRESS_CACHE_FOLDER will automatically resolve to the user's home directory. Addresses #5386.

      Bugfixes:

      • ".dblclick() dblclick and .click() now fire all appropriate mouse events including mouseover, mousemove, mouseout, pointerdown, pointerup, and pointermove. Fixes #1016, #1847, #2045, #2521, #2768, #2928, #2957, and #3224.
      • We updated ".dblclick() dblclick to follow the same actionability checks as .click(). Fixes #3798.
      • Coordinates clicked during .click() are now correct if the element being clicked is within an iframe. Fixes #4347.
      • We now allow .type() to be used on any DOM element. The element will receive all of the type events. Fixes #2166 and #3661.
      • If a typeable element gains focus during .type(), Cypress now continues typing into the newly focused element. Fixes #2240.
      • We now correctly borrow the property getter for maxLength when using .type() on an input. Fixes #4587.
      • We fixed an issue where datetime-local inputs would not have their value updated during .type(). Fixes #2613.
      • .type() now allows you to type - into number inputs with text selection. Fixes #4767.
      • We now fire an input event when using .type() typing {enter} inserts a newline. Fixes #4870.
      • We no longer input text when non-{shift} modifier keys are typed in .type(). Fixes #5424.
      • We now properly send the code property during keyboard events triggered during .type(). Fixes #3722
      • Cypress now sends screenX and screenY properties to events triggered using .trigger(). Fixes #3187.
      • We fixed a bug where Cypress could not intercept traffic sent through cy.visit() to IP addresses over HTTPS, leading to ERR_SSL_VERSION_OR_CIPHER_MISMATCH errors. Fixes #771.
      • We fixed a bug introduced in 3.3.0 where some HTTPS sites failed to load during cy.visit() and cy.request() with a "handshake failed" error. Fixes #4394.
      • We fixed a bug where ECC SSL Certificates were not supported during cy.visit() that was introduced in 3.3.0. Fixes #4368.
      • We fixed an issue introduced in 3.4.0 that would cause the Selector Playground to not properly highlight the currently hovered element. Fixes #4872.
      • Cypress.env() now escapes <script> tags in the configuration file. Fixes #4952.
      • Cypress now properly handles converting responses of content-type application/vnd.api+json to JSON. Fixes #5165.
      • XHR responses in cy.route() that exceed 80kb in size no longer fail with an ERR_EMPTY_RESPONSE error. Fixes #76.
      • Cypress no longer crashes with dest.end errors on Windows machines. Fixes #2181.
      • The onFocus event no longer incorrectly fires on hidden elements. This fixes an issue introduced in 3.3.2. Fixes #4898.
      • You can now call .click() on inputs or textareas that are readonly. This fixes an issue introduced in 3.4.1. Fixes #4874.
      • Cypress no longer crashes with a "port" option should be a number or string error when receiving an erroneous HTTP CONNECT. Fixes #3250.
      • Cypress tests now timeout if there are no Cypress commands enqueue and the done() callback is not called within the commandTimeout. Fixes #1075, #2478, #3349, and #4790.
      • We fixed a bug where Cypress would exit with an ENOTCONN error at the end of a test run when using Node >12.11.0 on Windows OS. Fixes #5241.
      • We fixed a bug where the Chrome policy warnings introduced in 3.4.0 would not appear. Fixes #4986.
      • We improved the way that cookies are handled for Chrome browsers. This fixes an issue when parsing cookies that were set with a domain beginning with a . in Chrome 77. Fixes #5142 and #5206.
      • We fixed a bug when visiting an application that does an HTTP request to a .js file containing Unicode transferred using Content-Encoding: gzip that could cause the JavaScript file to become corrupted. Fixes #1746.
      • We now normalize the Cypress cache folder to resolve in the current folder and not with respect to the node_modules/cypress folder. Fixes #2364.

      Misc:

      • Cypress now displays a more precise error message when checking an element's visibility if an element is detached from the DOM. Addresses #4946.
      • We increased the timeout to wait for Xvfb to start from 5 seconds to 30 seconds. This should resolve some issues where the error Could not start Xvfb was being thrown because Xvfb could not start within the allowed time. Addresses #5110.
      • We now warn when using cypress run from the binary directly (not from an npm module) since this is not its intended use. Addresses #1573.
      • We now warn on cy.visit('file://...) to explain that this url format is not supported and suggest visiting a relative HTML file. Addresses #4452.
      • Setting the reserved CYPRESS_ENV environment variable will now throw an error. Addresses #1621.
      • We now throw a better error when passing in an Object to the browser argument of the Browser Launch API explaining that a String is expected instead. Addresses #4966.
      • An error will now be thrown if an invalid name or value is supplied to cy.setCookie(), matching the RFC 6265 compliant validation of cookie names and values. Addresses #5206.
      • Passing an invalid type to the 2nd argument of cy.get() now throws an error explaining that an options Object is expected. Addresses #2953.
      • We now throw a more helpful error message during cy.screenshot() that would result in a screenshot with 0 width or height. Addresses #5149.
      • Stdout printed during cypress run no longer truncates text such a filenames and instead wraps the text to fit within the width of the terminal. Addresses #4977.
      • We now display up to 2,000 characters of HTTP property values within error messages during cy.request() errors. Addresses #3145.
      • Cypress now always considers localhost to be in NO_PROXY. To make Cypress send traffic for localhost through the proxy, you will now have to pass <-loopback> in NO_PROXY. Addresses #4780.
      • We changed the way cookies are set in cy.visit() to more closely match the browser's behavior when setting cookies, particularly when using fetch with cookies. Addresses #4433.
      • We've added more flags to send to Chrome upon launch that should help with issues encountered during browser automation including --disable-backgrounding-occluded-window, --disable-breakpad, --disable-ipc-flooding-protection, --password-store=basic, and --use-mock-keychain. Addresses #5132 and #3633.
      • Scrolling the specs list now only scrolls the list of spec files and no longer scrolls the search and filter bar. Addresses #4904.
      • We fixed some layout issues within the Test Runner that were introduced in 3.4.1. Addresses #4888, #4912, and #4959.
      • The counter badge for spies and stubs no longer appears visually cut off. Fixes #4822.
      • TypeScript 3.6.2 no longer errors due to outdated jQuery types. Addresses #5065.
      • We updated types for Cypress.Commands.overwrite() to not allow an options object as an argument. Addresses #5341.
      • We added failures and message types when a run fails using the Module API. Addresses #5335.
      • We're continuing to make process in converting our codebase from CoffeeScript to JavaScript. Addresses #2690 in #4869, #4906, #5096, #5107, #5156, #5173, and #5352.

      Documentation Changes:

      • Added a .rightclick() doc.
      • Added a Webinars doc containing videos of all of the official Cypress webcasts.
      • Updated the .dblclick() doc to include new position, x, and y arguments plus force and multiple options.
      • Added the --config-file argument to Command Line and Module API doc.
      • Added the nodeVersion argument to Configuration doc and mentioned its uses in the Plugins Guide and Writing a Plugin doc.
      • Updated all docs to mention 'configuration file' instead of static cypress.json file since this is not configurable via a --config-file argument.
      • Added qs option to cy.visit() with examples.
      • Added padding option to cy.screenshot() with examples.
      • Updated the cy.viewport() doc to have a max viewport size of 4000.
      • Added newly supported viewport sizes to the cy.viewport() doc.
      • Documented new keyboard shortcuts in the Test Runner doc.
      • Added a new section on troubleshooting problems with Xvfb to the Continuous Integration doc.
      • Added a section to our Debugging doc about our cypress-fiddle plugin used for playing around with small test cases.
      • Added a section to our Debugging doc explaining how to patch an installed version of Cypress.
      • Mention not needing to decode portions of the url in the cy.route() doc.
      • Mention that the file:// prefix is not supported in the cy.visit() doc.
      • Add a note about when passing <-loopback> in NO_PROXY is necessary in the Proxy Configuration doc.
      • Updated our Dashboard docs to include screenshots containing our new Dashboard navigation design.
      • We have some newly translated documentation in Portuguese. If you'd like to help in translating more, please open a pull request in our documentation repo.

      Dependency Updates

      • Upgraded Chrome browser version used during cypress run and when selecting Electron browser in cypress open from 61 to 73. Addressed in #4720.
      • Upgraded electron from 2.0.18 to 5.0.10. Addressed in #4720.
      • Upgraded node from 8.9.3 to 12.0.0. Addressed in #4720.
      • Upgaded jquery from 2.2.4 to 3.1.1. Addressed in #1229.
      • Upgraded sanitize-filename from 1.6.1 to 1.6.3. Addressed in #5216.
      • Upgraded @cypress/get-windows-proxy from 1.5.4 to 1.6.0. Addressed in #5108.
    • 3.4.1 - 2019-07-29

      Released 7/29/2019

      Dashboard Features:

      • We’re excited to announce GitHub integration for the Cypress Dashboard. You can now get timely and useful test run information within pull-requests via status checks and pull-request comments. Learn all about it on our blog. Addresses #981.

      Bugfixes:

      • Fixed a bug where the content of pages using non-UTF-8 character encoding would become corrupted when opened in Cypress. Fixes #3479, #1543, and #3650.
      • Fixed a regression introduced in 3.4.0 that caused an error to be thrown when chaining together multiple assertions using the and chainable getter. Fixes #4833.
      • The include and includes assertion chainers now correctly work the same as contain and contains assertion chainers. Fixes #4833.
      • Cypress now correctly works offline on Windows when visiting a localhost URL. Fixes #4763.
      • cy.type() now factors in the readonly property of <input /> elements, and will wait for this property to be false before attempting to type. Fixes #1246.
      • Variables beginning with top and location in your application code are no longer modified when modifyObstructiveCode is true. Fixes #4794.
      • We removed erroneous socket connections when the browser is initially launching. Fixes #4776.
      • Fixed a bug when dismissing pinned snapshots that would cause the page to be wiped with nothing rendered. Fixes #4864.
      • We upgraded the mocha-teamcity-reporter dependency so that it no longer errors in certain situations when trying to access duration on tests. Fixes #4654.
      • We upgraded the lodash dependency to fix a security vulnerability warning. Fixes #4699, #4730, #4743.

      Misc:

      • We now ensure we are shipping with production versions of dependencies such as 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.
      • Video recordings now wait after all tests finish to ensure that the video captures the final rendered frames of the browser. This prevents the last few paints from being cut off. Fixes #2370.
      • Cypress now looks for any npm proxy configuration values as a fallback when no other system proxy configuration is found. This brings this feature into parity with how npm reads off proxy configuration values during an npm install. Addresses #4719.
      • We updated the messaging when there is a failure downloading Cypress to recommend checking your proxy settings. Addresses #1662.
      • A warning message now displays if you attempt to run the Cypress binary directly instead of going through the cypress npm package. Addresses #1573.
      • There are newly added examples in the TypeScript definitions for custom commands, cy.location() and .should(). Addresses #3684 and #4715.
      • The types for the cy.contains(content, options) syntax have been added. Addresses #4727.
      • Types for cy.once() have been added. Addressed in #4788.
      • There is now a { parseSpecialCharSequences: false } option to cy.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.
      • You can now zoom in the main Test Runner window and also the Electron browser. Corresponding keyboard shortcuts for Zoom in, Zoom out and Actual Size are also available. Addresses #1231.
      • When viewing the Test Runner's main window at its smallest size, the header text no longer incorrectly wraps. Addresses #86.
      • We're continuing to make process in converting our codebase from CoffeeScript to JavaScript. Addresses #2690 in #4781 and #4817.
      • We increased the cypress binary verification phase from 10 seconds to 30 seconds to accomodate underpowered or overwhelmed machines typically found in CI environments. Addresses #4624.

      Documentation Changes:

      Dependency Updates

      • Upgraded @ffmpeg-installer/ffmpeg from 1.0.17 to 1.0.19. Addressed in #4792.
      • Upgraded browserify from 13.3.0 to 16.3.0. Addressed in #4751, #4825 and #4826.
      • Upgraded data-uri-to-buffer from 1.2.0 to 2.0.1. Addressed in #4622.
      • Upgraded duplexify from 4.0.0 to 4.1.1. Addressed in #4853.
      • Upgraded graceful-fs from 4.1.15 to 4.2.0. Addressed in #4818.
      • Upgraded lodash from 4.17.11 to 4.17.15. Addressed in #4684, #4709, #4784.
      • Upgraded mocha-junit-reporter from 1.23.0 to 1.23.1. Addressed in #4785.
      • Upgraded p-queue from 1.2.0 to 6.1.0. Addressed in #4750.
      • Upgraded semver from 6.0.0 to 6.3.0. Addressed in #4797.
      • We also updated and removed some dependencies used for development.
  • from cypress GitHub Release Notes
------------

🧐 View latest project report

🛠 Adjust upgrade PR settings

🔕 Ignore this dependency or unsubscribe from future upgrade PRs

@codecov
Copy link

codecov bot commented Nov 1, 2019

Codecov Report

Merging #14 into master will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@           Coverage Diff           @@
##           master      #14   +/-   ##
=======================================
  Coverage   97.14%   97.14%           
=======================================
  Files           1        1           
  Lines          35       35           
  Branches       14       14           
=======================================
  Hits           34       34           
  Partials        1        1

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update c2b194f...31790ee. Read the comment docs.

@gpincheiraa gpincheiraa changed the base branch from master to release November 2, 2019 15:40
@gpincheiraa gpincheiraa merged commit 21192bf into release Nov 2, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants