cypress-io / eslint-plugin-cypress

An ESLint plugin for projects that use Cypress

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Add a new rule to prevent chaining get queries

antoninklopp opened this issue · comments

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!