test(capabilities): test that video tag can play video (#2477)
This commit is contained in:
parent
3de0c087bc
commit
54f07f9bd6
BIN
test/assets/movie.mp4
Normal file
BIN
test/assets/movie.mp4
Normal file
Binary file not shown.
BIN
test/assets/movie.ogv
Normal file
BIN
test/assets/movie.ogv
Normal file
Binary file not shown.
16
test/assets/video.html
Normal file
16
test/assets/video.html
Normal file
|
|
@ -0,0 +1,16 @@
|
|||
<html>
|
||||
<body>
|
||||
|
||||
<video width="400" controls>
|
||||
<source src="movie.mp4" type="video/mp4">
|
||||
<source src="movie.ogv" type="video/ogg">
|
||||
Your browser does not support HTML video.
|
||||
</video>
|
||||
|
||||
<p>
|
||||
Video courtesy of
|
||||
<a href="https://www.bigbuckbunny.org/" target="_blank">Big Buck Bunny</a>.
|
||||
</p>
|
||||
|
||||
</body>
|
||||
</html>
|
||||
|
|
@ -47,4 +47,9 @@ describe('Capabilities', function() {
|
|||
await page.goto(server.EMPTY_PAGE);
|
||||
expect(await page.evaluate(() => window.testStatus)).toBe('SUCCESS');
|
||||
});
|
||||
it.fail(WEBKIT)('should play video', async({page, server}) => {
|
||||
await page.goto(server.PREFIX + '/video.html');
|
||||
await page.$eval('video', v => v.play());
|
||||
await page.$eval('video', v => v.pause());
|
||||
});
|
||||
});
|
||||
|
|
|
|||
Loading…
Reference in a new issue