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

exist Chai override does not allow chaining for HTML elements #25491

Open
thoughtbot-summer opened this issue Jan 18, 2023 · 0 comments
Open
Labels
E2E Issue related to end-to-end testing type: feature New feature that does not currently exist

Comments

@thoughtbot-summer
Copy link

Current behavior

When you chain an assertion off of exist for an HTML element (not jQuery selector), the test fails with AssertionError: Timed out retrying after 4000ms: expected null to exist.

Desired behavior

When you chain an assertion off of exist for an HTML element, the test should pass.

Test code to reproduce

cy.document().then((doc) => {
	cy.wrap(doc.body).should('exist').and('exist')
})

Cypress Version

12.3.0

Node version

16.16.0

Operating System

Ubuntu Desktop 22.10

Debug Logs

No response

Other

No response

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
E2E Issue related to end-to-end testing type: feature New feature that does not currently exist
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants