Released 12/20/2015
Notes:
- Docs have been updated for
cy.wait()
,cy.route()
andcy.server()
to reflect these changes.
Features:
- Added
responseTimeout
configuration value. cy.wait()
has been upgraded to now use two separatetimeout
values. In previous versionscy.wait()
used thecommandTimeout
and would automatically time out if the XHR did not achieve a response in that time frame. Nowcy.wait()
will go through two independent timeout phases. At firstcy.wait()
will wait for an XHR to be requested which matches its route. It will wait up to the value configured withrequestTimeout
(default 5000ms). After it sees a matching request it will then go intoresponse
waiting mode. It will wait up to the value configured withresponseTimeout
(default 20000ms). Whency.wait()
fails you now receive a much better error message indicating exactly which phase failed. Whether a request was never sent out, or whether it timed out waiting for a response. This gives you the best of both worlds and prevents situations where Cypress was timing out on slow servers. By creating new configuration values:requestTimeout
andresponseTimeout
you can now directly control this behavior without affecting other regular commands.
Bugfixes:
- Prevent removing trailing new lines on fixtures after formatting.
- Added cache buster to test files which forces them to be reloaded in the
Sources
panel after making modifications. In previous versions when test files were live reloaded Chrome would not display their new contents due to a bug in Dev Tools. We've now worked around this issue.
Misc:
- Removed
{stub: false}
option fromcy.server()
andcy.route()
. Cypress will now log a deprecation warning when you use the this option. Removing this option helps simplify the API because now Cypress can figure out whether you really want to stub the route based on whether you've provided a response or not. If you have not provided a response, the default behavior will be to not stub. If you do provide a response, Cypress will stub the route. - Repurposed
requestTimeout
to now mean the time we wait for an XHR to be requested. Changedcy.request()
to now useresponseTimeout
configuration value. - Updated many error messages to be more consistent.
- Added special error messages when elements cannot have actions applied to them
with a suggestion to use
{force: true}
.