@@ -443,6 +443,7 @@ def test_should_round_trip_har_zip(
443443 page_2 .goto (server .PREFIX + "/one-style.html" )
444444 assert "hello, world!" in page_2 .content ()
445445 expect (page_2 .locator ("body" )).to_have_css ("background-color" , "rgb(255, 192, 203)" )
446+ context_2 .close ()
446447
447448
448449def test_should_round_trip_har_with_post_data (
@@ -476,6 +477,7 @@ def test_should_round_trip_har_with_post_data(
476477 assert page_2 .evaluate (fetch_function , "3" ) == "3"
477478 with pytest .raises (Exception ):
478479 page_2 .evaluate (fetch_function , "4" )
480+ context_2 .close ()
479481
480482
481483def test_should_disambiguate_by_header (
@@ -517,6 +519,7 @@ def test_should_disambiguate_by_header(
517519 assert page_2 .evaluate (fetch_function , "baz2" ) == "baz2"
518520 assert page_2 .evaluate (fetch_function , "baz3" ) == "baz3"
519521 assert page_2 .evaluate (fetch_function , "baz4" ) == "baz1"
522+ context_2 .close ()
520523
521524
522525def test_should_produce_extracted_zip (
@@ -542,6 +545,7 @@ def test_should_produce_extracted_zip(
542545 page_2 .goto (server .PREFIX + "/one-style.html" )
543546 assert "hello, world!" in page_2 .content ()
544547 expect (page_2 .locator ("body" )).to_have_css ("background-color" , "rgb(255, 192, 203)" )
548+ context_2 .close ()
545549
546550
547551def test_should_update_har_zip_for_context (
@@ -562,6 +566,7 @@ def test_should_update_har_zip_for_context(
562566 page_2 .goto (server .PREFIX + "/one-style.html" )
563567 assert "hello, world!" in page_2 .content ()
564568 expect (page_2 .locator ("body" )).to_have_css ("background-color" , "rgb(255, 192, 203)" )
569+ context_2 .close ()
565570
566571
567572def test_should_update_har_zip_for_page (
@@ -582,6 +587,7 @@ def test_should_update_har_zip_for_page(
582587 page_2 .goto (server .PREFIX + "/one-style.html" )
583588 assert "hello, world!" in page_2 .content ()
584589 expect (page_2 .locator ("body" )).to_have_css ("background-color" , "rgb(255, 192, 203)" )
590+ context_2 .close ()
585591
586592
587593def test_should_update_har_zip_for_page_with_different_options (
@@ -627,3 +633,4 @@ def test_should_update_extracted_har_zip_for_page(
627633 page_2 .goto (server .PREFIX + "/one-style.html" )
628634 assert "hello, world!" in page_2 .content ()
629635 expect (page_2 .locator ("body" )).to_have_css ("background-color" , "rgb(255, 192, 203)" )
636+ context_2 .close ()
0 commit comments