triggering test with submit event in form jest vue code example
Example: vue test form input
wrapper.get('input[name=username]').setValue('someone')
await wrapper.vm.$nextTick() // is required to take effect.
wrapper.get('input[name=username]').setValue('someone')
await wrapper.vm.$nextTick() // is required to take effect.