“a5f1efdfc9b09b0df0c053d44a2b310b0abb1cc4”上不存在“ppocr/modeling/git@gitcode.net:weixin_41840029/PaddleOCR.git”
nested-scroll-header.test.js 846 字节
Newer Older
DCloud-WZF's avatar
DCloud-WZF 已提交
1 2 3
const platformInfo = process.env.uniTestPlatformInfo.toLocaleLowerCase()
const isMP = platformInfo.startsWith('mp')

4
describe('component-native-nested-scroll-header', () => {
DCloud-WZF's avatar
DCloud-WZF 已提交
5 6 7 8 9 10 11
  if (isMP) {
  	it('skip mp', () => {
  		expect(1).toBe(1)
  	})
  	return
  }

12 13 14 15 16 17 18
  if (process.env.uniTestPlatformInfo.indexOf('web') > -1 || process.env.UNI_AUTOMATOR_APP_WEBVIEW == 'true') {
    it('dummyTest', () => {
      expect(1).toBe(1)
    })
    return
  }

19
  let page
20
  beforeAll(async () => {
21 22 23
    //打开lnested-scroll-header测试页
    page = await program.reLaunch('/pages/component/nested-scroll-header/nested-scroll-header')
    await page.waitFor(600)
24 25 26 27
  })


  it('check_nested-scroll-header', async () => {
28
    const image = await program.screenshot({fullPage: true});
29
    expect(image).toSaveImageSnapshot();
30
  })
31
})