We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
function bar() { return cy.wrap("testing") .if() .then(() => cy.wrap("got it")) .else() .then(() => cy.wrap("else do")) } bar().then(it => { cy.log(`result: ${it}`) })
Will print
wrap: testing wrap: got it
I would have expected to see
wrap: testing wrap: got it log: result: got it
I get the expected output if I comment out the else branch
function bar() { return cy.wrap("testing") .if() .then(() => cy.wrap("got it")) // .else() // .then(() => cy.wrap("else do")) }
I am a beginner with Cypress and cypress-if, wondering what's up with this behaviour.
"cypress-if": "^1.10.2", "cypress": "10.11.0", "cypress-fail-fast": "^3.4.1",
The text was updated successfully, but these errors were encountered:
000b791
🎉 This issue has been resolved in version 1.10.3 🎉
The release is available on:
Your semantic-release bot 📦🚀
Sorry, something went wrong.
No branches or pull requests
Will print
I would have expected to see
I get the expected output if I comment out the else branch
I am a beginner with Cypress and cypress-if, wondering what's up with this behaviour.
The text was updated successfully, but these errors were encountered: