v-model.test.js 467 字节
Newer Older
H
hdx 已提交
1
const PAGE_PATH = '/pages/directive/v-model/v-model'
H
hdx 已提交
2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18

describe('v-model', () => {
  let page
  beforeAll(async () => {
    page = await program.reLaunch(PAGE_PATH)
    await page.waitFor(500)
  })
  it('input', async () => {
    const value = Date.now() + ''

    const inputElement = await page.$('.input')
    await inputElement.input(value)

    const inputValueElement = await page.$('.input-value')
    expect(await inputValueElement.text()).toBe(value)
  })
})