title: How to make Cypress wait for .intercept requests to finish?
body: <h2>Code:</h2>
  <pre class="lang-js prettyprint-override"><code>describe(&quot;Cypress&quot;, () =&gt; {
    it(&quot;Example Test&quot;, () =&gt; {
      cy.intercept(&quot;GET&quot;, &quot;/api/**&quot;).as(&quot;getApi&quot;);
      cy.visit(&quot;/home/&quot;);
      cy.wait(&quot;@getApi&quot;);
      console.log(&quot;here&quot;);
    });
  });
  </code></pre>
  <h3>Output:</h3>
  <pre><code>here
  Request Finished: /api/1/
  Request Finished: /api/2/
  </code></pre>
  <p>Is there a way to make Cypress wait for the requests it intercepts to finish before continuing?</p>
  <h4>Desired Output:</h4>
  <pre><code>Request Finished: /api/1/
  Request Finished: /api/2/
  here
  </code></pre>
  <p><em>Note: Page Code</em></p>
  <pre class="lang-js prettyprint-override"><code>$.get(url).done(function (response) {
    console.log(&quot;Request Finished&quot;, this.url);
  });
  </code></pre>