Skip to content

Commit 07941b5

Browse files
committed
vs/autofill-cc-test
1 parent 89256b5 commit 07941b5

File tree

2 files changed

+42
-1
lines changed

2 files changed

+42
-1
lines changed
Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
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 "2888567"
12+
13+
14+
def test_dropdown_presence_email_phone_field(
15+
driver: Firefox,
16+
region: str,
17+
address_autofill: AddressFill,
18+
util: Utilities,
19+
autofill_popup: AutofillPopup,
20+
):
21+
"""
22+
C2888567 - Verify that the autofill dropdown is displayed for the email and phone fields
23+
after the contact information was previously saved.
24+
"""
25+
26+
# Open autofill page
27+
address_autofill.open()
28+
29+
# Generate and save fake data
30+
address_autofill_data = util.fake_autofill_data(region)
31+
address_autofill.save_information_basic(address_autofill_data)
32+
33+
# Click the "Save" button
34+
autofill_popup.click_doorhanger_button("save")
35+
36+
fields_to_test = ["email", "tel"]
37+
38+
address_autofill.verify_autofill_dropdown_addresses(
39+
autofill_popup=autofill_popup, fields_to_test=fields_to_test, region=region
40+
)

l10n_CM/region/US.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
{
22
"region": "US",
33
"tests": [
4-
"test_demo_ad_verify_new_address_added.py"
4+
"test_demo_ad_verify_new_address_added.py",
5+
"test_demo_ad_autofill_dropdown_present_for_email_and_phone.py"
56
]
67
}

0 commit comments

Comments
 (0)