-
-
Notifications
You must be signed in to change notification settings - Fork 28
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
Non-existent components fail should("not.exist") assertions #96
Comments
Thanks for raising this. Will look over the weekend. Appreciate a PR to fix this. |
Hi @caseyjhol , the fix is avialble in |
Awesome - thanks! I'll try this out and let you know how it goes. |
Gave this a try and it seems to be fixed - thanks again! |
Thanks @caseyjhol. Good to know. If this library helping you in your development journey, you can optionally choose to sponsor/ support ❤️ . |
I'm trying to assert that there are 0 AccountCards on the page.
cy.react("AccountCard").should("not.exist")
throws:So, it's correct - the component is not found. However, I would expect for the assertion to pass, not fail.
cy.react("AccountCard").should("have.length", 0);
runs into a similar issue.The text was updated successfully, but these errors were encountered: