You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Passing response data to a cy.route should accept a function, and optionally await promises returned from the function
Doing so enables easier access to properties such as aliased fixtures.
This is done and will likely release this weekend.
You'll be able to set response as a function which returns a Promise (which will be awaited) or a value.
Additionally we've updated the cy.route signature to take also just take a function which can also return a promise or an object with the typical routing signature.
Passing response data to a
cy.route
should accept a function, and optionally await promises returned from the functionDoing so enables easier access to properties such as aliased fixtures.
Now:
Particularly useful for:
The text was updated successfully, but these errors were encountered: