Cypress · Method
cy.and
cy.and() adds an assertion to an existing Cypress chain. It is an alias of .should() and retries until the assertion passes or times out.
Last updated
- Since
- 0.5.4
Syntax
.and(chainers)
.and(chainers, value)
.and(chainers, method, value)
.and(callbackFn)In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.
SubscribeRelated
.should()then()Retry boundariesList of Assertions