const platformInfo = process.env.uniTestPlatformInfo.toLocaleLowerCase()
const isAppWebView = process.env.UNI_AUTOMATOR_APP_WEBVIEW == 'true'
const isWeb = platformInfo.startsWith('web')
describe('swiper-vertical-video', () => {
if (isWeb) {
it('not support', () => {
expect(1).toBe(1)
})
return
}
let page;
beforeAll(async () => {
page = await program.reLaunch('/pages/template/swiper-vertical-video/swiper-vertical-video');
await page.waitFor('view')
await page.waitFor(2000);
});
if (!isAppWebView) {
it('screenshot', async () => {
const image = await program.screenshot({
fullPage: true,
});
expect(image).toSaveImageSnapshot();
});
}
});