From 2feae99922d67727bc37f68c059f581227f91653 Mon Sep 17 00:00:00 2001 From: shutao Date: Thu, 19 Sep 2024 20:12:39 +0800 Subject: [PATCH] =?UTF-8?q?update=20scroll-view.test.js=20=E9=80=82?= =?UTF-8?q?=E9=85=8Dweb=E5=B9=B3=E5=8F=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/component/scroll-view/scroll-view.test.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/pages/component/scroll-view/scroll-view.test.js b/pages/component/scroll-view/scroll-view.test.js index 6afcb817..0e11decb 100644 --- a/pages/component/scroll-view/scroll-view.test.js +++ b/pages/component/scroll-view/scroll-view.test.js @@ -82,9 +82,9 @@ describe('component-native-scroll-view', () => { it('通过UniElement.scrollBy检测scroll事件是否触发',async()=>{ await page.callMethod('setVerticalScrollBy', 120) - // await page.waitFor(600) + await page.waitFor(600) const scrollDetail = await page.data('scrollDetailTest') console.log('setVerticalScrollBy scrollDetail:', scrollDetail) - expect(scrollDetail.scrollTop).toBe(120) + expect(scrollDetail.scrollTop).toBeGreaterThan(119) }) }); -- GitLab