12345678910111213141516171819202122232425 |
- const platformInfo = process.env.uniTestPlatformInfo.toLocaleLowerCase()
- const isAndroid = platformInfo.startsWith('android')
- const isIOS = platformInfo.startsWith('ios')
- const isAppWebView = process.env.UNI_AUTOMATOR_APP_WEBVIEW == 'true'
- describe('waterflow-fit-height', () => {
- if (!(isAndroid || isIOS) || isAppWebView) {
- it('not support', () => {
- expect(1).toBe(1)
- })
- return
- }
- let page
- beforeAll(async () => {
- page = await program.reLaunch('/pages/component/waterflow/waterflow-fit-height')
- await page.waitFor('view')
- await page.waitFor(1000)
- })
- it('screenshot', async () => {
- const image = await program.screenshot({fullPage: true});
- expect(image).toSaveImageSnapshot();
- })
- })
|