Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 316 Bytes

setValue.md

File metadata and controls

17 lines (12 loc) · 316 Bytes

setValue(value)

テキストボックス <input> の値を設定します。

  • 引数:

    • {String} value
  • 例:

import { mount } from '@vue/test-utils'
import Foo from './Foo.vue'

const wrapper = mount(Foo)
const input = wrapper.find('input[type="text"]')
input.setValue('some value')