From e8483a1db77ac310c4afcbc29f281ef55964985d Mon Sep 17 00:00:00 2001 From: Anne_LXM Date: Thu, 20 Jun 2024 15:45:57 +0800 Subject: [PATCH] =?UTF-8?q?test(inner-audio):=E8=B0=83=E6=95=B4=E6=B5=8B?= =?UTF-8?q?=E8=AF=95=E4=BE=8B=E5=85=BC=E5=AE=B9safari?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pages/API/inner-audio/inner-audio.test.js | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/pages/API/inner-audio/inner-audio.test.js b/pages/API/inner-audio/inner-audio.test.js index 8538001b..92389d63 100644 --- a/pages/API/inner-audio/inner-audio.test.js +++ b/pages/API/inner-audio/inner-audio.test.js @@ -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(); -- GitLab