0.5.10
Released 04/28/2015
Features:
- cy.server() now accepts a delayoption which will delay all responses to requests (including 404) based on the value in ms
- cy.server() now accepts a respondoption which can turn off automatic responding to requests.
- cy.route() now accepts a delayoption which overrides the delay option set in cy.server() to just matched requests.
- cy.route() now accepts a respondoption which will turn off automatic responding to just matched requests.
- Fixes #14.
- cy.wait() now accepts an alias property called request. Example:cy.wait('@getUsers.request')which ill resolve once the XHR is initially requested, before it is responded to. This allows you to test things when a request is in flight.
- Added cy.respondcommand which will respond to all pending requests when{respond: false}is set in theserverorroute.
- .debug() now displays pending requests and completed requests.
- The command UI now displays pending requests as a pending command.
Misc:
- Updated sinonto1.14.1.