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

cypress-if does not work anymore with cypress 11.2.0 #56

Closed nam-edi closed 1 year ago

nam-edi commented 1 year ago

Hello, since I updated my cypress from version 10 to version 11, the cypress-if plugin does not work anymore. Even when an element does not exist, it enters the if() condition.

Capture d’écran 2022-11-24 à 10 45 20

The element is not present (you can see the 0 next to the get), yet the statement in the if is executed