提交 cfaa1b6c 编写于 作者: 雪洛's avatar 雪洛

test: web端video仅自动化测试静音

上级 a8a7f3d5
describe('component-native-video', () => {
if(process.env.uniTestPlatformInfo.startsWith('web')){
// TODO: web 端暂不支持测试
it('web', async () => {
expect(1).toBe(1)
})
return
}
let page;
beforeAll(async () => {
page = await program.reLaunch('/pages/component/video/video');
if(process.env.uniTestPlatformInfo.startsWith('web')){
await page.setData({
muted: true
});
}
await page.waitFor(1000);
});
......
......@@ -230,9 +230,6 @@
}
},
onLoad() {
// #ifdef WEB
this.muted = true // web端非静音视频不可自动播放
// #endif
},
methods: {
// API
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册