list-view-multiplex-video.test.js 755 B

123456789101112131415161718192021222324
  1. jest.setTimeout(130000)
  2. const platformInfo = process.env.uniTestPlatformInfo.toLocaleLowerCase()
  3. const isMP = platformInfo.startsWith('mp')
  4. const isAppWebView = process.env.UNI_AUTOMATOR_APP_WEBVIEW == 'true'
  5. const isHarmony = platformInfo.startsWith('harmony')
  6. describe('list-view-multiplex-video', () => {
  7. if (isMP || isAppWebView) {
  8. it('skip', () => {
  9. expect(1).toBe(1)
  10. })
  11. return
  12. }
  13. it('screenshot', async () => {
  14. const page = await program.reLaunch('/pages/component/list-view/list-view-multiplex-video')
  15. await page.waitFor('list-view')
  16. await page.waitFor(4000)
  17. await page.setData({ isTesting: true })
  18. const image = await program.screenshot({ fullPage: true });
  19. expect(image).toSaveImageSnapshot()
  20. })
  21. })