提交 cb66bf80 编写于 作者: Anne_LXM's avatar Anne_LXM

test(swiper): issues-2342已修复/放开android端测试

上级 55acad32
...@@ -111,15 +111,12 @@ describe('test swiper', () => { ...@@ -111,15 +111,12 @@ describe('test swiper', () => {
it('Event animationfinish', async () => { it('Event animationfinish', async () => {
await page.waitFor(1000) await page.waitFor(1000)
// bug:在android端第一次触发@animationfinish 得到detail中的source为空,第二次触发时正常得到source: 'autoplay' const animationfinishDetailInfo = await page.data('animationfinishDetailTest')
if(!process.env.UNI_UTS_PLATFORM.startsWith('app-android')){ if(process.env.uniTestPlatformInfo.startsWith('web')){
const animationfinishDetailInfo = await page.data('animationfinishDetailTest') expect(animationfinishDetailInfo).toEqual(webDetailRes)
if(process.env.uniTestPlatformInfo.startsWith('web')){ }else{
expect(animationfinishDetailInfo).toEqual(webDetailRes) expect(animationfinishDetailInfo).toEqual(appDetailRes)
}else{
expect(animationfinishDetailInfo).toEqual(appDetailRes)
}
expect(await page.data('isAnimationfinishTest')).toBe('animationfinish:Success')
} }
expect(await page.data('isAnimationfinishTest')).toBe('animationfinish:Success')
}); });
}); });
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册