From 6c7e4f70ba1bb62137181299fda4cef80a3aa567 Mon Sep 17 00:00:00 2001 From: duqingquan Date: Mon, 8 Jan 2024 17:11:00 +0800 Subject: [PATCH] =?UTF-8?q?swiper=20=E6=B5=8B=E8=AF=95=E7=A4=BA=E4=BE=8B?= =?UTF-8?q?=20=E4=BF=AE=E6=94=B9autoplay=20=E6=B5=8B=E8=AF=95=E9=80=BB?= =?UTF-8?q?=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 --- 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 449c725e..2c9caab4 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(2) + expect(await getData('currentValChange')).toEqual(0) 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