title: Can you test if an element is scrolled to
body: <p>I have a link that when clicked it will scroll to div element on the same page. Is there a way I can click on a link and determine that the element was actually scrolled to?</p>
  
  <pre><code>describe('scrolling.spec.js', () =&gt; {
  
      it('should scroll to an element.', () =&gt; {
  
          cy.visit('/home');
  
          cy.get('#calculator-link').click();
  
          //verify that the element with id  payment-calculator is scrolled to
          ///??
      });
  
  });
  </code></pre>