title: How to check if an element contains multiple items in Cypress.io
body: <p>How can I check if an element contains multiple items in Cypress.io without replicating my code so much?</p>
  <p>Current Example:</p>
  <pre><code>cy.get(&quot;.column&quot;)
    .children()
    .contains(&quot;Name&quot;);
  
  cy.get(&quot;.column&quot;)
    .children()
    .contains(&quot;Age&quot;);
  
  cy.get(&quot;.column&quot;)
    .children()
    .contains(&quot;Weight&quot;);
  
  cy.get(&quot;.column&quot;)
    .children()
    .contains(&quot;Height&quot;);
  
  cy.get(&quot;.column&quot;)
    .children()
    .contains(&quot;Favorite Color&quot;);
  </code></pre>