Skip to content

Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.

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

Dmitry Gozman1503264aca79
diff --git a/tests/capabilities.spec.ts b/tests/capabilities.spec.ts
index db7ba53f85..b8d574fbae 100644
--- a/tests/capabilities.spec.ts
+++ b/tests/capabilities.spec.ts
@@ -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 }) => {