Skip to content

Commit 16b7d65

Browse files
authored
Merge pull request #517 from mozilla/as/dropdown-presence-name-org
Anca/ l10n demo - Name/Organization fields autofill dropdown activation
2 parents 3486152 + 68b037e commit 16b7d65

File tree

2 files changed

+40
-0
lines changed

2 files changed

+40
-0
lines changed
Lines changed: 39 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,39 @@
1+
import pytest
2+
from selenium.webdriver import Firefox
3+
4+
from modules.browser_object_autofill_popup import AutofillPopup
5+
from modules.page_object_autofill import AddressFill
6+
from modules.util import Utilities
7+
8+
9+
@pytest.fixture()
10+
def test_case():
11+
return "2888556"
12+
13+
14+
def test_dropdown_presence_name_organization(
15+
driver: Firefox,
16+
region: str,
17+
address_autofill: AddressFill,
18+
util: Utilities,
19+
autofill_popup: AutofillPopup,
20+
):
21+
"""
22+
C2888556 - Verify that the autofill dropdown is displayed for the name and organization fields after an address was
23+
previously saved
24+
"""
25+
26+
# Create fake data and fill it in
27+
address_autofill.open()
28+
address_autofill_data = util.fake_autofill_data(region)
29+
address_autofill.save_information_basic(address_autofill_data)
30+
31+
# Click the "Save" button
32+
autofill_popup.click_doorhanger_button("save")
33+
34+
# Verify that the name and organization fields have the autofill dropdown present
35+
fields_to_test = ["name", "organization"]
36+
37+
address_autofill.verify_autofill_dropdown_addresses(
38+
autofill_popup=autofill_popup, fields_to_test=fields_to_test, region=region
39+
)

l10n_CM/region/Unified.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@
1919
"test_demo_ad_yellow_highlight_address.py",
2020
"test_demo_ad_yellow_highlight_phone_email.py",
2121
"test_demo_ad_dropdown_presence_address.py",
22+
"test_demo_ad_dropdown_presence_name_org.py",
2223
"test_demo_ad_clear_name_org.py",
2324
"test_demo_ad_clear_address_fields.py",
2425
"test_demo_ad_clear_tel_email.py",

0 commit comments

Comments
 (0)