ramonvictor / gulp-protractor-qa

Warns whether Protractor locators have their matches within a given set of AngularJS view files
https://www.npmjs.org/package/gulp-protractor-qa
MIT License
59 stars 18 forks source link

added 'data-' attribute to regexList #11

Closed cor03rock closed 9 years ago

stramel commented 9 years ago

It may be better to strip data- off of any attribute for the regex instead of duplicating the code for each type or perhaps extending it to use an array of attrNames instead?

ramonvictor commented 9 years ago

@stramel you are completely right. We need to solve this problem in the core of the module, otherwise we'd need to duplicate all new regex rules. I'll try to fix this in a more appropriate way. Sorry for taking so long to reply.

cor03rock commented 9 years ago

I'll wait for the fix for this @ramonvictor , we really need this tool in our team.

ramonvictor commented 9 years ago

Just a heads up: fix has been published on version 0.1.18. This is the commit that fixes the bug: https://github.com/ramonvictor/gulp-protractor-qa/commit/ff03a15ed35067e92570fcac880e405ba6cde83c#diff-168726dbe96b3ce427e7fedce31bb0bcR128. Sorry for my delay, one more time, and thanks for spotting the issue.