title: cy.get('element').contains('text') is not working when I have a string that includes a negative number (e.g. cy.get('element').contains('-1'))
body: <p>I have been using cypress for a couple of months now, but I can't seem to be able to solve this problem.
  I have an array of values ( var valArray=['-1', '-0.5','0', '0.5', '1'] ). And I want to check that all these values are present on a specific page loaded in cypress. I use a for cycle for this:</p>
  <pre><code>    for (var i=0; i&lt;valArray.length; i++)
  {
      cy.get('element1').find('element2').contains('text', valArray[i])   
      
  }
  </code></pre>
  <p>My tests work just fine for all the positive values (0, 0.5, 1), but they fail for the negative ones. <a href="https://i.stack.imgur.com/lFWRf.png" rel="nofollow noreferrer">Error screenshot</a> <a href="https://i.stack.imgur.com/LJ6nP.png" rel="nofollow noreferrer">Elements on the page</a>. I have been looking at other questions but I couldn't find an answer. Can anyone help me out?</p>