Skip to content

Commit 6e8a9e6

Browse files
authored
Merge pull request #710 from mozilla/anca/cm-pl-zalando
Anca/ L10n [PL] Zalando + fix capture phone on demo
2 parents 455614d + 689ee3d commit 6e8a9e6

File tree

7 files changed

+45
-7
lines changed

7 files changed

+45
-7
lines changed

l10n_CM/Unified/test_demo_ad_7c_capture_doorhanger_stored_data_phone_email.py

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -23,12 +23,6 @@ def test_demo_ad_email_phone_captured_in_doorhanger_and_stored(
2323
C2888704 - Verify phone/email data are captured in the Capture Doorhanger and stored in about:preferences
2424
"""
2525
if not is_live_site:
26-
# Skip for PL region due to Firefox doorhanger bug where phone field doesn't appear
27-
if region == "PL":
28-
pytest.skip(
29-
"Phone field not displayed in doorhanger during automated testing for PL region"
30-
)
31-
3226
# Create fake data and fill it in
3327
address_autofill.open()
3428

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"url": "http://127.0.0.1:8080/zalando_ad.html",
3+
"field_mapping": {
4+
"given_name":"c3fa1b01-da72-4499-a839-ff22339be533",
5+
"family_name":"3418ab6c-db89-4476-b001-e6bcccb25330",
6+
"street_address":"1035f3d8-efd8-48bd-a4ed-0472f18e4b10",
7+
"postal_code":"0769b552-edc4-4ba1-bfef-b8d82665d990",
8+
"address_level_2": "92ed3f36-e523-4a96-a5a9-54be50339e69"
9+
10+
},
11+
"form_field": "*[data-moz-autofill-inspect-id='{name}']",
12+
"fields": [
13+
"c3fa1b01-da72-4499-a839-ff22339be533",
14+
"3418ab6c-db89-4476-b001-e6bcccb25330",
15+
"1035f3d8-efd8-48bd-a4ed-0472f18e4b10",
16+
"0769b552-edc4-4ba1-bfef-b8d82665d990",
17+
"92ed3f36-e523-4a96-a5a9-54be50339e69"
18+
19+
]
20+
}
Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
{
2+
"url": "http://127.0.0.1:8080/zalando_cc.html",
3+
"field_mapping": {
4+
"card_name": "7985a423-775d-4938-a25b-13ba236fd152",
5+
"card_number": "773a1b5d-5337-4dba-bb10-d4ed80bb151e",
6+
"expiration_date": "7985a423-775d-4938-a25b-13ba236fd152",
7+
"cvv": "a8d8392a-b65c-45b0-83d9-f26a6d51815b"
8+
},
9+
"form_field": "*[data-moz-autofill-inspect-id='{name}']",
10+
"skip": "True",
11+
"fields": [
12+
"7985a423-775d-4938-a25b-13ba236fd152",
13+
"773a1b5d-5337-4dba-bb10-d4ed80bb151e",
14+
"7985a423-775d-4938-a25b-13ba236fd152",
15+
"a8d8392a-b65c-45b0-83d9-f26a6d51815b"
16+
]
17+
}

l10n_CM/region/PL.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
22
"region": "PL",
33
"sites": [
4-
"demo"
4+
"demo",
5+
"zalando"
56
],
67
"tests": [
78
]

l10n_CM/sites/zalando/PL/zalando_ad.html

Lines changed: 4 additions & 0 deletions
Large diffs are not rendered by default.

l10n_CM/sites/zalando/PL/zalando_cc.html

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.

modules/util.py

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -556,6 +556,7 @@ def normalize_regional_phone_numbers(self, phone: str, region: str) -> str:
556556
"DE": "49",
557557
"GB": "44",
558558
"IT": "39",
559+
"PL": "48",
559560
"ES": "34"
560561
}
561562

0 commit comments

Comments
 (0)