Skip to content

Commit 257a088

Browse files
committed
wait for page
1 parent bb0857b commit 257a088

File tree

1 file changed

+10
-3
lines changed

1 file changed

+10
-3
lines changed

tests/security_and_privacy/test_third_party_content_blocked_private_browsing.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,9 @@
1717
SECOND_TRACKER_WEBSITE = "https://www.itisatrap.org/firefox/its-a-tracker.html"
1818

1919

20-
def test_third_party_content_blocked_private_browsing_cross_site(driver: Firefox, screenshot):
20+
def test_third_party_content_blocked_private_browsing_cross_site(
21+
driver: Firefox, screenshot
22+
):
2123
"""
2224
C446323.1: Ensure that third party content is blocked correctly
2325
"""
@@ -58,7 +60,9 @@ def test_third_party_content_blocked_private_browsing_cross_site(driver: Firefox
5860
assert found_tracker
5961

6062

61-
def test_third_party_content_blocked_private_browsing_allowed_tracking(driver: Firefox, screenshot):
63+
def test_third_party_content_blocked_private_browsing_allowed_tracking(
64+
driver: Firefox, screenshot
65+
):
6266
"""
6367
C446323.2: Ensure that some third party content is allowed
6468
"""
@@ -74,6 +78,7 @@ def test_third_party_content_blocked_private_browsing_allowed_tracking(driver: F
7478

7579
# open the website, ensure the blocking is taking place by continuously refreshing website until indicated
7680
tracker_website.open()
81+
tracker_website.wait_for_page_to_load()
7782
tracker_panel.wait_for_blocked_tracking_icon(nav, tracker_website, screenshot)
7883

7984
# verify the indicator
@@ -96,7 +101,9 @@ def test_third_party_content_blocked_private_browsing_allowed_tracking(driver: F
96101
assert item.get_attribute("value") in ALLOWED_TRACKING_URLS
97102

98103

99-
def test_third_party_content_private_browsing_tracking_statuses(driver: Firefox, screenshot):
104+
def test_third_party_content_private_browsing_tracking_statuses(
105+
driver: Firefox, screenshot
106+
):
100107
"""
101108
C446323.3: Ensure that the statuses of some third party content are loaded properly
102109
"""

0 commit comments

Comments
 (0)