(context: BrowserContext)
| 364 | |
| 365 | |
| 366 | async def test_should_work_with_empty_url(context: BrowserContext) -> None: |
| 367 | page = await context.new_page() |
| 368 | async with page.expect_popup() as popup_info: |
| 369 | await page.evaluate("() => window.__popup = window.open('')") |
| 370 | popup = await popup_info.value |
| 371 | assert await page.evaluate("!!window.opener") is False |
| 372 | assert await popup.evaluate("!!window.opener") |
| 373 | |
| 374 | |
| 375 | async def test_should_work_with_noopener_and_no_url(context: BrowserContext) -> None: |
nothing calls this directly
no test coverage detected