I\'m starting to learn Cypress. I have a 4 row table (with a class of datatable). I can verify the number of rows this way:
cy.get(\'.datatable\').find(\'tr\
if you want more flexible and have a dynamic result use this.
cy.get('.listings-grid') .find('.listing') .then(listing => { const listingCount = Cypress.$(listing).length; expect(listing).to.have.length(listingCount); });