Skip to content

Conversation

@mya-ake
Copy link
Contributor

@mya-ake mya-ake commented Jun 27, 2018

It's actually happening.

const wrapper = shallowMount(TextareaComponent)
const textarea = wrapper.find('textarea')
textarea.setValue('foo')  // [vue-test-utils]: wrapper.setValue() cannot be called on this element

Because tagName was in lowercase.
https://github.com/vuejs/vue-test-utils/blob/dev/packages/test-utils/src/wrapper.js#L702

I added a test and fixed that tagName was lowercase.

Copy link
Member

@eddyerburgh eddyerburgh left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks 👍

@eddyerburgh eddyerburgh merged commit e83cda2 into vuejs:dev Jun 27, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants