title: Difficulties with Cypress scrollTo method
body: <p>I am having a few issues testing a virtual scroll component with Cypress. I have a test that checks the li elements present in the DOM after scrolling to the bottom of a container. </p>
  
  <p>When written like this the test passes:</p>
  
  <pre><code>cy.get('.virtual-scroll').scrollTo('bottom')
  cy.wait(0)                                             
  cy.get('li').last().children('h4').contains('1999')
  </code></pre>
  
  <p>When written like this it doesn't:</p>
  
  <pre><code>cy.get('.virtual-scroll').scrollTo('bottom')
  cy.get('li').last().children('h4').contains('1999')
  </code></pre>
  
  <p>This also fails:</p>
  
  <pre><code>cy.get('.virtual-scroll').scrollTo('bottom').get('li').last().children('h4').contains('1999')
  </code></pre>
  
  <p>In the second and third examples, get('li') is returning the li elements present before the scroll has completed, and therefore failing the test. I can fix this by adding .wait, but don't fully understand the behaviour and wonder if this is a bug. </p>
  
  <p>Any ideas?</p>