title: Cypress testing and waiting for axios requests
body: <p>Can anyone explain how or why my test isn't waiting for my data from an axios request before moving on? I'm completely new to this but have most simple stuff worked out but can't seem to navigate the docs to find where i'm going wrong.
  Here's the relevant info..</p>
  <pre><code>cy.get('.day').eq(4).click() //Change the day
  cy.route('/api/practice/available-slots').as('apiCheck') //Get available slots for that day
  cy.wait('@apiCheck') //Wait for the days available slots to be returned
  </code></pre>
  <p>So you can see below I click the fourth day and my post URL is showing and getting data like it normally does but then my wait function throws that error. I like to think i'm close but as I said i'm new and not entirely sure what's going wrong. Thanks</p>
  <p><a href="https://i.stack.imgur.com/JJkxu.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/JJkxu.png" alt="enter image description here" /></a></p>
  <p>For what it's worth here's the axios request:</p>
  <pre><code>axios
      .post(this.props.reqProto + this.props.reqHost + '/api/practice/available-slots', {
        startDate: this.state.appointmentSlotsDate,
      })
      .then((res) =&gt; {
            ....
       }
   })
  </code></pre>