Skip to content

Commit f1d91e4

Browse files
Hani YacoubHani Yacoub
authored andcommitted
resolve conflicts
2 parents b687cef + d4656c1 commit f1d91e4

File tree

3 files changed

+30
-4
lines changed

3 files changed

+30
-4
lines changed

modules/data/navigation.components.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -197,4 +197,5 @@
197197
"strategy": "css",
198198
"groups": []
199199
}
200+
200201
}

tests/security_and_privacy/conftest.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -3,13 +3,12 @@
33

44
@pytest.fixture()
55
def suite_id():
6-
return ("X", "Security and Privacy")
6+
return ("5833", "Security and Privacy")
77

88

99
@pytest.fixture()
10-
def set_prefs(add_prefs=None):
10+
def set_prefs(add_prefs: dict):
1111
"""Set prefs"""
1212
prefs = []
13-
if add_prefs is not None:
14-
prefs.extend(add_prefs)
13+
prefs.extend(add_prefs)
1514
return prefs
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
from time import sleep
2+
3+
import pytest
4+
from selenium.webdriver import Firefox
5+
from modules.browser_object_navigation import Navigation
6+
7+
CRYPTOMINERS_URL = "https://senglehardt.com/test/trackingprotection/test_pages/fingerprinting_and_cryptomining.html"
8+
9+
@pytest.fixture()
10+
def add_prefs():
11+
return []
12+
13+
14+
def test_cryptominers_blocked_and_shown_in_info_panel(driver: Firefox):
15+
"""
16+
C450232: Cryptominers are blocked and shown in Standard mode in the Information pannel
17+
"""
18+
# Access URL, needed sleep otherwise cryptomining will be displayed as unblocked
19+
nav = Navigation(driver)
20+
sleep(4)
21+
driver.get(CRYPTOMINERS_URL)
22+
23+
# Click on the shield icon and verify that cryptominers are blocked
24+
with driver.context(driver.CONTEXT_CHROME):
25+
nav.get_element("shield-icon").click()
26+
assert nav.get_element("cryptominers").is_displayed()

0 commit comments

Comments
 (0)