test: can open page with mp4 video (#11030)

This commit is contained in:
Yury Semikhatsky 2021-12-20 12:44:06 -08:00 committed by GitHub
parent 50a9a8763b
commit ea1948fabb
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -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);
});