Skip to content
masterclass Buddy

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.

Subscribe
  • .should()
  • then()
  • Retry boundaries
  • List of Assertions

Source: cy.and() | Cypress API Documentation. Checked 2026-11-03.