cypress-io / eslint-plugin-cypress

An ESLint plugin for projects that use Cypress

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

cypress/no-pause is not working if the command is chained

TobiasHH opened this issue ยท comments

I using Intellij with eslint in my Project.

If I use pause as a parent command the linter works fine.

cy.pause();

If I use pause as a child command nothing is highlighted.

cy.get('p').pause();

Hi, It seems like this is an expected behavior because the document(docs/rules/no-pause.md) says usages like cy.get("p").pause() won't be detected.

Thanks for your comment @tom9744!

It seems like this is an expected behavior because the document(docs/rules/no-pause.md) says usages like cy.get("p").pause() won't be detected.

I've changed the bug label to type: enhancement instead.

Though I'm quite new to this project, I want to give it a shot and try resolving the issue. Could I work on it?

@tom9744 Yes, PRs are welcome!

๐ŸŽ‰ This issue has been resolved in version 3.1.0 ๐ŸŽ‰

The release is available on:

Your semantic-release bot ๐Ÿ“ฆ๐Ÿš€