Cypress v4.11.0 Release Notes

Release Date: 2020-07-21 // almost 4 years ago
  • ๐Ÿš€ Released 7/21/2020

    ๐Ÿ”‹ Features:

    • You can now pass an ensureScrollability: false option 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:

    • ๐Ÿ Running multiple specs within Firefox during cypress run on Windows will no longer fail trying to make a connection to the browser. Fixes #6392.
    • ๐Ÿ›  Cypress will no longer throw a Cannot read property 'isAttached' of undefined error during cypress run on Firefox versions >= 75. Fixes #6813.
    • ๐Ÿ›  Fixed an issue where Cypress tests in Chromium-family browsers could randomly fail with the error "WebSocket is already in CLOSING or CLOSED state." Fixes #7180.
    • ๐Ÿ›  Taking a screenshot of an element that changes height upon scroll will no longer throw an invalid for option "size" error. Fixes #6099.
    • ๐Ÿ”ง Setting viewportHeight or viewportWidth from within the test configuration now properly changes the viewport size for the duration of the suite or test.
    • ๐Ÿ”Œ Setting deep objects and arrays on config within the pluginsFile now sets the values correctly. Fixes #7959.
    • ๐Ÿ›  The progress bar for cy.wait() now reflects the correct requestTimeout and responseTimeout of the command. Fixes #7881.
    • โœ… The command's progress bar will not longer restart when its parent test is collapsed in the Command Log. Fixes #7912.
    • Key value pairs sent to ELECTRON_EXTRA_LAUNCH_ARGS as key=value will now be properly read in. Fixes #7994.
    • โœ… Stubbed responses responding with an empty string to cy.route() now correctly display as 'xhr stub' in the Test Runner's Command Log. Fixes #8018.
    • โœ… Quickly reclicking the "Run All Tests" button in the Test Runners' Command Log will no longer throw errors about undefined properties and the tests will no longer hang. Fixes #7968.

    Misc:

    • ๐Ÿ”Œ The error messages thrown from pluginsFile and supportFile now mention that .ts extensions are supported. Addresses #7940.
    • ๐Ÿ’… The style when focusing on tests in the Command Log has been updated. Addresses #7855.

    โšก๏ธ Dependency Updates:

    • โฌ†๏ธ Upgraded @benmalka/foxdriver from 0.4.0 to 0.4.1. Addressed in #8040.
    • โฌ†๏ธ Upgraded firefox-profile from 1.3.1 to 2.0.0. Addressed in #8000.
    • โฌ†๏ธ Upgraded fix-path from 2.1.0 to 3.0.0. Addressed in #8028.
    • โฌ†๏ธ Upgraded human-interval from 0.1.6 to 1.0.0. Addressed in #8031.
    • โฌ†๏ธ Upgraded lodash from 4.17.15 to 4.17.19. Addressed in #7954.
    • โฌ†๏ธ Upgraded plist from 2.1.0 to 3.0.1. Addressed in #8045.
    • โฌ†๏ธ Upgraded proxy-from-env from 1.0.0 to 1.1.0. Addressed in #7900.
    • โฌ†๏ธ Upgraded resolve from 1.13.1 to 1.17.0. Addressed in #7989.
    • โฌ†๏ธ Upgraded systeminformation from 4.21.1 to 4.26.9. Addressed in #7975.
    • โฌ†๏ธ Upgraded uuid from 3.3.2 to 8.2.0. Addressed in #7976, #8002, and #8011.