1

Once I installed cypress-if plugin and add import "cypress-if" to e2e file Cypress is down. I have this message error : > Cannot overwite the get query. Queries can only be overwritten with Cypress.Commands.overwriteQuery().

Until now, i didn't use it yet in spec test :(

enter image description here

How to resolve the probleme please

Kimdom
  • 11
  • 4

1 Answers1

0

You can't resolve it, unfortunately Cypress dropped the feature for overwriting the get query after version 11.2.0.

We must wait until this issue is resolved. You can subscribe to the issue and watch the progress.

If you really want to use it, you can drop to 11.2.0 version. If not, re-write the .if() occurrences (if you have any) to "normal" Cypress by following this guide, and remove the cypress-if plugin until it becomes available again.

Darko Riđić
  • 459
  • 3
  • 18