cypress check property code example
Example 1: cypress number of elements
cy.get('.datatable').find('tr').should('have.length', 4)
Example 2: cypress check element have attribute
// have.attr comes from chai-jquery
cy.get('#header a').should('have.attr', 'href', '/users')