diff --git a/pages/component/scroll-view/scroll-view.test.js b/pages/component/scroll-view/scroll-view.test.js index 6afcb81756d9801e181c2e1b9defd35e38c25110..0e11decb0d7d116f75d87d9edec514d287cb8ac8 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) }) });