-
Notifications
You must be signed in to change notification settings - Fork 39
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
[New Rule] Add a rule to verify that a locator has an action verb / method / assertion #197
Comments
do you mean the rule to make sure every locator variable is used/called in a function? So that no locator variable is not used |
This feels like quite an edge case. I've been thinking about this for a bit and I don't think it really makes sense to include in the plugin. Going to close as not planned. |
@mskelton understood |
@mskelton so, I just found out that await page.getByRole('searchbox', { name: 'Search Input' }); Was missed in the conversion from |
We're in process of migrating from page.click('badlocator') to page.goodlocatorstrategy().click() and are finding it difficult to be precise when changing 700+ references. It would be great if we could ensure that the locator had an action verb / method / assertion at the end of a locator
The text was updated successfully, but these errors were encountered: