From e83cda2985ce465fcf6d58cab24f5ce2ac640400 Mon Sep 17 00:00:00 2001 From: mya-ake Date: Thu, 28 Jun 2018 03:58:38 +0900 Subject: [PATCH] fix: support setValue on textarea (#764) --- packages/test-utils/src/wrapper.js | 2 +- test/resources/components/component-with-input.vue | 2 ++ test/specs/wrapper/setValue.spec.js | 10 +++++++++- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/packages/test-utils/src/wrapper.js b/packages/test-utils/src/wrapper.js index f1661a8f6..77ed8c2c7 100644 --- a/packages/test-utils/src/wrapper.js +++ b/packages/test-utils/src/wrapper.js @@ -699,7 +699,7 @@ export default class Wrapper implements BaseWrapper { `type="radio" /> element. Use wrapper.setChecked() ` + `instead` ) - } else if (tagName === 'INPUT' || tagName === 'textarea') { + } else if (tagName === 'INPUT' || tagName === 'TEXTAREA') { // $FlowIgnore this.element.value = value this.trigger('input') diff --git a/test/resources/components/component-with-input.vue b/test/resources/components/component-with-input.vue index 913294d90..c1f4932e6 100644 --- a/test/resources/components/component-with-input.vue +++ b/test/resources/components/component-with-input.vue @@ -4,6 +4,7 @@ +