提交 aeb51518 编写于 作者: DCloud_iOS_XHY's avatar DCloud_iOS_XHY

优化 waterflow 测试例,适配iOS平台

上级 e1be80ff
......@@ -65,7 +65,7 @@ describe('component-native-waterflow', () => {
endPoint: { x: 100, y: 100 },
duration: 100
})
await page.waitFor(1200)
await page.waitFor(4200)
const endDetail = await page.data('scrollEndDetailTest')
console.log('scrollEndDetailTest:', endDetail)
expect(endDetail.deltaY).toBe(0)
......@@ -83,6 +83,7 @@ describe('component-native-waterflow', () => {
expect(value).toBe(true)
})
if(process.env.uniTestPlatformInfo.toLowerCase().startsWith('android')) {
//检测下拉刷新 备注:iOS本地测试结果正确,但是自动化测试结果错误
it('check_refresher', async () => {
await page.callMethod('confirm_scroll_top_input', 0)
......@@ -106,6 +107,7 @@ describe('component-native-waterflow', () => {
await page.callMethod('setScrollIntoView', 'item---0')
expect(scrollTop-280).toBeGreaterThanOrEqual(0)
})
}
//检测waterflow属性变化 截图校验
it('check_waterflow_view_props', async () => {
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册