提交 d1db5517 编写于 作者: DCloud-yinjiacheng's avatar DCloud-yinjiacheng

更新页面截图自动化测试用例

上级 78305075
...@@ -38,4 +38,14 @@ describe('component-native-image', () => { ...@@ -38,4 +38,14 @@ describe('component-native-image', () => {
}) })
expect(image).toMatchImageSnapshot() expect(image).toMatchImageSnapshot()
}); });
it('mode-screenshot', async () => {
if (process.env.android_cpu_type === 'x86_64') return
const page = await program.navigateTo('/pages/component/image/image-mode');
await page.waitFor(1000);
const image = await program.screenshot({
fullPage: true
})
expect(image).toMatchImageSnapshot()
});
}); });
...@@ -7,7 +7,7 @@ const pages = [ ...@@ -7,7 +7,7 @@ const pages = [
'/pages/component/general-event/general-event', '/pages/component/general-event/general-event',
'/pages/component/image/image-format', '/pages/component/image/image-format',
// '/pages/component/image/image-large', // 截图过大 // '/pages/component/image/image-large', // 截图过大
'/pages/component/image/image-mode', // '/pages/component/image/image-mode', // 判断CPU类型,单独测试例截图
// '/pages/component/image/image-path', // 网络资源加载,单独测试例截图 // '/pages/component/image/image-path', // 网络资源加载,单独测试例截图
'/pages/component/image/image', '/pages/component/image/image',
// '/pages/component/input/input', // 自动获取焦点,单独测试例截图 // '/pages/component/input/input', // 自动获取焦点,单独测试例截图
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册