title: Cypress not finding data-test element
body: <p>Morning/evening everyone. Have a weird issue that, according to the best practices, should just work.
  I have the following element on a page which I need to click:</p>
  
  <p><code>&lt;a data-test="sign-out-link" href="/redirect/onejl/sign-out"&gt;&lt;span&gt;Sign out&lt;/span&gt;&lt;/a&gt;</code></p>
  
  <p>I'm doing this in my test:</p>
  
  <p><code>cy.get('[data-test="sign-out-link"]') .should('be.visible') .click()</code></p>
  
  <p>But cypress times out saying the element cannot be found...</p>
  
  <p>This gives the same behaviour:
  <code>cy.get('a[data-test="sign-out-link"]') .should('be.visible') .click()</code></p>
  
  <p>Even this just fails, which is kinda weird (it should find that text fairly easily):</p>
  
  <p><code>cy.contains('Sign out').click()</code></p>
  
  <p>Anything obvious I'm doing wrong?</p>