title: Cypress expect element to contain one string or another string
body: <p>I'm trying to do some Cypress assertions to see whether or not it contains one or another string. It can be in English or Spanish, so either one should pass the test.</p>
  
  <pre><code>cy.get(el).should('contain', 'submit').or('contain', 'enviar')
  </code></pre>
  
  <p>obviously doesnt work.</p>
  
  <pre><code>  const runout = ['submit', 'enviar']
    const el = '[data-test=btn-submit]'
    function checkArray(arr, el) {
      for(let i = 0; i &lt; arr.length; i++) {
        if(cy.get(el).contains(arr[i])) {
          return true
        } else {
          if (i === arr.length) {
            return false
          }
        }
      }
    }
    cy.expect(checkArray(runout,el)).to.be.true
  </code></pre>
  
  <p>fails the test, still checking both strings.</p>