diff --git a/pages/component/list-view/list-view.test.js b/pages/component/list-view/list-view.test.js index faac5e12c4a2ac7913248f1696070a7a5fbd8cde..c48ca2f4faa62d2246ada23a774dc2c8cf630278 100644 --- a/pages/component/list-view/list-view.test.js +++ b/pages/component/list-view/list-view.test.js @@ -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') }) diff --git a/pages/component/scroll-view/scroll-view-refresher.test.js b/pages/component/scroll-view/scroll-view-refresher.test.js index 7f24cc7675c59e498989940bb0695283404c128f..b4a8209b41f641642162cd0a3d2e297117f5f586 100644 --- a/pages/component/scroll-view/scroll-view-refresher.test.js +++ b/pages/component/scroll-view/scroll-view-refresher.test.js @@ -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') } });