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

Correctly skip the entire else chain #15

Closed
bahmutov opened this issue Aug 31, 2022 · 1 comment
Closed

Correctly skip the entire else chain #15

bahmutov opened this issue Aug 31, 2022 · 1 comment
Labels
bug Something isn't working released

Comments

@bahmutov
Copy link
Owner

In this situation

cy.get('[htmlfor="toggle-all"]', { timeout: 0 })
  .if('visible')
  .click()
  .get('.clear-completed')
  .click()
  .else()
  .log('**nothing to complete**');

If executes the "if" commands, yet still logs "nothing to complete" because it does not skip the entire "else" branch
Screen Shot 2022-08-31 at 09 42 11

@bahmutov bahmutov added the bug Something isn't working label Aug 31, 2022
@github-actions
Copy link

🎉 This issue has been resolved in version 1.4.4 🎉

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

No branches or pull requests

1 participant