Skip to content
masterclass Buddy

Cypress · Function

cy.should

Use cy.should() to assert the current Cypress subject. Cypress retries the assertion until it passes or times out.

Last updated

Since
0.3.3

Syntax

.should(chainers)
.should(chainers, value)
.should(chainers, method, value)
.should(callbackFn)

In-depth API docs are only for subscribers: parameters, examples, common mistakes and interview practice.

Subscribe
  • .and()
  • .then()
  • cy.get()
  • cy.contains()
  • cy.url()
  • Chai
  • Chai-jQuery
  • Sinon-Chai

Source: should | Cypress Documentation. Checked 2026-11-03.