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

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