Skip to content

Commit 4c1a219

Browse files
Hani YacoubHani Yacoub
authored andcommitted
Chaned url naming, increasing sleep time changing conftest
1 parent a76764e commit 4c1a219

File tree

2 files changed

+13
-5
lines changed

2 files changed

+13
-5
lines changed

tests/security_and_privacy/conftest.py

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,14 @@ def suite_id():
77

88

99
@pytest.fixture()
10-
def set_prefs():
11-
"""Set prefs"""
10+
def add_prefs():
1211
return []
12+
13+
14+
@pytest.fixture()
15+
def set_prefs(add_prefs=None):
16+
"""Set prefs"""
17+
prefs = []
18+
if add_prefs is not None:
19+
prefs.extend(add_prefs)
20+
return prefs

tests/security_and_privacy/test_cryptominers_blocked_and_shown_in_info_panel.py

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
from selenium.webdriver import Firefox
33
from modules.browser_object_navigation import Navigation
44

5-
url = "https://senglehardt.com/test/trackingprotection/test_pages/fingerprinting_and_cryptomining.html"
5+
cryptominers_url = "https://senglehardt.com/test/trackingprotection/test_pages/fingerprinting_and_cryptomining.html"
66

77

88
def test_cryptominers_blocked_and_shown_in_info_panel(driver: Firefox):
@@ -11,8 +11,8 @@ def test_cryptominers_blocked_and_shown_in_info_panel(driver: Firefox):
1111
"""
1212
# Access URL, needed sleep otherwise cryptomining will be displayed as unblocked
1313
nav = Navigation(driver)
14-
sleep(2)
15-
driver.get(url)
14+
sleep(4)
15+
driver.get(cryptominers_url)
1616

1717
# Click on the shield icon and verify that cryptominers are blocked
1818
with driver.context(driver.CONTEXT_CHROME):

0 commit comments

Comments
 (0)