title: How to return string value with .wrap and cypress command feature
body: <p>I have a code :</p>
  <pre><code>Cypress.Commands.add('getLabelText', (parentSelector: string, label: string) =&gt; {
    var result: string= '';
    cy.get(parentSelector).within(() =&gt; {
      cy.get(`[aria-label=&quot;${label}&quot;]`).then(el =&gt; {
        result.replace(el.text(), '')
      })
      return cy.wrap(result)
    })
  })
  </code></pre>
  <p>I have tried many different ways to assign new value to string, this example is just one of those.</p>
  <p>I want to return element text and use it like :</p>
  <pre><code> verifyText: () =&gt; {
      cy.getLabelText(locator, expectedString).then(value =&gt; {
        expect(value).to.eq(expectedString)
      })
    },
  </code></pre>
  <p>Cypress will return locatro insted of text:</p>
  <pre><code>expected '&lt;div.v-data-table.summary-table.v-data-table--dense.v-data-table--fixed-height.theme--light&gt;' to equal 'expectedString'
  </code></pre>
  <p>Any suggestion?</p>