File tree Expand file tree Collapse file tree 2 files changed +7
-7
lines changed
tests/security_and_privacy Expand file tree Collapse file tree 2 files changed +7
-7
lines changed Original file line number Diff line number Diff line change @@ -6,11 +6,6 @@ def suite_id():
6
6
return ("X" , "Security and Privacy" )
7
7
8
8
9
- @pytest .fixture ()
10
- def add_prefs ():
11
- return []
12
-
13
-
14
9
@pytest .fixture ()
15
10
def set_prefs (add_prefs = None ):
16
11
"""Set 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
from modules .page_object_about_prefs import AboutPrefs
5
7
6
- cryptominers_url = "https://senglehardt.com/test/trackingprotection/test_pages/fingerprinting_and_cryptomining.html"
8
+ CRYPTOMINERS_URL = "https://senglehardt.com/test/trackingprotection/test_pages/fingerprinting_and_cryptomining.html"
7
9
10
+ @pytest .fixture ()
11
+ def add_prefs ():
12
+ return []
8
13
9
14
def test_blocking_cryptominers (driver : Firefox ):
10
15
# instantiate objects
@@ -20,7 +25,7 @@ def test_blocking_cryptominers(driver: Firefox):
20
25
sleep (2 )
21
26
22
27
# Access url and click on the shield icon and verify that cryptominers are blocked
23
- driver .get (cryptominers_url )
28
+ driver .get (CRYPTOMINERS_URL )
24
29
with driver .context (driver .CONTEXT_CHROME ):
25
30
nav .get_element ("shield-icon" ).click ()
26
31
assert nav .get_element ("cryptominers" ).is_displayed ()
You can’t perform that action at this time.
0 commit comments