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 "data-*" attributes that were incorrectly prefixed with this #51

Conversation

suchitadoshi1987
Copy link

Fixes #48

@rwjblue
Copy link
Member

rwjblue commented Dec 11, 2019

Hmm, I don't think we can assume that all data-* paths are not supposed to be this paths. 🤔

@suchitadoshi1987
Copy link
Author

hmmm... wondering what would be the potential use-cases where data-* paths would not be attributes

@Turbo87
Copy link
Contributor

Turbo87 commented Dec 14, 2019

I tend to agree with @rwjblue. This should be a configurable option. Though ideally we'd finally retire that pattern of positional data-test arguments. Inventing that was a bad idea in the first place... sorry 😞

Guess it's time to write a codemod to finally remove them 🤔

@suchitadoshi1987
Copy link
Author

Agreed, like @Turbo87 pointed out, https://github.com/simplabs/ember-test-selectors-params-codemod would solve this issue. Closing this PR in favor of that.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

'data-test-' attributes are incorrectly prefixed with 'this' for curly bracket components
3 participants