From 3bceba639654886b2ec524f40dcc41dec450cfe3 Mon Sep 17 00:00:00 2001 From: duqingquan Date: Mon, 8 Jan 2024 17:15:01 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"swiper=20=E6=B5=8B=E8=AF=95=E7=A4=BA?= =?UTF-8?q?=E4=BE=8B=20=E4=BF=AE=E6=94=B9autoplay=20=E6=B5=8B=E8=AF=95?= =?UTF-8?q?=E9=80=BB=E8=BE=91=EF=BC=8C=E5=AF=B9=E9=BD=90web"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit 6c7e4f70ba1bb62137181299fda4cef80a3aa567. --- pages/component/swiper/swiper.test.js | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pages/component/swiper/swiper.test.js b/pages/component/swiper/swiper.test.js index 2c9caab4..449c725e 100644 --- a/pages/component/swiper/swiper.test.js +++ b/pages/component/swiper/swiper.test.js @@ -38,14 +38,14 @@ describe('test swiper', () => { await page.waitFor(2000) expect(await getData('currentValChange')).toEqual(1) await page.waitFor(5000) - expect(await getData('currentValChange')).toEqual(0) + expect(await getData('currentValChange')).toEqual(2) await page.setData({ circularSelect: true }) + expect(await getData('currentValChange')).toEqual(2) + await page.waitFor(1000) expect(await getData('currentValChange')).toEqual(0) - await page.waitFor(2000) - expect(await getData('currentValChange')).toEqual(1) await page.setData({ circularSelect: false, autoplaySelect: false -- GitLab