We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
In #775, select.setValue('abc') support was added (https://vue-test-utils.vuejs.org/api/wrapper/#setvalue) It would be nice to extend this method and support array values when it's a multiselect.
select.setValue('abc')
If you don't mind, I could try making a PR
const wrapper = mount(Foo) wrapper.get('select').setValue(['abc', 'def'])
The text was updated successfully, but these errors were encountered:
I thought this was already supported 🤔
If not, sure, we should support this!
Sorry, something went wrong.
Hi, I finally found a time for a PR: #1554 :)
allow array for multiselect .setValue() method (#1554)
4d4a5f3
* feat(wrapper.setvalue): allow array for multiselect .setValue() method enables Wrapper.setValue() method to accept array value for select elements (requires select to have an attribute 'multiple' or 'multiple="true"') fix #1505 * fix "missing property" error * Update test/specs/wrapper/setValue.spec.js Co-authored-by: Adrià Fontcuberta <[email protected]> * Update test/specs/wrapper/setValue.spec.js Co-authored-by: Adrià Fontcuberta <[email protected]> Co-authored-by: Adrià Fontcuberta <[email protected]>
Successfully merging a pull request may close this issue.
What problem does this feature solve?
In #775,
select.setValue('abc')
support was added (https://vue-test-utils.vuejs.org/api/wrapper/#setvalue)It would be nice to extend this method and support array values when it's a multiselect.
If you don't mind, I could try making a PR
What does the proposed API look like?
The text was updated successfully, but these errors were encountered: