File tree Expand file tree Collapse file tree 2 files changed +11
-11
lines changed
tests/security_and_privacy Expand file tree Collapse file tree 2 files changed +11
-11
lines changed Original file line number Diff line number Diff line change 3
3
4
4
@pytest .fixture ()
5
5
def suite_id ():
6
- return ("X " , "Security and Privacy" )
6
+ return ("5833 " , "Security and Privacy" )
7
7
8
8
9
9
@pytest .fixture ()
10
- def add_prefs ():
11
- return []
12
-
13
-
14
- @pytest .fixture ()
15
- def set_prefs (add_prefs = None ):
10
+ def set_prefs (add_prefs : dict ):
16
11
"""Set prefs"""
17
12
prefs = []
18
- if add_prefs is not None :
19
- prefs .extend (add_prefs )
13
+ prefs .extend (add_prefs )
20
14
return prefs
Original file line number Diff line number Diff line change 1
1
from time import sleep
2
+
3
+ import pytest
2
4
from selenium .webdriver import Firefox
3
5
from modules .browser_object_navigation import Navigation
4
6
5
- cryptominers_url = "https://senglehardt.com/test/trackingprotection/test_pages/fingerprinting_and_cryptomining.html"
7
+ CRYPTOMINERS_URL = "https://senglehardt.com/test/trackingprotection/test_pages/fingerprinting_and_cryptomining.html"
8
+
9
+ @pytest .fixture ()
10
+ def add_prefs ():
11
+ return []
6
12
7
13
8
14
def test_cryptominers_blocked_and_shown_in_info_panel (driver : Firefox ):
@@ -12,7 +18,7 @@ def test_cryptominers_blocked_and_shown_in_info_panel(driver: Firefox):
12
18
# Access URL, needed sleep otherwise cryptomining will be displayed as unblocked
13
19
nav = Navigation (driver )
14
20
sleep (4 )
15
- driver .get (cryptominers_url )
21
+ driver .get (CRYPTOMINERS_URL )
16
22
17
23
# Click on the shield icon and verify that cryptominers are blocked
18
24
with driver .context (driver .CONTEXT_CHROME ):
You can’t perform that action at this time.
0 commit comments