From 112f19fb02b5d058ff70b98e273b55a45050dca7 Mon Sep 17 00:00:00 2001 From: mya-ake Date: Wed, 27 Jun 2018 15:25:54 +0900 Subject: [PATCH] fix: Fixed that tagName was lowercase --- 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 882c70121..b89b24551 100644 --- a/packages/test-utils/src/wrapper.js +++ b/packages/test-utils/src/wrapper.js @@ -695,7 +695,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 @@ +