test: decrease threshold for flaky "should play audio" (#11878)

This commit is contained in:
Dmitry Gozman 2022-02-04 16:14:48 -08:00 committed by GitHub
parent af4944388f
commit 1503264aca
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -92,7 +92,7 @@ it('should play audio #smoke', async ({ page, server, browserName, platform }) =
await page.$eval('audio', e => e.play());
await page.waitForTimeout(1000);
await page.$eval('audio', e => e.pause());
expect(await page.$eval('audio', e => e.currentTime)).toBeGreaterThan(0.5);
expect(await page.$eval('audio', e => e.currentTime)).toBeGreaterThan(0.2);
});
it('should support webgl #smoke', async ({ page, browserName, headless }) => {