Skip to content
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

fix: Allow aliases in require-data-selectors rule #59

Merged
merged 1 commit into from
May 19, 2020
Merged

fix: Allow aliases in require-data-selectors rule #59

merged 1 commit into from
May 19, 2020

Conversation

Hyzual
Copy link
Contributor

@Hyzual Hyzual commented May 19, 2020

Hi !
This should fix #44.
It considers valid selectors that start with the character @ as well as those that start with [data-.
I've added tests for both string and template literals.
Please let me know if I've missed anything or if there is a formatting problem.
Thanks for maintaining this eslint plugin ! :)

Copy link
Contributor

@chrisbreiding chrisbreiding left a comment

Choose a reason for hiding this comment

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

Looks good - thanks!

@chrisbreiding chrisbreiding changed the title fix: rule require-data-selectors should allow aliases fix: Allow aliases in require-data-selectors rule May 19, 2020
@chrisbreiding chrisbreiding merged commit 0964b4e into cypress-io:master May 19, 2020
@chrisbreiding
Copy link
Contributor

🎉 This PR is included in version 2.11.0 🎉

The release is available on:

Your semantic-release bot 📦🚀

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.

require-data-selectors rule should not apply to cy.get('@alias')
2 participants