Skip to content

Commit 1e46f3a

Browse files
Hani YacoubHani Yacoub
authored andcommitted
edit
1 parent e9839a8 commit 1e46f3a

File tree

2 files changed

+2
-21
lines changed

2 files changed

+2
-21
lines changed

l10n_CM/Unified/test_demo_ad_preview_name_org.py

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
import logging
2+
13
import pytest
24
from selenium.webdriver import Firefox
35

@@ -28,12 +30,3 @@ def test_demo_ad_preview_name_org(
2830

2931
# Click the "Save" button
3032
autofill_popup.click_doorhanger_button("save")
31-
32-
fields_to_test = [
33-
"name",
34-
"organization"
35-
]
36-
37-
for field in fields_to_test:
38-
address_autofill.verify_autofill_preview(autofill_popup, field, address_autofill_data.name)
39-
address_autofill.verify_autofill_preview(autofill_popup, field, address_autofill_data.organization)

modules/page_object_autofill.py

Lines changed: 0 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -698,18 +698,6 @@ def clear_and_verify(
698698
# Verify all fields are cleared
699699
self.verify_all_fields_cleared()
700700

701-
def verify_autofill_preview(self, autofill_popup: AutofillPopup, field_label: str, expected_value: str):
702-
"""
703-
Verifies that hovering over an autofill dropdown entry for a given field shows the expected value.
704-
"""
705-
self.double_click("form-field", labels=[field_label])
706-
first_item = autofill_popup.get_nth_element(1)
707-
actual_value = autofill_popup.hover(first_item).get_primary_value(first_item)
708-
709-
assert expected_value == actual_value, (
710-
f"Expected {expected_value}, but got {actual_value}"
711-
)
712-
713701

714702
class TextAreaFormAutofill(Autofill):
715703
"""

0 commit comments

Comments
 (0)