Skip to content

Feature add no force option rule #47

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

Conversation

elaichenkov
Copy link
Contributor

#43

@@ -22,6 +23,7 @@ module.exports = {
"playwright/no-focused-test": "error",
"playwright/no-skipped-test": "warn",
"playwright/no-wait-for-timeout": "warn",
"playwright/no-force-option": "warn",
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This one, I'm not sure about for the default rules, I can see both sides. @mxschmitt Thoughts?

Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

usually you never have to use force. Only when Playwright has bugs or the application which you are testing does not follow the accessibility standards. So I'd vote for emitting a warning, if users scream, we can change it anyway or they disable the rule manually.

@elaichenkov elaichenkov requested a review from mskelton April 24, 2022 10:04
@mskelton mskelton merged commit ad54147 into playwright-community:master Apr 28, 2022
@mxschmitt mxschmitt mentioned this pull request Apr 28, 2022
3 tasks
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants