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

dirty-chai causing issues with Cypress .should() assertion #55

Open
brandon-sun1 opened this issue Jul 18, 2024 · 0 comments
Open

dirty-chai causing issues with Cypress .should() assertion #55

brandon-sun1 opened this issue Jul 18, 2024 · 0 comments

Comments

@brandon-sun1
Copy link

brandon-sun1 commented Jul 18, 2024

I'm trying to use the dirty-chai plugin with the Cypress testing library to avoid terminating property access assertions, but it seems to have a strange effect on .should() - I have an assertion that reads cy.get('element').should('not.exist'), but when executing the assertion, it shows the opposite assertion, saying that the element is expected to exist in the DOM.
image
Is dirty-chai compatible with Cypress and if not, is there a library that performs a similar function?

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