From 411767afeda43f0ad3b6b2845eb5b63c48317916 Mon Sep 17 00:00:00 2001 From: Anne_LXM Date: Thu, 22 Aug 2024 11:35:02 +0800 Subject: [PATCH] =?UTF-8?q?test(scroll-view.test.js/):=20=E5=A2=9E?= =?UTF-8?q?=E5=8A=A0=E7=AD=89=E5=BE=85=E6=97=B6=E9=97=B4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/component/scroll-view/scroll-view.test.js | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/pages/component/scroll-view/scroll-view.test.js b/pages/component/scroll-view/scroll-view.test.js index 106e2eb6..2b359f9e 100644 --- a/pages/component/scroll-view/scroll-view.test.js +++ b/pages/component/scroll-view/scroll-view.test.js @@ -34,9 +34,12 @@ describe('component-native-scroll-view', () => { }) it('Event scroll-horizontal',async()=>{ + console.log('data-1:', await page.data()) // 横向滚动 await page.setData({scrollLeft:220}) - await page.waitFor(1000) + const waitTime = process.env.uniTestPlatformInfo.includes('chrome') ? 4000:1000 + await page.waitFor(waitTime) + console.log('data-2:', await page.data()) //设置left 是否触发scroll 事件 const leftScrollDetail = await page.data('scrollDetailTest') console.log('leftScrollDetail:', leftScrollDetail) -- GitLab