Skip to content

Commit e9c76cb

Browse files
more fixes to the tests
1 parent 7121ef6 commit e9c76cb

29 files changed

+158
-185
lines changed

SELECTOR_INFO.md

Lines changed: 2 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1537,15 +1537,8 @@ Path to .json: modules/data/autofill_popup.components.json
15371537
```
15381538
```
15391539
Selector Name: address-doorhanger-zip
1540-
Selector Data: "div.address-save-update-row-container:nth-of-type(1) div p:nth-of-type(4) span:nth-of-type(5)"
1541-
Description: Save address doorhanger zip section for US and CA
1542-
Location: Address bar
1543-
Path to .json: modules/data/autofill_popup.components.json
1544-
```
1545-
```
1546-
Selector Name: address-doorhanger-zip-other
1547-
Selector Data: "selectorData": "div.address-save-update-row-container:nth-of-type(1) div p:nth-of-type(4) span:nth-of-type(3)",
1548-
Description: Save address doorhanger zip section for other regions
1540+
Selector Data: "div.address-save-update-row-container:nth-of-type(1) div p:nth-of-type(4) span:nth-last-of-type(1)"
1541+
Description: Save address doorhanger zip section
15491542
Location: Address bar
15501543
Path to .json: modules/data/autofill_popup.components.json
15511544
```

l10n_CM/Unified/test_demo_ad_1a_dropdown_name_org_fields.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def test_dropdown_presence_name_organization(
2525

2626
# Create fake data and fill it in
2727
address_autofill.open()
28-
address_autofill.fill_and_save(util, autofill_popup)
28+
address_autofill.fill_and_save(util, autofill_popup, region)
2929

3030
# Verify that the name and organization fields have the autofill dropdown present
3131
fields_to_test = ["name", "organization"]

l10n_CM/Unified/test_demo_ad_1b_dropdown_address_fields.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def test_dropdown_presence_address_field(
2525

2626
# Create fake data and fill it in
2727
address_autofill.open()
28-
address_autofill.fill_and_save(util, autofill_popup)
28+
address_autofill.fill_and_save(util, autofill_popup, region)
2929

3030
fields_to_test = [
3131
"street-address",

l10n_CM/Unified/test_demo_ad_1c_dropdown_phone_email_fields.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ def test_dropdown_presence_email_phone_field(
2525

2626
# Open autofill page and fill fake data
2727
address_autofill.open()
28-
address_autofill.fill_and_save(util, autofill_popup)
28+
address_autofill.fill_and_save(util, autofill_popup, region)
2929

3030
fields_to_test = ["email", "tel"]
3131

l10n_CM/Unified/test_demo_ad_2a_preview_name_org_fields.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,11 +23,11 @@ def test_demo_ad_hover_name_org(
2323
"""
2424
# Create fake data and fill it in
2525
address_autofill.open()
26-
autofill_data = address_autofill.fill_and_save(util, autofill_popup)
26+
autofill_data = address_autofill.fill_and_save(util, autofill_popup, region)
2727

2828
# Hover over each field and check data preview
2929
fields_to_test = ["name", "organization"]
3030
for field in fields_to_test:
3131
address_autofill.check_autofill_preview_for_field(
32-
field, autofill_data, autofill_popup, util
32+
field, autofill_data, autofill_popup, util, region
3333
)

l10n_CM/Unified/test_demo_ad_2b_preview_address_fields.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ def test_hover_address_is_previewed(
3333
"""
3434
# Create fake data and fill it in
3535
address_autofill.open()
36-
autofill_data = address_autofill.fill_and_save(util, autofill_popup)
36+
autofill_data = address_autofill.fill_and_save(util, autofill_popup, region)
3737

3838
# Hover over each field and check data preview
3939
fields_to_test = [
@@ -45,5 +45,5 @@ def test_hover_address_is_previewed(
4545
]
4646
for field in fields_to_test:
4747
address_autofill.check_autofill_preview_for_field(
48-
field, autofill_data, autofill_popup, util
48+
field, autofill_data, autofill_popup, util, region
4949
)

l10n_CM/Unified/test_demo_ad_2c_preview_phone_email_fields.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ def test_hover_email_and_phone_autofill_preview(
2222
):
2323
# Create fake data and fill it in
2424
address_autofill.open()
25-
autofill_data = address_autofill.fill_and_save(util, autofill_popup)
25+
autofill_data = address_autofill.fill_and_save(util, autofill_popup, region)
2626

2727
# Hover over each field and check data preview
2828
fields_to_test = ["email", "tel"]
2929
for field in fields_to_test:
3030
address_autofill.check_autofill_preview_for_field(
31-
field, autofill_data, autofill_popup, util
31+
field, autofill_data, autofill_popup, util, region
3232
)

l10n_CM/Unified/test_demo_ad_3a_autofill_address_fields.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def test_demo_ad_autofill_address_fields(
2323
"""
2424
# Create fake data and fill it in
2525
address_autofill.open()
26-
address_autofill_data = address_autofill.fill_and_save(util, autofill_popup)
26+
address_autofill_data = address_autofill.fill_and_save(util, autofill_popup, region)
2727

2828
# List of field labels to be autofilled and verified
2929
fields_to_test = [

l10n_CM/Unified/test_demo_ad_3b_autofill_name_org_fields.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def test_demo_ad_autofill_name_org(
2323
"""
2424
# Create fake data and fill it in
2525
address_autofill.open()
26-
address_autofill_data = address_autofill.fill_and_save(util, autofill_popup)
26+
address_autofill_data = address_autofill.fill_and_save(util, autofill_popup, region)
2727

2828
# List of field labels to be autofilled and verified
2929
fields_to_test = ["name", "organization"]

l10n_CM/Unified/test_demo_ad_3c_autofill_phone_email_fields.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@ def test_demo_ad_autofill_phone_email(
2323
"""
2424
# Create fake data and fill it in
2525
address_autofill.open()
26-
address_autofill_data = address_autofill.fill_and_save(util, autofill_popup)
26+
address_autofill_data = address_autofill.fill_and_save(util, autofill_popup, region)
2727

2828
# List of field labels to be autofilled and verified
2929
fields_to_test = ["email", "tel"]

0 commit comments

Comments
 (0)