Skip to content

Commit 496ea9b

Browse files
Hani YacoubHani Yacoub
authored andcommitted
Test preview name org
1 parent d950972 commit 496ea9b

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

l10n_CM/Unified/test_demo_ad_preview_name_org.py renamed to l10n_CM/Unified/test_demo_ad_hover_name_org.py

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def test_case():
1313
return "2888557"
1414

1515

16-
def test_demo_ad_preview_name_org(
16+
def test_demo_ad_hover_name_org(
1717
driver: Firefox,
1818
region: str,
1919
address_autofill: AddressFill,
@@ -30,3 +30,16 @@ def test_demo_ad_preview_name_org(
3030

3131
# Click the "Save" button
3232
autofill_popup.click_doorhanger_button("save")
33+
34+
# Hover over each field and check data preview
35+
fields_to_test = ["name", "organization"]
36+
for field in fields_to_test:
37+
# hack to pass over fields that don't show up in autofill dropdown
38+
if field == "address-level1" and region in ["DE", "FR"]:
39+
continue
40+
address_autofill.double_click("form-field", labels=[field])
41+
autofill_popup.ensure_autofill_dropdown_visible()
42+
autofill_popup.hover("select-form-option")
43+
address_autofill.verify_autofill_data_on_hover(
44+
address_autofill_data, autofill_popup, util
45+
)

0 commit comments

Comments
 (0)