-
-
Notifications
You must be signed in to change notification settings - Fork 190
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use Cypress plugins with synpress? #346
Comments
I think currently the issue is that synpress is not loading the cypress index.js, since I can also not define commands there, therefor plugins defined there are also not taken into consideration, my workaround is to use a forked version of synpress currently and modify the synpress index.js to my needs |
Thanks for the response! I ended up doing the following as a workaround: import synpressPlugins from "@synthetixio/synpress/plugins"
module.exports = (on, config) => {
synpressPlugins(on, config)
} Support file ( import "./commands"
import "@synthetixio/synpress/support" I'm passing this option to |
Nice workaround!
And I pass the config file to the synpress run like so: |
That's how I also tried originally. For some reason this way the commands only seemed to load with The whole command looks like this: Closing the issue, since my original problem has been resolved. |
Is it possible to use Cypress plugins?
I defined these in
cypress.json
:But the plugins only seem to be loaded when using
synpress open
not withsynpress run
.I would like to use
cypress-file-upload
and custom commands.I also can't see any plugin-related folders is the example project structure in the README.
The text was updated successfully, but these errors were encountered: