You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Issue: When selecting a sub-component of the main wrapper by ref, e. g. via wrapper.find({ref: 'myRef'})
the resulting wrapper cannot execute further find or exists methods:
'$ref selectors can only be used on Vue component wrappers'
Possible reason: find returns new Wrapper(...) directly, without calling VueWrapper. Which in turn means, selectorTypes.OPTIONS_OBJECT is used for ref selectors no matter what the ref target is, whereas selectorTypes.VUE_COMPONENT should apply in the particular case if target is a component itself.
The text was updated successfully, but these errors were encountered:
Issue: When selecting a sub-component of the main wrapper by ref, e. g. via
wrapper.find({ref: 'myRef'})
the resulting wrapper cannot execute further
find
orexists
methods:wrapper.find({ref: 'myRef'}).find({ref: 'myRefSubref'})
Possible reason:
find
returnsnew Wrapper(...)
directly, without calling VueWrapper. Which in turn means,selectorTypes.OPTIONS_OBJECT
is used forref
selectors no matter what the ref target is, whereasselectorTypes.VUE_COMPONENT
should apply in the particular case if target is a component itself.The text was updated successfully, but these errors were encountered: