title: Timed out retrying after 4000ms: Cannot read properties of undefined (reading 'toLowerCase')
body: <p>I am receiving a strange error when I am trying to perform an assertion via cypress and just need some assistance. All I am trying to do is display that a selection is added into the bet slip.</p>
  <p>The error I am receiving is:</p>
  <pre><code>get Object{5}
  
  assert expected { Object (0, length) } to be visible
  
  Timed out retrying after 4000ms: Cannot read properties of undefined (reading 'toLowerCase')
  </code></pre>
  <p>This happens in this step:</p>
  <pre><code>And (&quot;The number of elements is {string}&quot;, (number) =&gt; {
    cy.get(elements.selection()).should('be.visible').should('have.length', number);
  })
  </code></pre>
  <p>The element it points to is:</p>
  <pre><code>class Elements {
  
      selection(){
          return cy.get('.__selection')
      }
  }
  
  export default Elements
  
     
  </code></pre>