Cypress · Method
cy.then
cy.then() gives a callback the subject from the previous Cypress command. Its return value, a returned Cypress chain, or a resolved Promise controls the subject passed to the next command.
Last updated
- Since
- 0.3.3
Syntax
.then(callbackFn)
.then(options, callbackFn)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
.and().each().invoke().its().should().spread()Cypress.$Aliases