mixin-datacom.test.js 540 字节
Newer Older
H
hdx 已提交
1 2 3
const PAGE_PATH = '/pages/component/mixin-datacom/mixin-datacom'

describe('mixin-datacom', () => {
雪洛's avatar
雪洛 已提交
4 5 6 7 8 9
  if (process.env.uniTestPlatformInfo.startsWith('web')) {
    it('dummyTest', async () => {
      expect(1).toBe(1)
    })
    return
  }
H
hdx 已提交
10 11 12 13 14 15 16
  let page
  beforeAll(async () => {
    page = await program.reLaunch(PAGE_PATH)
    await page.waitFor(500)
  })
  it('mixinDatacomGet', async () => {
    const datacom = await page.$('.datacom')
17 18
    const children = await datacom.$$('.list-item')
    expect(children.length > 0).toBe(true)
H
hdx 已提交
19 20
  })
})