https://cypress.io logo
You can do this way also, checking all the element...
# e2e-testing
h
You can do this way also, checking all the elements are visible and should have length 1. cy.getByDataTest('document-list').should('have.length', documentsLength); documentsTypes.forEach(element => { cy.getByDataTest('document-description').filter(
:contains(${element.displayName})
).should('have.length', 1) });