bahmutov / cypress-if

Easy conditional if-else logic for your Cypress tests when there is no other way
https://cypress.tips/courses/cypress-plugins
99 stars 12 forks source link

Add "finally"? #16

Closed bahmutov closed 2 years ago

bahmutov commented 2 years ago

Should we have the .finally() command?

cy.get('#checkbox')
  .if('not.checked')
  .check()
  .else()
  .log('already checked')
  .finally()
  .should('be.checked')
fleks-dev commented 2 years ago

Yes, please!

bahmutov commented 2 years ago

What should be the subject yielded to the finally() commands: the original subject before the ".if()" command or the subject of the path taken (could be yielded by .if or .else)

On Wed, Aug 31, 2022 at 7:53 PM ktxxt @.***> wrote:

Yes, please!

— Reply to this email directly, view it on GitHub https://github.com/bahmutov/cypress-if/issues/16#issuecomment-1233564661, or unsubscribe https://github.com/notifications/unsubscribe-auth/AAQ4BJUJWHIE2AIZNSRE32TV37V55ANCNFSM6AAAAAAQBYXJR4 . You are receiving this because you authored the thread.Message ID: @.***>

-- Dr. Gleb Bahmutov, PhD

Schedule video chat / phone call / meeting with me via https://calendly.com/bahmutov @. @bahmutov @.> https://glebbahmutov.com/ https://glebbahmutov.com/blog https://github.com/bahmutov

github-actions[bot] commented 2 years ago

:tada: This issue has been resolved in version 1.5.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: