(
browser: Browser, tmp_path: Path, server: Server
)
| 32 | |
| 33 | |
| 34 | async 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 | |
| 47 | async def test_short_video_should_throw_persistent_context( |
nothing calls this directly
no test coverage detected