title: Cypress.io: Anyway to test for specific scroll amount?
body: <p>Wanted to know if there is some way to test for scroll amount, within a certain range with Cypress.io.</p>
  
  <p><strong>More Specifically</strong></p>
  
  <ol>
  <li>Starting from top of page, press button</li>
  <li>Page scrolls down to a certain height</li>
  <li>Test whether scroll height is correct within a certain range</li>
  </ol>
  
  <p></p>
  
  <p><strong>My attempt:</strong>
  The way I assume would be best is to test that would to test out, that a current div is not within the viewable area of phone screen. Then to scroll down so it does become viewable.</p>
  
  <pre><code>cy.get('#angular-projects').should('not.be.visible') // div #angular-projects
  cy.get('#developer-projects').click() // button
  cy.get('#angular-projects').should('be.visible')
  </code></pre>
  
  <p>Wanted to know whether this can be done via <em>mocha</em>, <em>chai</em>, if there is no <em>cypress</em> work around</p>