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

Function test_should_work

tests/async/test_resource_timing.py:22–31  ·  view source on GitHub ↗
(page: Page, server: Server)

Source from the content-addressed store, hash-verified

20
21
22async def test_should_work(page: Page, server: Server) -> None:
23 async with page.expect_event("requestfinished") as request_info:
24 await page.goto(server.EMPTY_PAGE)
25 request = await request_info.value
26 timing = request.timing
27 verify_connections_timing_consistency(timing)
28 assert timing["requestStart"] >= timing["connectEnd"]
29 assert timing["responseStart"] >= timing["requestStart"]
30 assert timing["responseEnd"] >= timing["responseStart"]
31 assert timing["responseEnd"] < 10000
32
33
34async def test_should_work_for_subresource(

Callers

nothing calls this directly

Calls 3

expect_eventMethod · 0.45
gotoMethod · 0.45

Tested by

no test coverage detected