4.11.0
Released Released on July 20, 2020
Features:
You can now pass an
ensureScrollability: falseoption 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.parseRunArgumentsfunction to assist in parsing user-supplied command line arguments using the same logic ascypress runuses. Addresses #7760.
Bugfixes:
Running multiple specs within Firefox during
cypress runon 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 undefinederror duringcypress runon 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
viewportHeightorviewportWidthfrom within the test configuration now properly changes the viewport size for the duration of the suite or test.Setting deep objects and arrays on
configwithin thepluginsFilenow sets the values correctly. Fixes #7959.The progress bar for
cy.wait()now reflects the correctrequestTimeoutandresponseTimeoutof 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_ARGSaskey=valuewill 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
pluginsFileandsupportFilenow mention that.tsextensions are supported. Addresses #7940.The style when focusing on tests in the Command Log has been updated. Addresses #7855.
Dependency Updates:
Upgraded
@benmalka/foxdriverfrom0.4.0to0.4.1. Addressed in #8040.Upgraded
firefox-profilefrom1.3.1to2.0.0. Addressed in #8000.Upgraded
fix-pathfrom2.1.0to3.0.0. Addressed in #8028.Upgraded
human-intervalfrom0.1.6to1.0.0. Addressed in #8031.Upgraded
lodashfrom4.17.15to4.17.19. Addressed in #7954.Upgraded
plistfrom2.1.0to3.0.1. Addressed in #8045.Upgraded
proxy-from-envfrom1.0.0to1.1.0. Addressed in #7900.Upgraded
resolvefrom1.13.1to1.17.0. Addressed in #7989.Upgraded
systeminformationfrom4.21.1to4.26.9. Addressed in #7975.Upgraded
uuidfrom3.3.2to8.2.0. Addressed in #7976, #8002, and #8011.