From 2c69835a66943e61ed8aac5d645b80b93469763f Mon Sep 17 00:00:00 2001 From: shutao Date: Fri, 10 May 2024 18:25:18 +0800 Subject: [PATCH] =?UTF-8?q?update=20sticky-section.nvue=20=E6=8B=89?= =?UTF-8?q?=E9=BD=90web=E7=AB=AF=E4=B8=8Eapp=E6=B8=B2=E6=9F=93=E5=B7=AE?= =?UTF-8?q?=E5=BC=82?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../sticky-section/sticky-section.test.js | 3 ++- .../component/sticky-section/sticky-section.uvue | 16 ++++++++++------ 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/pages/component/sticky-section/sticky-section.test.js b/pages/component/sticky-section/sticky-section.test.js index 2e2d47be..8f836a43 100644 --- a/pages/component/sticky-section/sticky-section.test.js +++ b/pages/component/sticky-section/sticky-section.test.js @@ -6,7 +6,8 @@ describe('component-native-sticky-section', () => { }) //检测吸顶上推效果 - it('check_sticky_section', async () => { + it('check_sticky_section', async () => { + page.waitFor(300) await page.callMethod('listViewScrollByY', 1000) const image = await program.screenshot({fullPage: true}); expect(image).toSaveImageSnapshot(); diff --git a/pages/component/sticky-section/sticky-section.uvue b/pages/component/sticky-section/sticky-section.uvue index bfa63cd2..c882f401 100644 --- a/pages/component/sticky-section/sticky-section.uvue +++ b/pages/component/sticky-section/sticky-section.uvue @@ -1,12 +1,11 @@