testing-library / vue-testing-library

🦎 Simple and complete Vue.js testing utilities that encourage good testing practices.
http://testing-library.com/vue
MIT License
1.08k stars 109 forks source link

Form missing emitted data when submit #282

Open maartenvanhunsel opened 2 years ago

maartenvanhunsel commented 2 years ago

Hi all,

I've also opened an issue in the Formkit repository but I still think it's a vue-testing-library related issue.

Describe the bug When logging emailField and passwordField I'm getting the values I've added using fireEvent.update. However when we submit the form @submit is missing the internal formData when using @submit.

To Reproduce Steps to reproduce the behavior: https://stackblitz.com/edit/github-k2bhcr?file=app.vue,nuxt.config.ts,components%2FFormExample.vue,.vscode%2Fsettings.json,components%2FFormExample.test.js

Expected behavior The loginHandler in FormExample.vue should have data which is provided by the form.

Related information:

vcpablo commented 4 months ago

I'm having the same issue here! Any news on that?

jnarowski commented 4 months ago

+1 to this