From 1ca3f346078fcf68ac8ac4209c9aac73d5fb23e7 Mon Sep 17 00:00:00 2001 From: zhenyuWang <13641039885@163.com> Date: Thu, 27 Jul 2023 17:58:03 +0800 Subject: [PATCH] test: fix scrollTop value too big can't scrollTo --- pages/API/navigator/new-page/new-page-2.test.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pages/API/navigator/new-page/new-page-2.test.js b/pages/API/navigator/new-page/new-page-2.test.js index 45cff1a3..da4339ec 100644 --- a/pages/API/navigator/new-page/new-page-2.test.js +++ b/pages/API/navigator/new-page/new-page-2.test.js @@ -37,7 +37,7 @@ describe('page-lifecycle', () => { }) // TODO: pageScrollTo 无法触发 onReachBottom, 待修复后调整 lifeCycleNum it('onPageScroll onReachBottom', async () => { - await program.pageScrollTo(2000) + await program.pageScrollTo(1200) const data = await page.data() expect(data.isScrolled).toBe(true) lifeCycleNum = await page.callMethod('getLifeCycleNum') -- GitLab