Skip to content

#373 - Allow valid locators declared as variables #376

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

MSroczynski3
Copy link
Contributor

This PR updates the no-raw-locators.ts to allow properly defined locators to be passed as variables. I have added both positive and negative test cases.

@mskelton

This comment was marked as off-topic.

@mskelton mskelton closed this Jul 28, 2025
@mskelton mskelton reopened this Jul 28, 2025
@mskelton
Copy link
Member

My mistake, this is indeed valid.

@mskelton mskelton merged commit 917aced into playwright-community:main Jul 28, 2025
0 of 3 checks passed
Copy link

🎉 This PR is included in version 2.2.1 🎉

The release is available on:

Your semantic-release bot 📦🚀

@MSroczynski3 MSroczynski3 deleted the fix/allow-valid-locators-as-variables branch July 30, 2025 19:05
carlbray pushed a commit to carlbray/eslint-plugin-playwright that referenced this pull request Aug 17, 2025
* Allow valid locators declared as variables

* Format

---------

Co-authored-by: Mark Skelton <mdskelton99@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants