Skip to content

[Feature] Warn on use of .getByTitle() #196

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

Closed
unlikelyzero opened this issue Jan 11, 2024 · 3 comments
Closed

[Feature] Warn on use of .getByTitle() #196

unlikelyzero opened this issue Jan 11, 2024 · 3 comments
Labels
enhancement New feature or request released

Comments

@unlikelyzero
Copy link

We are in the process of migrating our codebase to use the no-raw-locators rule to enforce a consistent, accessibility-focused experience for testers.

Through this effort, we found that HTML Titles are now discouraged on our application as they seem to be elsewhere. It would be nice to have the ability to warn on the use of getByTitle

@mskelton mskelton added the enhancement New feature or request label Jan 14, 2024
Copy link

🎉 This issue has been resolved in version 1.0.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

@vladkrasn
Copy link

vladkrasn commented Feb 11, 2024

@mskelton I am getting an error when trying to enable this rule, can it be because it was not added to src/index.ts?

@mskelton
Copy link
Member

@vladkrasn Just pushed a fix and a test so this won't be an issue in the future!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request released
Projects
None yet
Development

No branches or pull requests

3 participants