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

Upgraded to Cypress 12.17.4 and Cypress-if started throwing error even before the suite started #70

Closed KRajeshBabu closed 1 year ago

KRajeshBabu commented 1 year ago

Here is the error message from Cypress runner The following error originated from your test code, not from Cypress. Cannot overwite the get query. Queries can only be overwritten with Cypress.Commands.overwriteQuery(). When Cypress detects uncaught errors originating from your test code it will automatically fail the current test. Cypress could not associate this error to any specific test. node_modules/cypress-if/src/index.js:230:1

image

bahmutov commented 1 year ago

Are you using the latest version of cypress-if plug-in?Sent from my iPhoneOn Aug 23, 2023, at 12:57, Ragova @.***> wrote: Here is the error message from Cypress runner The following error originated from your test code, not from Cypress. Cannot overwite the get query. Queries can only be overwritten with Cypress.Commands.overwriteQuery(). When Cypress detects uncaught errors originating from your test code it will automatically fail the current test. Cypress could not associate this error to any specific test. node_modules/cypress-if/src/index.js:230:1

—Reply to this email directly, view it on GitHub, or unsubscribe.You are receiving this because you are subscribed to this thread.Message ID: @.***>

KRajeshBabu commented 1 year ago

Mine is "1.10.4" and latest is "1.10.5". Once I did upgrade to latest, it did worked fine. Sorry for the trouble.