Skip to content

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
Owner

My mistake, this is indeed valid.

@mskelton mskelton merged commit 917aced into mskelton:main Jul 28, 2025
0 of 3 checks passed
@github-actions
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 <[email protected]>
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