issue-2199.test.js 558 字节
Newer Older
DCloud-WZF's avatar
DCloud-WZF 已提交
1 2 3
const platformInfo = process.env.uniTestPlatformInfo.toLocaleLowerCase()
const isMP = platformInfo.startsWith('mp')

雪洛's avatar
雪洛 已提交
4
describe('issue-2199', () => {
DCloud-WZF's avatar
DCloud-WZF 已提交
5 6 7 8 9 10
  if (isMP) {
  	it('skip mp', () => {
  		expect(1).toBe(1)
  	})
  	return
  }
雪洛's avatar
雪洛 已提交
11
  let page
DCloud-WZF's avatar
DCloud-WZF 已提交
12

雪洛's avatar
雪洛 已提交
13 14 15 16 17 18 19 20 21 22 23 24
  beforeAll(async () => {
    page = await program.reLaunch('/pages/component/list-view/issue-2199')
    await page.waitFor(600)
  })

  it('screenshot', async () => {
    const image = await program.screenshot({
      fullPage: true
    });
    expect(image).toSaveImageSnapshot();
  })

DCloud-WZF's avatar
DCloud-WZF 已提交
25
})