samedi 26 octobre 2019

How to use Cypress to assert that a HTML element has a height or width greater than a specified amount?

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