[Vuejs]-Quasar jest test does not find elements with name tag

1👍

I expect it’s because q-item-label does not have a “name” field as part of its API.

Try:

<q-item>
<q-item-label ref="testLabel">Label</q-item-label>
</q-item>

And then:

expect(wrapper.find({ ref: "testLabel" }).exists()).toBe(true)

Leave a comment