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

Function test_should_work_for_ssl

tests/async/test_resource_timing.py:51–62  ·  view source on GitHub ↗
(browser: Browser, https_server: Server)

Source from the content-addressed store, hash-verified

49
50
51async def test_should_work_for_ssl(browser: Browser, https_server: Server) -> None:
52 page = await browser.new_page(ignore_https_errors=True)
53 async with page.expect_event("requestfinished") as request_info:
54 await page.goto(https_server.EMPTY_PAGE)
55 request = await request_info.value
56 timing = request.timing
57 verify_connections_timing_consistency(timing)
58 assert timing["requestStart"] >= timing["connectEnd"]
59 assert timing["responseStart"] >= timing["requestStart"]
60 assert timing["responseEnd"] >= timing["responseStart"]
61 assert timing["responseEnd"] < 10000
62 await page.close()
63
64
65@pytest.mark.skip_browser("webkit") # In WebKit, redirects don"t carry the timing info

Callers

nothing calls this directly

Calls 5

new_pageMethod · 0.45
expect_eventMethod · 0.45
gotoMethod · 0.45
closeMethod · 0.45

Tested by

no test coverage detected