File tree Expand file tree Collapse file tree 2 files changed +13
-5
lines changed
tests/security_and_privacy Expand file tree Collapse file tree 2 files changed +13
-5
lines changed Original file line number Diff line number Diff line change @@ -7,6 +7,14 @@ def suite_id():
7
7
8
8
9
9
@pytest .fixture ()
10
- def set_prefs ():
11
- """Set prefs"""
10
+ def add_prefs ():
12
11
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
Original file line number Diff line number Diff line change 2
2
from selenium .webdriver import Firefox
3
3
from modules .browser_object_navigation import Navigation
4
4
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"
6
6
7
7
8
8
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):
11
11
"""
12
12
# Access URL, needed sleep otherwise cryptomining will be displayed as unblocked
13
13
nav = Navigation (driver )
14
- sleep (2 )
15
- driver .get (url )
14
+ sleep (4 )
15
+ driver .get (cryptominers_url )
16
16
17
17
# Click on the shield icon and verify that cryptominers are blocked
18
18
with driver .context (driver .CONTEXT_CHROME ):
You can’t perform that action at this time.
0 commit comments