Skip to content

Latest commit

 

History

History
17 lines (12 loc) · 296 Bytes

setValue.md

File metadata and controls

17 lines (12 loc) · 296 Bytes

setValue(value)

Sets the value of a text <input>.

  • Arguments:

    • {String} value
  • Example:

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')