title: How to set cookies within Cypress testing?
body: <p><a href="https://i.stack.imgur.com/dT3kg.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/dT3kg.png" alt="Cypress Cookie Setting"></a></p>
  
  <p>this example taken from the Cypress documentation won't work properly:</p>
  
  <pre><code>cy.getCookies().should('be.empty');
  cy.setCookie('session_id', '189jd09sufh33aaiidhf99d09');
  cy.getCookie('session_id').should('have.property', 'value', '189jd09sufh33aaiidhf99d09');
  </code></pre>
  
  <p>Every time I try to setCookie(), it appears to set it without issue but always returns this when I call getCookies():</p>
  
  <pre><code>$Chainer {chainerId: "chainer18", firstCall: false}
  chainerId: "chainer18"
  firstCall: false
  __proto__: Object
  </code></pre>
  
  <p>Is there something I'm missing here?</p>