title: cy.wait() timed out waiting 5000ms for the 1st request to the route
body: <p>I am new to <code>Cypress</code> and  i am checking HTML page. I need to test the login authentication and to log <code>XHR</code> body.
  So, I wrote a test like :</p>
  
  <pre><code>describe('Login test', function () {
  
      it("Test description", () =&gt; {
          cy.server();
          cy.visit("login");
  
          cy.route({
              method: "POST",
              url: '/login'
          }).as("login");
  
          cy.get('#username')
              .type(Cypress.env('Account'));
  
          cy.get('#password')
              .type(Cypress.env('Password'));
  
          cy.get('#login')
              .click();
  
          cy.wait("@login").then(xhr =&gt; {
              cy.log(JSON.stringity(xhr.response.body));
          });
  
      });
  });
  </code></pre>
  
  <p>The test fail with a log of :</p>
  
  <p>CypressError: Timed out retrying: cy.wait() timed out waiting 5000ms for the 1st request to the route: 'route_login'. No request ever occurred.</p>
  
  <p>can any one help please ?</p>