title: How do I check there are multiple elements that contain something? - Cypress
body: <p>I am trying to check that a list contains 2 specific entries using Cypress.</p>
  <p>I have tried:</p>
  <pre><code>cy.get('ul.messages_list')
              .children()
              .contains('text')
              .and('contain', 'emailAddress)
              .should('have.length', 2)
  </code></pre>
  <p>The problem is that once I use .contains() it is in a single element and I cannot check that there are multiple of them.</p>