Function
test_should_expose_video_path
(
browser: Browser, tmp_path: Path, server: Server
)
Source from the content-addressed store, hash-verified
| 21 | |
| 22 | |
| 23 | async def test_should_expose_video_path( |
| 24 | browser: Browser, tmp_path: Path, server: Server |
| 25 | ) -> None: |
| 26 | page = await browser.new_page(record_video_dir=tmp_path) |
| 27 | await page.goto(server.PREFIX + "/grid.html") |
| 28 | assert page.video |
| 29 | path = await page.video.path() |
| 30 | assert str(tmp_path) in str(path) |
| 31 | await page.context.close() |
| 32 | |
| 33 | |
| 34 | async def test_short_video_should_throw( |
Callers
nothing calls this directly
Tested by
no test coverage detected