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

Seems not.exist assertion does not work correctly #45

Closed
bahmutov opened this issue Oct 18, 2022 · 2 comments · Fixed by #46
Closed

Seems not.exist assertion does not work correctly #45

bahmutov opened this issue Oct 18, 2022 · 2 comments · Fixed by #46
Labels
bug Something isn't working released

Comments

@bahmutov
Copy link
Owner

In the example below, it should take the IF path

it('checks an element that does not exists using not.exist', () => {
  cy.get('#not-found').should('not.exist')
  cy.get('#not-found')
    .if('not.exist')
    .then(cy.spy().as('if'))
    .else()
    .then(cy.spy().as('else'))
  cy.get('@if').should('have.been.calledOnce')
  cy.get('@else').should('not.have.been.called')
})
@bahmutov bahmutov added the bug Something isn't working label Oct 18, 2022
@github-actions
Copy link

🎉 This issue has been resolved in version 1.10.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@github-actions
Copy link

🎉 This issue has been resolved in version 1.10.2 🎉

The release is available on:

Your semantic-release bot 📦🚀

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working released
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant