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/no-pause is not working if the command is chained #147

Closed
TobiasHH opened this issue Jan 10, 2024 · 5 comments · Fixed by #189
Closed

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

TobiasHH opened this issue Jan 10, 2024 · 5 comments · Fixed by #189

Comments

@TobiasHH
Copy link

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();

@tom9744
Copy link
Contributor

tom9744 commented Apr 23, 2024

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.

@MikeMcC399
Copy link
Collaborator

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.

@tom9744
Copy link
Contributor

tom9744 commented Apr 23, 2024

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?

@jennifer-shehane
Copy link
Member

@tom9744 Yes, PRs are welcome!

@cypress-app-bot
Copy link

🎉 This issue has been resolved in version 3.1.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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

Successfully merging a pull request may close this issue.

5 participants