-
Notifications
You must be signed in to change notification settings - Fork 669
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
Set values with vee-validate does not work? #831
Comments
I think this is related below. |
I noticed if you use |
@lmiller1990 is correct. You're using shallowMount which stubs child components, so the base-input component doesn't render an input for v-validate to bind to. You need to use |
Version
vue-test-utils: 1.0.0-beta.12
vee-validate: 2.1.0-beta6
Reproduction link
https://codesandbox.io/s/qqml72wz04
See
components/LoginUser.test.js
the URL of the form
https://qqml72wz04.codesandbox.io/login
My test is failing because I can't set the vee-validate field value wrapped in custom component, however
the form is working in the browser, but jest says NO errors.
Steps to reproduce
What is expected?
All tests should pass.
What is actually happening?
Tests failed
If i change the code this way
then my second test is working. So how to properly assign values to fields defined by custom components?
The text was updated successfully, but these errors were encountered: