Skip to content
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

Cypress 12 Compatibility #522

Closed
elylucas opened this issue Nov 28, 2022 · 2 comments
Closed

Cypress 12 Compatibility #522

elylucas opened this issue Nov 28, 2022 · 2 comments
Assignees
Labels
dependencies Upgrade or change dependencies

Comments

@elylucas
Copy link

Greetings from the @cypress-io team. Cypress 12 is coming out next week, and some changes might affect your plugin. One of the big changes is introducing a new API to register custom commands, which helps fix one of the oldest and most annoying issues with Cypress, the “Detached DOM” error.

For commands that are classified as queries (mainly used to return something like a DOM element), there is a new Cypress.Commands.addQuery method. The addQuery method greatly simplifies writing custom query commands and has the benefit of not encountering detached DOM errors.

If your plugin currently registers custom command “queries”, we recommend updating your plugin to use the new API for Cypress 12. Note the API is only going to be in Cypress 12 and newer.

To test out a prerelease version of Cypress 12, you can follow the instructions for installing a prerelease binary here, but instead of using the develop branch use the release/12.0.0 branch.

We recommend all plugin authors test their plugins against the Cypress 12 prerelease to check for compatibility.

If you have any questions, contact us by pinging me on this issue or in our Discord server.

You might find our Retry-ability Guide (updated to cover the latest changes), and Cypress 12 Migration Guide | Cypress Documentation helpful as well.

Thanks

@javierbrea javierbrea self-assigned this Nov 29, 2022
@javierbrea javierbrea added the dependencies Upgrade or change dependencies label Nov 29, 2022
@javierbrea
Copy link
Owner

Hi @elylucas,
Thank you for the notice. This plugin does not implement any command querying DOM elements, but anyway I will check the compatibility with Cypress 12.

@javierbrea
Copy link
Owner

Release 2.2.2 is tested using Cypress 12

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
dependencies Upgrade or change dependencies
Projects
None yet
Development

No branches or pull requests

2 participants