提交 590575aa 编写于 作者: 雪洛's avatar 雪洛

test: web iOS支持refresher-triggered 为 true 触发 refresherpulling 事件测试#2359

上级 0943ab61
...@@ -21,12 +21,10 @@ describe('component-native-list-view-refresh', () => { ...@@ -21,12 +21,10 @@ describe('component-native-list-view-refresh', () => {
const image = await program.screenshot({fullPage: true}); const image = await program.screenshot({fullPage: true});
expect(image).toSaveImageSnapshot(); expect(image).toSaveImageSnapshot();
// 手动设置下拉刷新状态refresher-triggered为true时,在iOS不触发@refresherpulling事件,并且e.detail.dy为0 // 手动设置下拉刷新状态refresher-triggered为true时,在iOS不触发@refresherpulling事件,并且e.detail.dy为0
if(process.env.UNI_UTS_PLATFORM.startsWith('app-android')){ expect(await page.data('onRefresherpullingTest')).toBe('refresherpulling:Success')
expect(await page.data('onRefresherpullingTest')).toBe('refresherpulling:Success') expect(await page.data('refresherrefreshTest')).toBe('refresherrefresh:Success')
expect(await page.data('refresherrefreshTest')).toBe('refresherrefresh:Success') await page.waitFor(1000);
await page.waitFor(1000); expect(await page.data('onRefresherrestoreTest')).toBe('refresherrestore:Success')
expect(await page.data('onRefresherrestoreTest')).toBe('refresherrestore:Success')
}
}) })
it('check_refresherabort', async () => { it('check_refresherabort', async () => {
...@@ -38,9 +36,7 @@ describe('component-native-list-view-refresh', () => { ...@@ -38,9 +36,7 @@ describe('component-native-list-view-refresh', () => {
}) })
await page.waitFor(1500) await page.waitFor(1500)
// 下拉刷新被中止,在iOS不触发@refresherabort事件 // 下拉刷新被中止,在iOS不触发@refresherabort事件
if(process.env.UNI_UTS_PLATFORM.startsWith('app-android')){ expect(await page.data('onRefresherabortTest')).toBe('refresherabort:Success')
expect(await page.data('onRefresherabortTest')).toBe('refresherabort:Success')
}
}); });
}) })
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册