From d1db5517b3644a019a9467baa8131b0b2a2fe4d7 Mon Sep 17 00:00:00 2001 From: yinjiacheng Date: Thu, 28 Dec 2023 17:43:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=9B=B4=E6=96=B0=E9=A1=B5=E9=9D=A2=E6=88=AA?= =?UTF-8?q?=E5=9B=BE=E8=87=AA=E5=8A=A8=E5=8C=96=E6=B5=8B=E8=AF=95=E7=94=A8?= =?UTF-8?q?=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/component/image/image.test.js | 10 ++++++++++ pages/pages.test.js | 2 +- 2 files changed, 11 insertions(+), 1 deletion(-) diff --git a/pages/component/image/image.test.js b/pages/component/image/image.test.js index 82056a93..c6294ba6 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 57cf95d5..e5b35a33 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', // 自动获取焦点,单独测试例截图 -- GitLab