title: Cypress - Having trouble asserting on requests using cy.intercept. 'cy.its() errored because the property: request does not exist on your subject.'
body: <p>I'm trying to assert on the request body to ensure the correct new test card is passed as part of the order.</p>
  <pre><code>it(&quot;User clicks confirm &amp; pay button to complete order&quot;, () =&gt; {
      cy.intercept(&quot;/api/checkout/payandcommit&quot;).as(&quot;placeOrder&quot;);
      cy.placeOrderAndPay();
      cy.wait(&quot;@placeOrder&quot;)
        .its(&quot;response.statusCode&quot;)
        .should(&quot;eq&quot;, 200)
        .its(&quot;request.body&quot;)
        .should(&quot;include&quot;, &quot;cardNumber&quot;, 370000000000002);
    });
  </code></pre>
  <p>All is good upto verfying the status code then it breaks.</p>
  <p>This is the error thrown:</p>
  <pre><code>Timed out retrying: cy.its() errored because the property: request does not exist on your subject.
  
  cy.its() waited for the specified property request to exist, but it never did.
  
  If you do not expect the property request to exist, then add an assertion such as:
  
  cy.wrap({ foo: 'bar' }).its('quux').should('not.exist')
  </code></pre>
  <p>If i comment out the status code assertion this new error is thrown: object tested must be an array, a map, an object, a set, a string, or a weakset, but object given.</p>
  <p>Any help getting this working would be much appreciated!</p>