Assertions
Learn about Cypress Assertions in this lesson.
We'll cover the following...
cy
assertions
After we’ve done all the actions, we’re likely going to want to make some assertions about what’s on the page. Cypress assertions are complicated on one level in that there are many options, but at the same time, the syntax has some common patterns.
The should
command
We can chain an assertion at the end of a series of commands with should
. We need to do something between cy
and should
, however. We can’t simply write cy.should("exist")
, but we can write cy.get("selector").should("exist&qu
...