constPAGE_PATH='/pages/component/swiper/swiper'describe('swiper-touch-test',()=>{// 屏蔽 web 平台if(process.env.uniTestPlatformInfo.startsWith('web')){it('other platform',()=>{expect(1).toBe(1)})return}letpagebeforeAll(async()=>{page=awaitprogram.reLaunch(PAGE_PATH)awaitpage.waitFor(1500);})it('swiper-touch-test',async()=>{awaitprogram.swipe({startPoint:{x:246,y:193},endPoint:{x:1,y:193},duration:200})awaitpage.waitFor(1000)letval=awaitpage.data('currentValChange')console.log(val)expect(val).toEqual(1)})})