title: Cypress cy.wait with alias
body: <p>I would like to extract a big json file via API in Cypress. The following code (without the cy.wait()) works for small files. Once the file gets bigger and the response time grows over 30 seconds, the script times out.</p>
  <p>Therefore I added cy.wait('@api_call')</p>
  <pre class="lang-js prettyprint-override"><code>describe('Api request', () =&gt; {
      it('get json', () =&gt; {
          cy.request({
              method: 'GET',
              url: '/api_endpoint',
              headers: {
                  'API-KEY': 'xxxxxxxxxxxxxxxxx',
              }
          }).as('api_call')
          cy.wait('@api_call').its('response.body').should('contain','name')
                  .then(response =&gt; {
              var someArr = new Array();
               someArr = response.body;
              cy.writeFile('cypress/fixtures/testdata.txt', someArr);
          })
      })
  })
  </code></pre>
  <p>Now this throws the error</p>
  <pre><code>cy.wait() only accepts aliases for routes.
  </code></pre>
  <p>How can I correctly tell Cypress to wait for the request to resolve?</p>
  <p>[edit]I have now tried adding every possible timeout setting from <a href="https://docs.cypress.io/guides/references/configuration#Timeouts" rel="nofollow noreferrer">https://docs.cypress.io/guides/references/configuration#Timeouts</a> and setting them to 90000ms, but it still would not increase the timeout. It still times out after 30 seconds.</p>