4.11.0

Released Released on July 20, 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.

  • The Module API has a new cypress.cli.parseRunArguments function to assist in parsing user-supplied command line arguments using the same logic as cypress run uses. Addresses #7760.

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.