LinusBorg / LinusBorg/vue-cli-plugin-test-attrs
Match all the attributes beginning with `data-test-*`
- Dominant language
- JavaScript
- Stars
- 62
- Forks
- 9
- PR merge metrics
- No merged PRs in 30d
Description
Good morning sir,
Wouldn't it be better to match all the dataset attributes beginning with `data-test` instead of only matching `data-test`.
Per example, in the same page I may have `data-test-title` and `data-test-button`. Both are different elements that I want to test separately, instead of setting it's value in the attribute because I find this shorter and faster to type.
Example:
```html
My button
My title
```
In general, I target those elements by using `querySelector('[data-test-button]')`
What are your opinions about this? Perhaps support both notations?
Thank you.
Contributor guide
No contributing guide indexed for this repository
Research direction
No file or test is named in the issue. Start by locating the compiler plugin code that currently matches data-test and inspect its existing tests; done means supporting both data-test and data-test-* attributes, including data-test-button and data-test-title from the example.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- javascript
- Domain
- testing-qa
- Issue type
- Feature
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100