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

test(inner-audio):调整测试例兼容safari

上级 030c652c
......@@ -22,7 +22,6 @@ describe('inner-audio', () => {
await page.waitFor(async()=>{
return await getData('isCanplay')
})
console.log("获取缓冲信息",await getData('buffered'))
expect(await getData('buffered')).toBeGreaterThan(0)
})
......@@ -31,7 +30,7 @@ describe('inner-audio', () => {
await page.waitFor(3000);
expect(await getData('isPlaying')).toBeTruthy()
console.log("duration:",await getData('duration'),"currentTime:",await getData('currentTime'))
expect(await getData('duration')).toBe(175.109)
expect(await getData('duration')).toBeCloseTo(175.109, 0);
// console.log("isPaused",await getData('isPaused'))
// expect(await getData('currentTime')).toBeGreaterThan(0);
// expect(await getData('isPaused')).toBeFalsy();
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册