title: Deleting rows from a table after testing, generic function
body: <p>I have some tests on an HTML table which add, modify, delete. I'd like a generic function I can apply to clean up previous data to start clean each time.</p>
  <p>I currently reset the page, but there's quite a few steps to take to get to the start of testing so an &quot;undo&quot; function would be very useful WRT faster tests.</p>
  <p>This is currently what I have (simplified) for a single row</p>
  <pre class="lang-js prettyprint-override"><code>cy.get('tr').should('have.length', 3).eq(0).click()
  cy.get('tr').should('have.length', 2)
  </code></pre>
  <p>Now I need to enhance it to handle any number of rows. I tried looping but it didn't work - the test seems to run too fast for the page to keep up, if that makes sense?</p>