nested-scroll-header.test.js 769 B

12345678910111213141516171819202122
  1. const platformInfo = process.env.uniTestPlatformInfo.toLocaleLowerCase()
  2. const isMP = platformInfo.startsWith('mp')
  3. const isWeb = platformInfo.startsWith('web')
  4. const isAppWebView = process.env.UNI_AUTOMATOR_APP_WEBVIEW == 'true'
  5. describe('component-native-nested-scroll-header', () => {
  6. if (isMP || isWeb || isAppWebView) {
  7. it('dummyTest', () => {
  8. expect(1).toBe(1)
  9. })
  10. return
  11. }
  12. it('check_nested-scroll-header', async () => {
  13. //打开 nested-scroll-header测试页
  14. const page = await program.reLaunch('/pages/component/nested-scroll-header/nested-scroll-header')
  15. await page.waitFor('view');
  16. await page.waitFor(1000)
  17. const image = await program.screenshot({fullPage: true});
  18. expect(image).toSaveImageSnapshot();
  19. })
  20. })