Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Form missing emitted data when submit #282

Open
maartenvanhunsel opened this issue Sep 12, 2022 · 0 comments
Open

Form missing emitted data when submit #282

maartenvanhunsel opened this issue Sep 12, 2022 · 0 comments
Labels
bug Something isn't working

Comments

@maartenvanhunsel
Copy link

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:

  • @testing-library/vue version: 6.6.1
  • Vue version: 3
  • node version: 16.14.2
  • npm (or yarn) version: yarn 1.22.10
@maartenvanhunsel maartenvanhunsel added the bug Something isn't working label Sep 12, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant