File tree Expand file tree Collapse file tree 2 files changed +30
-1
lines changed
tests/security_and_privacy Expand file tree Collapse file tree 2 files changed +30
-1
lines changed Original file line number Diff line number Diff line change 196
196
"selectorData" : " .protections-popup-category.subviewbutton.subviewbutton-iconic.subviewbutton-nav.blocked" ,
197
197
"strategy" : " css" ,
198
198
"groups" : []
199
- }
199
+ },
200
200
201
+ "no-trackers-detected" : {
202
+ "selectorData" : " protections-popup-no-trackers-found-description" ,
203
+ "strategy" : " id" ,
204
+ "groups" : []
205
+ }
201
206
}
Original file line number Diff line number Diff line change
1
+ from time import sleep
2
+ import pytest
3
+ from selenium .webdriver import Firefox
4
+ from modules .browser_object_navigation import Navigation
5
+
6
+ NOTRACKERS_URL = "http://example.com/"
7
+
8
+ @pytest .fixture ()
9
+ def add_prefs ():
10
+ return []
11
+
12
+
13
+ def test_no_trackers_detected (driver : Firefox ):
14
+ """
15
+ C446391 No trackers are detected
16
+ """
17
+ nav = Navigation (driver )
18
+ sleep (4 )
19
+ driver .get (NOTRACKERS_URL )
20
+
21
+ # Click on the shield icon and verify that trackers are detected
22
+ with driver .context (driver .CONTEXT_CHROME ):
23
+ nav .get_element ("shield-icon" ).click ()
24
+ assert nav .get_element ("no-trackers-detected" ).is_displayed ()
You can’t perform that action at this time.
0 commit comments