title: Check email body using cypress mailhog
body: <p>I'm trying to check if the email body contains, for example, a username, but i get this error saying that the value is undefined</p>
  <pre class="lang-js prettyprint-override"><code>it.only('User info', () =&gt; {
    const email= cy.mhGetMailsBySubject('Your account is now  confirmed')
    .mhFirst().mhGetBody().should('contain', 'Thanks for the verification')
    email.should('contain', 'username')
  
  })
  </code></pre>
  <blockquote>
  <p>its.Body
  CypressError Timed out retrying after 4000ms: cy.its()
  errored because your subject is: undefined. You cannot access any
  properties such as Body on a undefined value.</p>
  <p>If you expect your subject to be undefined, then add an assertion such
  as:</p>
  <p>cy.wrap(undefined).should('be.undefined')</p>
  </blockquote>
  <p>Is there a better way to do it?</p>