This Github thread highlights how to use Cypress to assert an element has a specified height.
cy.get(mainMenu).should('have.css', 'height', '55px')
How do I use Cypress to assert an element is greater than a specified height?
For example, I want to assert that a certain HTML element always has a height greater than 100px.
Aucun commentaire:
Enregistrer un commentaire