diff --git a/pages/component/swiper/swiper.test.js b/pages/component/swiper/swiper.test.js index 449c725ec09c881fee3861db1eda26a1c98c5a29..2c9caab47ed1b037c43883ab7f61e720a27afa61 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