diff --git a/pages/component/image/image.test.js b/pages/component/image/image.test.js index 82056a93a3289439a7c323daee9aac7d6a84b46e..c6294ba66d27cc56118566663a0b5b603ebc1f34 100644 --- a/pages/component/image/image.test.js +++ b/pages/component/image/image.test.js @@ -38,4 +38,14 @@ describe('component-native-image', () => { }) 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() + }); }); diff --git a/pages/pages.test.js b/pages/pages.test.js index 57cf95d590bf68db49a2ae0bd2b18155050319e0..e5b35a336a016bd5b1b092f748a8915de0975710 100755 --- a/pages/pages.test.js +++ b/pages/pages.test.js @@ -7,7 +7,7 @@ const pages = [ '/pages/component/general-event/general-event', '/pages/component/image/image-format', // '/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', // '/pages/component/input/input', // 自动获取焦点,单独测试例截图