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

Error Rule does not apply when you are using page objects #84

Open
agutierrezasapp opened this issue Aug 24, 2021 · 2 comments
Open

Error Rule does not apply when you are using page objects #84

agutierrezasapp opened this issue Aug 24, 2021 · 2 comments

Comments

@agutierrezasapp
Copy link

Hello team,
I'm using eslint-plugin-cypress and I defined the rule 'cypress/no-force': 'error'm but if I have a Page object that executes a click, I can use the ({force: true}) without any error
adminPage.objectToClick().click({ force: true })
Is there any way to fix that?

@TomaszG-OpenX
Copy link

It seems that other rules don't work too with Page Object Model approach, e.g. cypress/unsafe-to-chain-command nor cypress/no-unnecessary-waiting.

image

@MikeMcC399
Copy link
Collaborator

@TomaszG-OpenX

Thanks for your feedback! I have changed the label to an enhancement.

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

3 participants