Search code examples
javascriptnode.jsautomationcypressend-to-end

How to use third party plugin inside Cypress version 11 latest version?


We are trying to migrate from cypress v8 to cypress v11.

We were using cypress-wait-until and cypress-plugin-tab

As the support file configuration is now deprecated, tried to import these support inside cypress.config.ts

But after importing getting error as ReferenceError: Cypress is not defined

What is the correct way of configuration, any example will be helpful and appreciated.


Solution

  • These libraries use neither config nor nodejs, so cypress.config.js is not the place you should be using them.

    The place to import them is /cypress/support/e2e.js

    Please read about the support file in the Cypress docs here: Support file