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

Do not skip finally #18

Closed bahmutov closed 2 years ago

bahmutov commented 2 years ago
it.only('yields the IF subject', () => {
  cy.wrap(1)
    .if('equal', 1)
    .then(() => 101)
    .else()
    .then(() => -1)
    .finally()
    .should('equal', 101)
})

Skips the finally and should assertion

Screen Shot 2022-09-01 at 06 53 55
github-actions[bot] commented 2 years ago

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

The release is available on:

Your semantic-release bot :package::rocket: