bahmutov / cypress-if

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

feat: add .else() command #9

Closed bahmutov closed 2 years ago

bahmutov commented 2 years ago
cy.get('#enrolled')
  .if('checked')
  // .log('**already enrolled**')
  .else()
  .check()
cy.get('#enrolled').should('be.checked')
github-actions[bot] commented 2 years ago

:tada: This PR is included in version 1.3.0 :tada:

The release is available on:

Your semantic-release bot :package::rocket: