cypress-io / eslint-plugin-cypress

An ESLint plugin for projects that use Cypress
MIT License
701 stars 89 forks source link

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

Open agutierrezasapp opened 3 years ago

agutierrezasapp commented 3 years ago

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 commented 2 months ago

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 commented 2 months ago

@TomaszG-OpenX

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