diff --git a/pages/component/swiper/swiper.test.js b/pages/component/swiper/swiper.test.js index 60bc8912736d60aa3933b6b1fe666759f7e1c6ad..725825c420480972a2064e13c25dd146f91198e8 100644 --- a/pages/component/swiper/swiper.test.js +++ b/pages/component/swiper/swiper.test.js @@ -91,10 +91,7 @@ describe('test swiper', () => { it('Event transitiont', async () => { const transitionDetailInfo = await page.data('transitionDetailTest') - // bug:在iOS端,swiper首次横向滑动切换@transition事件参数e.detail.dy为1错误,暂时忽略测试 - if(process.env.uniTestPlatformInfo.startsWith('web')){ - expect(transitionDetailInfo.dy).toBe(0) - } + expect(transitionDetailInfo.dy).toBe(0) expect(transitionDetailInfo.dx).not.toBe(0) expect(await page.data('isTransitionTest')).toBe('transition:Success') });