list-view-multiplex-input.test.js 675 B

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