0.5.10
Released Released on April 27, 2015
Features:
cy.server()now accepts adelayoption which will delay all responses to requests (including 404) based on the value in mscy.server()now accepts arespondoption which can turn off automatic responding to requests.cy.route()now accepts adelayoption which overrides the delay option set incy.server()to just matched requests.cy.route()now accepts arespondoption which will turn off automatic responding to just matched requests.Fixes #14.
cy.wait()now accepts an alias property calledrequest. 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.