Skip to content

Commit b529f86

Browse files
Hani YacoubHani Yacoub
authored andcommitted
test for Verify Autofill functionality when selecting an entry from the dropdown for name/org fields
1 parent 7e1f748 commit b529f86

File tree

2 files changed

+77
-0
lines changed

2 files changed

+77
-0
lines changed

SELECTOR_INFO.md

Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1182,6 +1182,69 @@ Description: "Submit" button
11821182
Location: At the bottom of the autofill address demo page - https://mozilla.github.io/form-fill-examples/basic.html
11831183
Path to .json: modules/data/address_fill.components.json
11841184
```
1185+
```
1186+
Selector Name: name-field
1187+
Selector Data: "input[autocomplete=name]"
1188+
Description: Name field
1189+
Location: Name field on autofill address demo page - https://mozilla.github.io/form-fill-examples/basic.html
1190+
Path to .json: modules/data/address_fill.components.json
1191+
```
1192+
```
1193+
Selector Name: org-field
1194+
Selector Data: "input[autocomplete=organization]"
1195+
Description: Organization field
1196+
Location: Organization field on autofill address demo page - https://mozilla.github.io/form-fill-examples/basic.html
1197+
Path to .json: modules/data/address_fill.components.json
1198+
```
1199+
```
1200+
Selector Name: street-field
1201+
Selector Data: "input[autocomplete=street-address]"
1202+
Description: Street field
1203+
Location: Street field on autofill address demo page - https://mozilla.github.io/form-fill-examples/basic.html
1204+
Path to .json: modules/data/address_fill.components.json
1205+
```
1206+
```
1207+
Selector Name: add-level2-field
1208+
Selector Data: "input[autocomplete=address-level2]"
1209+
Description: Address level 2 field
1210+
Location: Address level 2 field on autofill address demo page - https://mozilla.github.io/form-fill-examples/basic.html
1211+
Path to .json: modules/data/address_fill.components.json
1212+
```
1213+
```
1214+
Selector Name: add-level1-field
1215+
Selector Data: "input[autocomplete=address-level1]"
1216+
Description: Address level 1 field
1217+
Location: Address level 1 field on autofill address demo page - https://mozilla.github.io/form-fill-examples/basic.html
1218+
Path to .json: modules/data/address_fill.components.json
1219+
```
1220+
```
1221+
Selector Name: zip-field
1222+
Selector Data: "input[autocomplete=postal-code]"
1223+
Description: Zip field
1224+
Location: Zip field on autofill address demo page - https://mozilla.github.io/form-fill-examples/basic.html
1225+
Path to .json: modules/data/address_fill.components.json
1226+
```
1227+
```
1228+
Selector Name: country-field
1229+
Selector Data: "input[autocomplete=country]"
1230+
Description: Country field
1231+
Location: Country field on autofill address demo page - https://mozilla.github.io/form-fill-examples/basic.html
1232+
Path to .json: modules/data/address_fill.components.json
1233+
```
1234+
```
1235+
Selector Name: email-field
1236+
Selector Data: "input[autocomplete=email]"
1237+
Description: Email field
1238+
Location: Email field on autofill address demo page - https://mozilla.github.io/form-fill-examples/basic.html
1239+
Path to .json: modules/data/address_fill.components.json
1240+
```
1241+
```
1242+
Selector Name: phone-field
1243+
Selector Data: "input[autocomplete=tel]"
1244+
Description: Phone field
1245+
Location: Phone field on autofill address demo page - https://mozilla.github.io/form-fill-examples/basic.html
1246+
Path to .json: modules/data/address_fill.components.json
1247+
```
11851248
#### amo_languages
11861249
```
11871250
Selector Name: language-addons-title

l10n_CM/Unified/test_demo_ad_autofill_name_org.py

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,3 +37,17 @@ def test_demo_ad_autofill_name_org(driver: Firefox, region: str):
3737

3838
# Verify autofill data
3939
address_autofill.verify_autofill_data(address_autofill_data, region, util)
40+
41+
# Double inside Name field and select clear form autofill
42+
address_autofill.double_click("form-field", labels=["name"])
43+
address_autofill_popup.click_clear_form_option()
44+
45+
# Double inside Organization field and select a saved address entry from the dropdown
46+
address_autofill.double_click("form-field", labels=["organization"])
47+
48+
# Click on the first element from the autocomplete dropdown
49+
first_item = address_autofill_popup.get_nth_element(1)
50+
address_autofill_popup.click_on(first_item)
51+
52+
# Verify autofill data
53+
address_autofill.verify_autofill_data(address_autofill_data, region, util)

0 commit comments

Comments
 (0)