waterflow-fit-height.test.js 733 B

12345678910111213141516171819202122232425
  1. const platformInfo = process.env.uniTestPlatformInfo.toLocaleLowerCase()
  2. const isAndroid = platformInfo.startsWith('android')
  3. const isIOS = platformInfo.startsWith('ios')
  4. const isAppWebView = process.env.UNI_AUTOMATOR_APP_WEBVIEW == 'true'
  5. describe('waterflow-fit-height', () => {
  6. if (!(isAndroid || isIOS) || isAppWebView) {
  7. it('not support', () => {
  8. expect(1).toBe(1)
  9. })
  10. return
  11. }
  12. let page
  13. beforeAll(async () => {
  14. page = await program.reLaunch('/pages/component/waterflow/waterflow-fit-height')
  15. await page.waitFor('view')
  16. await page.waitFor(1000)
  17. })
  18. it('screenshot', async () => {
  19. const image = await program.screenshot({fullPage: true});
  20. expect(image).toSaveImageSnapshot();
  21. })
  22. })