Skip to content

Commit b983755

Browse files
minor fix
1 parent 9fff7b1 commit b983755

File tree

4 files changed

+12
-10
lines changed

4 files changed

+12
-10
lines changed

l10n_CM/Unified/test_demo_ad_email_phone_captured_in_doorhanger_and_stored.py

Lines changed: 9 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,16 +4,17 @@
44
from modules.browser_object_autofill_popup import AutofillPopup
55
from modules.page_object_autofill import AddressFill
66
from modules.page_object_prefs import AboutPrefs
7-
from modules.util import Utilities, BrowserActions
7+
from modules.util import BrowserActions, Utilities
88

99

1010
@pytest.fixture()
1111
def test_case():
1212
return "2886581"
1313

1414

15-
def test_demo_ad_email_phone_captured_in_doorhanger_and_stored(driver: Firefox, region: str
16-
):
15+
def test_demo_ad_email_phone_captured_in_doorhanger_and_stored(
16+
driver: Firefox, region: str
17+
):
1718
"""
1819
C2888704 - Verify tele/email data are captured in the Capture Doorhanger and stored in about:preferences
1920
"""
@@ -38,7 +39,9 @@ def test_demo_ad_email_phone_captured_in_doorhanger_and_stored(driver: Firefox,
3839
# containing phone field
3940
expected_phone = address_autofill_data.telephone
4041
with driver.context(driver.CONTEXT_CHROME):
41-
actual_phone = address_autofill_popup.get_element("address-doorhanger-phone").text
42+
actual_phone = address_autofill_popup.get_element(
43+
"address-doorhanger-phone"
44+
).text
4245
normalize_expected = util.normalize_phone_number(expected_phone)
4346
normalized_actual = util.normalize_phone_number(actual_phone)
4447
assert normalized_actual == normalize_expected
@@ -48,15 +51,14 @@ def test_demo_ad_email_phone_captured_in_doorhanger_and_stored(driver: Firefox,
4851

4952
# Navigate to about:preferences#privacy => "Autofill" section
5053
about_prefs = AboutPrefs(driver, category="privacy").open()
51-
iframe = about_prefs.get_save_addresses_popup_iframe()
54+
iframe = about_prefs.get_saved_addresses_popup_iframe()
5255
browser_action_obj.switch_to_iframe_context(iframe)
5356

5457
# The address saved in step 2 is listed in the "Saved addresses" modal: Email and phone
5558
elements = about_prefs.get_elements("saved-addresses-values")
5659
expected_values = [expected_phone, expected_email]
5760
found_email_phone = any(
58-
all(value in element.text for value in expected_values)
59-
for element in elements
61+
all(value in element.text for value in expected_values) for element in elements
6062
)
6163
assert (
6264
found_email_phone

l10n_CM/region/FR.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
"test_demo_ad_name_org_captured_in_doorhanger_and_stored.py",
88
"test_demo_cc_dropdown-presence.py",
99
"test_demo_ad_email_phone_captured_in_doorhanger_and_stored.py",
10-
"test_demo_cc_dropdown-presence.py"
10+
"test_demo_cc_dropdown-presence.py",
1111
"test_demo_cc_clear_form.py"
1212
]
1313
}

l10n_CM/region/US.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,6 @@
77
"test_demo_ad_name_org_captured_in_doorhanger_and_stored.py",
88
"test_demo_cc_dropdown-presence.py",
99
"test_demo_ad_address_data_captured_in_doorhanger_and_stored.py",
10-
"test_verify_new_address_is_added.py"
10+
"test_us_demo_addy_verify_new_address_added.py"
1111
]
1212
}

tests/form_autofill/test_updating_address.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def test_update_address(driver: Firefox):
4343

4444
# Navigate to settings
4545
about_prefs = AboutPrefs(driver, category="privacy").open()
46-
iframe = about_prefs.get_save_addresses_popup_iframe()
46+
iframe = about_prefs.get_saved_addresses_popup_iframe()
4747
browser_action_obj.switch_to_iframe_context(iframe)
4848

4949
# Verify no dupe is saved

0 commit comments

Comments
 (0)