Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Selector is reporting too many/duplicate items #418

Open
mkascel opened this issue Mar 31, 2023 · 0 comments
Open

Selector is reporting too many/duplicate items #418

mkascel opened this issue Mar 31, 2023 · 0 comments

Comments

@mkascel
Copy link

mkascel commented Mar 31, 2023

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.

Screenshot 2023-03-31 at 16 10 10

However, I've verified that only one item is rendering, by querying the DOM directly

Screenshot 2023-03-31 at 16 11 05

This is against Cypress 12.8.1 using the latest version of this lib. Any ideas how I could start debugging this?

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant