I have a page with two element containing the "some text", but cannot confirm it in my test.
Simplest example is this:
<div>some text</div>
<div>some text</div>
const selector = 'div'
const text = 'some text'
cy.get(selector)
.contains(text)
.should('have.length', 2);
Cypress log
expected to have a length of 2 but got 1