diff --git a/tests/library/capabilities.spec.ts b/tests/library/capabilities.spec.ts index d713260f5e..da1f705ef9 100644 --- a/tests/library/capabilities.spec.ts +++ b/tests/library/capabilities.spec.ts @@ -64,13 +64,7 @@ it('should respect CSP @smoke', async ({ page, server }) => { expect(await page.evaluate(() => window['testStatus'])).toBe('SUCCESS'); }); -it('should play video @smoke', async ({ page, asset, browserName, platform, mode }) => { - // TODO: the test passes on Windows locally but fails on GitHub Action bot, - // apparently due to a Media Pack issue in the Windows Server. - // Also the test is very flaky on Linux WebKit. - it.fixme(browserName === 'webkit' && platform !== 'darwin'); - it.fixme(browserName === 'firefox', 'https://github.com/microsoft/playwright/issues/5721'); - it.fixme(browserName === 'webkit' && platform === 'darwin' && parseInt(os.release(), 10) === 20, 'Does not work on BigSur'); +it('should play video @smoke', async ({ page, asset, browserName, mode }) => { it.skip(mode.startsWith('service')); // Safari only plays mp4 so we test WebKit with an .mp4 clip. @@ -83,9 +77,7 @@ it('should play video @smoke', async ({ page, asset, browserName, platform, mode await page.$eval('video', v => v.pause()); }); -it('should play webm video @smoke', async ({ page, asset, browserName, platform, mode }) => { - it.fixme(browserName === 'webkit' && platform === 'darwin' && parseInt(os.release(), 10) === 20, 'Does not work on BigSur'); - it.fixme(browserName === 'webkit' && platform === 'win32'); +it('should play webm video @smoke', async ({ page, asset, mode }) => { it.skip(mode.startsWith('service')); const absolutePath = asset('video_webm.html'); @@ -96,10 +88,7 @@ it('should play webm video @smoke', async ({ page, asset, browserName, platform, await page.$eval('video', v => v.pause()); }); -it('should play audio @smoke', async ({ page, server, browserName, platform }) => { - it.fixme(browserName === 'firefox' && platform === 'win32', 'https://github.com/microsoft/playwright/issues/10887'); - it.fixme(browserName === 'firefox' && platform === 'linux', 'https://github.com/microsoft/playwright/issues/10887'); - it.fixme(browserName === 'webkit' && platform === 'win32', 'https://github.com/microsoft/playwright/issues/10892'); +it('should play audio @smoke', async ({ page, server }) => { await page.goto(server.EMPTY_PAGE); await page.setContent(``); await page.$eval('audio', e => e.play()); @@ -130,9 +119,7 @@ it('should support webgl 2 @smoke', async ({ page, browserName, headless, isWind expect(hasWebGL2).toBe(true); }); -it('should not crash on page with mp4 @smoke', async ({ page, server, platform, browserName }) => { - it.fixme(browserName === 'webkit' && platform === 'win32', 'https://github.com/microsoft/playwright/issues/11009, times out in setContent'); - it.fixme(browserName === 'firefox', 'https://bugzilla.mozilla.org/show_bug.cgi?id=1697004'); +it('should not crash on page with mp4 @smoke', async ({ page, server }) => { await page.setContent(``); await page.waitForTimeout(1000); });