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\
Found a solution, This works to check a count of items:
cy.get('.datatable').find('tr').should('have.length', 4)
This does not work with the Cypress.$() method of notation.
Cypress.$()
Reference: https://docs.cypress.io/guides/references/assertions.html#Length