teleport.test.js 551 字节
Newer Older
1
const PAGE_PATH = '/pages/built-in-component/teleport/teleport'
2

3
describe('teleport', () => {
4
  if(process.env.uniTestPlatformInfo.toLocaleLowerCase().startsWith('ios')){
5 6 7 8 9
    it("IOS platform not support", async () => {
      expect(1).toBe(1);
    });
    return
  }
10 11 12 13 14 15
  
  let page = null
  beforeAll(async () => {
    page = await program.reLaunch(PAGE_PATH)
    await page.waitFor('view')
  })
16 17 18
  
  it('teleport', async () => {
  	await page.waitFor(500)
DCloud-WZF's avatar
DCloud-WZF 已提交
19
  	const image = await program.screenshot();
20
  	expect(image).toMatchImageSnapshot();
21 22
  })
})