From a0a5a24428e4caed4697cf0e62aec5229a9662f2 Mon Sep 17 00:00:00 2001 From: yinjiacheng Date: Mon, 20 Nov 2023 17:35:32 +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 | 9 +++++++++ pages/pages.test.js | 2 +- 2 files changed, 10 insertions(+), 1 deletion(-) diff --git a/pages/component/image/image.test.js b/pages/component/image/image.test.js index 6a6ce934..82056a93 100644 --- a/pages/component/image/image.test.js +++ b/pages/component/image/image.test.js @@ -29,4 +29,13 @@ describe('component-native-image', () => { await page.waitFor(300); expect(await page.data('loadError')).toBe(true) }) + + it('path-screenshot', async () => { + const page = await program.navigateTo('/pages/component/image/image-path'); + await page.waitFor(3000); + const image = await program.screenshot({ + fullPage: true + }) + expect(image).toMatchImageSnapshot() + }); }); diff --git a/pages/pages.test.js b/pages/pages.test.js index c51c99af..77711411 100755 --- a/pages/pages.test.js +++ b/pages/pages.test.js @@ -8,7 +8,7 @@ const pages = [ '/pages/component/image/image-format', // '/pages/component/image/image-large', // 截图过大 '/pages/component/image/image-mode', - '/pages/component/image/image-path', + // '/pages/component/image/image-path', // 网络资源加载 '/pages/component/image/image', '/pages/component/input/input', '/pages/component/list-view/list-view', -- GitLab