title: How to get data displaying in a table <td> in Cypress.io test?
body: <p>In a Cypress.io test, while checking for the 'data' displayed in a table after applying the filter, it throws "CypressError: Timed out retrying: Cannot read property 'eq' of undefined". Can someone please advise how to fix the problem in below test? Table HTML image added below.</p>
  
  <pre><code>describe('Filter Test', function() {
      it.only('Check if the records are filtered successfully', function() {
          cy.visit('http://www.seleniumeasy.com/test/table-search-filter-demo.html')          
          cy.get('button').contains('Filter').click()
          cy.get('input[placeholder="Username"]').type('jacobs')  
          cy.get('table').should(($tr) =&gt; {
          const $tds = $tr.find('td') // find all the tds
          expect($tds.cells.eq(0)).to.contain('jacobs')   
          })
  
      })      
  
  })
  </code></pre>
  
  <p><a href="https://i.stack.imgur.com/NOyQY.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/NOyQY.jpg" alt="enter image description here"></a></p>
  
  <p><a href="https://i.stack.imgur.com/wwITl.jpg" rel="noreferrer"><img src="https://i.stack.imgur.com/wwITl.jpg" alt="enter image description here"></a></p>