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

Add a new rule to prevent chaining get queries #134

Open
antoninklopp opened this issue May 19, 2023 · 0 comments
Open

Add a new rule to prevent chaining get queries #134

antoninklopp opened this issue May 19, 2023 · 0 comments

Comments

@antoninklopp
Copy link

As stated in the cypress documentation, cy.get() searches from the root element, thus it seems that there is no point in chaining two cy.get() (like cy.get().get()) and most of the time, what is really wanted is to do cy.get().find().

I am willing to give this rule a try if you think this is relevant!

@antoninklopp antoninklopp changed the title Add a new rule to prevent chaining get query Add a new rule to prevent chaining get queries May 19, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants