提交 a60b721c 编写于 作者: shutao-dc's avatar shutao-dc

update scroll-view-props.test.js 新增末尾元素截图测试例

上级 6debd736
......@@ -97,4 +97,15 @@ describe('component-native-scroll-view-props', () => {
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();
})
});
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册