[Vuejs]-Vuetify VCheckbox emitts event "update:modelValue" after setValue

0👍

wrapper setValue is for HTML input elements, not components. VCheckbox is a VueComponent so you probably want to use await wrapper.findComponent<typeof VCheckbox>(checkBoxSelector).value = true;

if you want to set the HTML input value you can also:
await wrapper.get('.text-field__input').setValue(true)

you can find the issue here:

https://github.com/vuejs/vue-test-utils/issues/1883

Leave a comment