Skip to content

Latest commit

 

History

History
18 lines (12 loc) · 345 Bytes

setChecked.md

File metadata and controls

18 lines (12 loc) · 345 Bytes

setChecked(value)

<input> のラジオボタンまたはチェックボックスに値を設定します。

  • 引数:

    • {Boolean} selected
  • 例:

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

const wrapper = mount(Foo)
const option = wrapper.find('input[type="radio"]')
option.setChecked()