MCPcopy Index your code
hub / github.com/microsoft/playwright-python / test_short_video_should_throw

Function test_short_video_should_throw

tests/async/test_video.py:34–44  ·  view source on GitHub ↗
(
    browser: Browser, tmp_path: Path, server: Server
)

Source from the content-addressed store, hash-verified

32
33
34async def test_short_video_should_throw(
35 browser: Browser, tmp_path: Path, server: Server
36) -> None:
37 page = await browser.new_page(record_video_dir=tmp_path)
38 await page.goto(server.PREFIX + "/grid.html")
39 assert page.video
40 path = await page.video.path()
41 assert str(tmp_path) in str(path)
42 await page.wait_for_timeout(1000)
43 await page.context.close()
44 assert os.path.exists(path)
45
46
47async def test_short_video_should_throw_persistent_context(

Callers

nothing calls this directly

Calls 5

new_pageMethod · 0.45
gotoMethod · 0.45
pathMethod · 0.45
wait_for_timeoutMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected