diff --git a/pages/component/scroll-view/scroll-view-props.test.js b/pages/component/scroll-view/scroll-view-props.test.js index 7aebdf439e4629ec2232cd3cb19c04917c170be4..ce89f434b9b281c3a2219d6702a18f0b3e154e6a 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(); + }) });