nested-scroll-header.test.js 621 字节
Newer Older
1
describe('component-native-nested-scroll-header', () => {
2 3 4 5 6 7 8
  if (process.env.uniTestPlatformInfo.indexOf('web') > -1 || process.env.UNI_AUTOMATOR_APP_WEBVIEW == 'true') {
    it('dummyTest', () => {
      expect(1).toBe(1)
    })
    return
  }

9
  let page
10
  beforeAll(async () => {
11 12 13
    //打开lnested-scroll-header测试页
    page = await program.reLaunch('/pages/component/nested-scroll-header/nested-scroll-header')
    await page.waitFor(600)
14 15 16 17 18
  })


  it('check_nested-scroll-header', async () => {
    const image = await program.screenshot();
19
    expect(image).toSaveImageSnapshot();
20
  })
21
})