Playwright is a framework for Web Testing and Automation. It allows testing Chromium, Firefox and WebKit with a single API.
TypeScript automationchromechromiume2e-testingelectronend-to-end-testingfirefoxjavascriptplaywrighttesttest-automationtestingtesting-toolswebwebkit
test: can open page with mp4 video (#11030)
Yury Semikhatskyea1948fabba0
diff --git a/tests/capabilities.spec.ts b/tests/capabilities.spec.tsindex 97c9246de6..eef19192b5 100644--- a/tests/capabilities.spec.ts+++ b/tests/capabilities.spec.ts@@ -117,3 +117,10 @@ it('should support webgl 2', async ({ page, browserName, headless }) => {});expect(hasWebGL2).toBe(true);});++it('should not crash on page with mp4', async ({ page, server, platform, browserName }) => {+ it.fixme(browserName === 'webkit' && platform === 'win32', 'https://github.com/microsoft/playwright/issues/11009, times out in setContent');+ it.fail(browserName === 'webkit' && platform === 'darwin' && parseInt(os.release(), 10) >= 21, 'https://github.com/microsoft/playwright/issues/11009');+ await page.setContent(`<video><source src="${server.PREFIX}/movie.mp4"/></video>`);+ await page.waitForTimeout(1000);+});\ No newline at end of file