0👍
You could try the following:
const checkboxA = wrapper.find('.checkboxA').get('input')
checkboxA.setChecked()
or you could attach a test specific attribute like data-test
and it seems the attribute will be appended directly to the input tag so you could do:
const checkboxA = wrapper.find('[data-test="checkboxA"]')
checkboxA.setChecked()
- [Vuejs]-ChartJS loading errors from axios API call in Vue.js
- [Vuejs]-Elements disappear in the wrong order, in vue.js
Source:stackexchange.com