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.
SubscribeRelated
.and().then()cy.get()cy.contains()cy.url()ChaiChai-jQuerySinon-Chai