From a5327a2182f13135fd9fdacc42090801df299f15 Mon Sep 17 00:00:00 2001 From: shutao Date: Sat, 7 Dec 2024 12:35:10 +0800 Subject: [PATCH] update list-view-refresh.test.js --- pages/component/list-view/list-view-refresh.test.js | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/pages/component/list-view/list-view-refresh.test.js b/pages/component/list-view/list-view-refresh.test.js index bf4cea95..4c33fcde 100644 --- a/pages/component/list-view/list-view-refresh.test.js +++ b/pages/component/list-view/list-view-refresh.test.js @@ -34,10 +34,12 @@ describe('component-native-list-view-refresh', () => { expect(await page.data('onRefresherpullingTest')).toBe('refresherpulling:Success') expect(await page.data('refresherrefreshTest')).toBe('refresherrefresh:Success') 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 () => { + //部分安卓设备需要延迟一段时间swipe才生效 此处暂时延迟1秒 + await page.waitFor(1000); // 仅App端支持手势下拉刷新 await program.swipe({ startPoint: {x: 100,y: 400}, -- GitLab