Open
Description
Vuestic-ui version: 1.9.10
Description
- For VaCounter when I set
data-testid
- it's getting set on child input element (.va-input__content__input
) instead of root element (.va-counter
). This is problematic for automated tests as it makes it hard to select an element. - Some elements, like
VaSwitch
andVaCheckbox
if youel.click()
on root element - click doesn't trigger.
Actionable
This issue doesn't seem too pressing, but pretty crucial if we want to have unified automated testing. To make it work we would need the following, I believe:
- For all components check that attributes pass-through to root level element by default (in many cases child components can pick specific attributest for themselves, i.e. for VaCounter - all input props - should go to input).
- Same for classes and styles
- For all clickable elements -
el.click()
should work.
Reproduction
This is repro only for data-testid
case.
Metadata
Metadata
Assignees
Labels
Type
Projects
Status
Backlog