Selector is reporting too many/duplicate items
mkascel opened this issue · comments
Mike Kascel commented
I'm evaluating this lib and have run into a strange issue, selecting my component via cy.react
is returning more results than are rendered. Here the selector/assertion I'm using is:
cy.react('ProductPlacement').should('have.length', 1);
But the assertion is failing as cy.react()
is returning two items.
However, I've verified that only one item is rendering, by querying the DOM directly
This is against Cypress 12.8.1 using the latest version of this lib. Any ideas how I could start debugging this?