v-for.test.js 346 字节
Newer Older
H
hdx 已提交
1
const PAGE_PATH = '/pages/directive/v-for/v-for'
H
init.  
hdx 已提交
2 3 4 5 6

describe('v-for', () => {
  let page
  beforeAll(async () => {
    page = await program.reLaunch(PAGE_PATH)
H
hdx 已提交
7
    await page.waitFor(500)
H
init.  
hdx 已提交
8 9 10 11 12 13 14
  })
  it('list-items-3', async () => {
    const length = 3;
    const elements = await page.$$('.list-item')
    expect(elements.length).toBe(length)
  })
})