-
-
Notifications
You must be signed in to change notification settings - Fork 6.3k
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
cli-plugin-e2e-cypress should allow a different version of cypress #5352
Comments
Temporary workaround until in
note: you can replace The Note: Using a version not supported by the plugin may have ill-side effects and any issues you may have might be caused by using a different version. I have not had any so far, and you get Firefox support! |
I do get the below error when using cypress 4.3.0 in this cli-plugin-e2e-cypress and I really need min 4.3.0 version for cypress because of other dependencies. Is the above patch working for you? @EfChouTR @tschoartschi Error: The handler for the event |
@smarandav we didn't try |
@smarandav it looks like you may be running into this issue? cypress-io/cypress#6853 It was always tossed as a warning but never properly caught until v4.2+ if you are requiring task, return the object in the method per the below comment: |
@EfChouTR |
@Mikilll94 you would have to use something like https://github.com/rogeriochaves/npm-force-resolutions to achieve the same outcome as yarn's resolutions field |
@EfChouTR |
So many different solutions to the same problem; glad you found one that works! |
This would be very helpful. As someone currently using npm, I would prefer not to hack around using npm-resolutions. The ability to open cypress and start the vue server with one command is handy; however the newer versions of cypress have a more robust feature set that (especially source mapping after 4.6.0) which outweight the convenience of a single command imo. Having the ability to use new versions of cypress with this wrapper would be the best of both worlds |
I really wanted to see an example but it is actually pretty easy to setup and run cypress!
Don't forget to add
Accordingly, here is my {
"pluginsFile": "tests/e2e/plugins/index.js",
"baseUrl": "http://localhost:3000",
"includeShadowDom": true
} You probably wont need |
Fixed in v4.5.9 and v5.0.0-alpha.0 |
What problem does this feature solve?
Cypress is always asking users to update, but cli-plugin-e2e-cypress pins the version that will actually be used. Could the plugin give the user more leeway in choosing their version of Cypress? It would need to invoke cypress from the project's node_modules instead of from the cypress stored in the plugin's dependencies.
What does the proposed API look like?
The user would supply a "cypress" : "x.y.z" dependency in their own package.json instead of in node_modules/@vue/cli-plugin-e2e-cypress/package.json
The text was updated successfully, but these errors were encountered: