提交 fce1076c 编写于 作者: Anne_LXM's avatar Anne_LXM

test: 调整测试例

上级 d9bc7f59
......@@ -67,7 +67,7 @@ describe('component-native-list-view', () => {
it('Event scrolltoupper-滚动到顶部/左边',async()=>{
// 滚动到顶部50,是否触发scrolltoupper事件
await page.callMethod('confirm_scroll_top_input', 50)
await page.waitFor(600)
await page.waitFor(1000)
expect(await page.data('isScrolltoupperTest')).toBe('scrolltoupper:Success-top')
})
......
......@@ -38,7 +38,7 @@ describe('component-native-scroll-view-refresher', () => {
expect(await page.data('onRefresherrestoreTest')).toBe('refresherrestore:Success')
});
// 仅App端支持手势下拉刷新
// 仅App端支持手势下拉刷新,在不同设备上位置有差异可能导致不触发中止事件,安卓端仅测android 10
if(!process.env.uniTestPlatformInfo.startsWith('web')){
it('check_refresherabort', async () => {
await program.swipe({
......@@ -47,9 +47,9 @@ describe('component-native-scroll-view-refresher', () => {
duration: 1000
})
await page.waitFor(1500)
console.log(process.env.uniTestPlatformInfo,'onRefresherabortTest',await page.data('onRefresherabortTest'))
// 下拉刷新被中止,在iOS不触发@refresherabort事件
if(process.env.UNI_UTS_PLATFORM.startsWith('app-android')){
console.log('onRefresherabortTest',await page.data('onRefresherabortTest'))
if(process.env.uniTestPlatformInfo.startsWith('android 10')){
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.
先完成此消息的编辑!
想要评论请 注册