@@ -503,6 +503,7 @@ async def test_should_round_trip_har_zip(
503503 await expect (page_2 .locator ("body" )).to_have_css (
504504 "background-color" , "rgb(255, 192, 203)"
505505 )
506+ await context_2 .close ()
506507
507508
508509async def test_should_round_trip_har_with_post_data (
@@ -536,6 +537,7 @@ async def test_should_round_trip_har_with_post_data(
536537 assert await page_2 .evaluate (fetch_function , "3" ) == "3"
537538 with pytest .raises (Exception ):
538539 await page_2 .evaluate (fetch_function , "4" )
540+ await context_2 .close ()
539541
540542
541543async def test_should_disambiguate_by_header (
@@ -578,6 +580,7 @@ async def test_should_disambiguate_by_header(
578580 assert await page_2 .evaluate (fetch_function , "baz2" ) == "baz2"
579581 assert await page_2 .evaluate (fetch_function , "baz3" ) == "baz3"
580582 assert await page_2 .evaluate (fetch_function , "baz4" ) == "baz1"
583+ await context_2 .close ()
581584
582585
583586async def test_should_produce_extracted_zip (
@@ -605,6 +608,7 @@ async def test_should_produce_extracted_zip(
605608 await expect (page_2 .locator ("body" )).to_have_css (
606609 "background-color" , "rgb(255, 192, 203)"
607610 )
611+ await context_2 .close ()
608612
609613
610614async def test_should_update_har_zip_for_context (
@@ -627,6 +631,7 @@ async def test_should_update_har_zip_for_context(
627631 await expect (page_2 .locator ("body" )).to_have_css (
628632 "background-color" , "rgb(255, 192, 203)"
629633 )
634+ await context_2 .close ()
630635
631636
632637async def test_should_update_har_zip_for_page (
@@ -649,6 +654,7 @@ async def test_should_update_har_zip_for_page(
649654 await expect (page_2 .locator ("body" )).to_have_css (
650655 "background-color" , "rgb(255, 192, 203)"
651656 )
657+ await context_2 .close ()
652658
653659
654660async def test_should_update_extracted_har_zip_for_page (
@@ -675,3 +681,4 @@ async def test_should_update_extracted_har_zip_for_page(
675681 await expect (page_2 .locator ("body" )).to_have_css (
676682 "background-color" , "rgb(255, 192, 203)"
677683 )
684+ await context_2 .close ()
0 commit comments