Skip to content

Commit b43de03

Browse files
authored
Merge pull request #466 from mozilla/tracy/work-on-https-first
Maybe?
2 parents 41c39ae + 6255411 commit b43de03

File tree

3 files changed

+7
-6
lines changed

3 files changed

+7
-6
lines changed

l10n_CM/Unified/test_demo_ad_name_org_captured_in_doorhanger_and_stored.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,17 @@
55
from modules.page_object_about_pages import AboutConfig
66
from modules.page_object_autofill import AddressFill
77
from modules.page_object_prefs import AboutPrefs
8-
from modules.util import Utilities, BrowserActions
8+
from modules.util import BrowserActions, Utilities
99

1010

1111
@pytest.fixture()
1212
def test_case():
1313
return "2888701"
1414

1515

16-
def test_demo_ad_name_org_captured_in_doorhanger_and_stored(driver: Firefox, region: str):
16+
def test_demo_ad_name_org_captured_in_doorhanger_and_stored(
17+
driver: Firefox, region: str
18+
):
1719
"""
1820
C2888701 - Verify name/org fields are captured in the Capture Doorhanger and stored in about:preferences
1921
"""
@@ -55,8 +57,7 @@ def test_demo_ad_name_org_captured_in_doorhanger_and_stored(driver: Firefox, reg
5557
elements = about_prefs.get_elements("saved-addresses-values")
5658
expected_values = [expected_name, expected_org]
5759
found_name_org = any(
58-
all(value in element.text for value in expected_values)
59-
for element in elements
60+
all(value in element.text for value in expected_values) for element in elements
6061
)
6162
assert (
6263
found_name_org

modules/page_object_prefs.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -394,11 +394,12 @@ def click_popup_panel_button(self, field: str) -> BasePage:
394394
self.get_element("panel-popup-button", labels=[field]).click()
395395
return self
396396

397-
def select_https_only_setting(self, option_id: HttpsOnlyStatus) -> BasePage:
397+
def select_https_only_setting(self, option_id: "HttpsOnlyStatus") -> BasePage:
398398
"""
399399
Click the HTTPS Only option given
400400
"""
401401
self.find_in_settings("HTTPS")
402+
self.element_clickable(option_id)
402403
self.click_on(option_id)
403404
self.element_attribute_contains(option_id, "checked", "")
404405
return self

tests/security_and_privacy/test_https_enabled_private_browsing.py

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ def test_case():
1414
HTTP_SITE = "http://example.com"
1515

1616

17-
@pytest.mark.unstable
1817
def test_https_first_mode_in_private_browsing(driver: Firefox):
1918
"""
2019
C1362731 Check that https First Mode is properly enabled and working in Private Browsing

0 commit comments

Comments
 (0)