title: How to make sure page loads completely in cypress
body: <p>I am working in cypress.
  Steps to repro</p>
  
  <p>I just visit the login page by cy.visit()-spinner is loading
  passed the credentials using type-spinner is still loading
  click on submit.-spinner is  still loading
   its throwing error .. why because the login page XHR calls didnt get completed thats why still we can see spinner loading in top and i tried to click the submit button before it gets loaded,may be because of poor network-telling invalid credentials.</p>