Closed
Description
Suggestion for additional functionality
Currently, there is no functionality built into vue-test-utils
to select elements within a component based on $refs
and return them within a Wrapper. Our test suite is built around the idea that we can easily tag elements we need to hook onto within tests using $ref
rather than some arbitrary "marker class."
I think it might be helpful to include a specific method on the wrapper like findRefs
I'm not sure if this is a widely used strategy but we've found it helpful. Template structures change often and class selectors can easily break or target the wrong element when these changes happen.