From a60b721c61e88a1c9a6234d99ce554c55ec66b5e Mon Sep 17 00:00:00 2001 From: shutao Date: Mon, 26 Aug 2024 16:57:00 +0800 Subject: [PATCH] =?UTF-8?q?update=20scroll-view-props.test.js=20=E6=96=B0?= =?UTF-8?q?=E5=A2=9E=E6=9C=AB=E5=B0=BE=E5=85=83=E7=B4=A0=E6=88=AA=E5=9B=BE?= =?UTF-8?q?=E6=B5=8B=E8=AF=95=E4=BE=8B?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../component/scroll-view/scroll-view-props.test.js | 13 ++++++++++++- 1 file changed, 12 insertions(+), 1 deletion(-) diff --git a/pages/component/scroll-view/scroll-view-props.test.js b/pages/component/scroll-view/scroll-view-props.test.js index 7aebdf43..ce89f434 100644 --- a/pages/component/scroll-view/scroll-view-props.test.js +++ b/pages/component/scroll-view/scroll-view-props.test.js @@ -96,5 +96,16 @@ describe('component-native-scroll-view-props', () => { const image = await program.screenshot({fullPage: true}); expect(image).toSaveImageSnapshot(); }) - + + + //截图末尾位置元素 + it('scroll-view-props-last-item-screenshot', async () => { + //滚动到末尾位置 + await page.setData({ + scrollLeft: 10000 + }) + await page.waitFor(300); + const image = await program.screenshot({fullPage: true}); + expect(image).toSaveImageSnapshot(); + }) }); -- GitLab