Skip to content

Commit 92e994f

Browse files
authored
Merge pull request #640 from mozilla/Hani/cm-newegg-us-ad
Hani/ L10n [US] - Newegg (ad)
2 parents d92e2c7 + b1ec1d6 commit 92e994f

File tree

6 files changed

+64
-2
lines changed

6 files changed

+64
-2
lines changed
Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,33 @@
1+
{
2+
"url": "http://127.0.0.1:8080/newegg_ad.html",
3+
"field_mapping": {
4+
"name": "53aa95a7-20d5-49bc-9ba4-5b5c22e437cc",
5+
"street_address": "f4acb449-f06d-4810-80bc-b7777d68c04b",
6+
"address_level_2": "a3e820b4-9276-4828-876f-47424016a652",
7+
"address_level_1": "4452806d-bb31-4799-8ff6-076d8ec8f2df",
8+
"postal_code": "2015d105-63dc-49a4-a7ce-70ab043751bf",
9+
"country": "05751aa2-f4a4-4ec7-a914-d3e88f5960e8",
10+
"email": "91377d28-2268-42fe-9379-54a3c9fdeda6",
11+
"telephone":"afcdcda9-0a2a-468b-92c4-df05b035d3f2"
12+
},
13+
"form_field": "*[data-moz-autofill-inspect-id='{name}']",
14+
"fields": [
15+
"53aa95a7-20d5-49bc-9ba4-5b5c22e437cc",
16+
"f4acb449-f06d-4810-80bc-b7777d68c04b",
17+
"a3e820b4-9276-4828-876f-47424016a652",
18+
"4452806d-bb31-4799-8ff6-076d8ec8f2df",
19+
"2015d105-63dc-49a4-a7ce-70ab043751bf",
20+
"05751aa2-f4a4-4ec7-a914-d3e88f5960e8",
21+
"91377d28-2268-42fe-9379-54a3c9fdeda6",
22+
"afcdcda9-0a2a-468b-92c4-df05b035d3f2"
23+
],
24+
"skipped": [
25+
"test_demo_ad_1b_dropdown_address_fields.py",
26+
"test_demo_ad_2b_preview_address_fields.py",
27+
"test_demo_ad_3a_autofill_address_fields.py",
28+
"test_demo_ad_3b_autofill_name_org_fields.py",
29+
"test_demo_ad_3c_autofill_phone_email_fields.py",
30+
"test_demo_ad_4b_highlight_address_fields.py",
31+
"test_demo_ad_5b_clear_address_fields.py"
32+
]
33+
}
Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"url": "http://127.0.0.1:8080/newegg_cc.html",
3+
"field_mapping": {
4+
"card_number": "11111111-aaaa-bbbb-cccc-000000000000",
5+
"expiration_date": "22222222-bbbb-cccc-dddd-111111111111",
6+
"cvv": "33333333-cccc-dddd-eeee-222222222222"
7+
},
8+
"form_field": "*[data-moz-autofill-inspect-id='{name}']",
9+
"skip": "True",
10+
"fields": [
11+
"11111111-aaaa-bbbb-cccc-000000000000",
12+
"22222222-bbbb-cccc-dddd-111111111111",
13+
"33333333-cccc-dddd-eeee-222222222222"
14+
]
15+
}

l10n_CM/region/US.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,8 @@
77
"etsy",
88
"calvinklein",
99
"bestbuy",
10-
"demo"
10+
"demo",
11+
"newegg"
1112
],
1213
"tests": []
1314
}

l10n_CM/run_l10n.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -126,7 +126,9 @@ def get_region_tests(test_region: str) -> list[str]:
126126
region_data = load(fp)
127127
raw_tests = region_data.get("tests", [])
128128
return (
129-
list(map(lambda test: current_dir + "/Unified/" + test, raw_tests))
129+
list(
130+
map(lambda test: os.path.join(current_dir, "Unified", test), raw_tests)
131+
)
130132
if len(raw_tests) > 0
131133
else raw_tests
132134
)

l10n_CM/sites/newegg/US/newegg_ad.html

Lines changed: 1 addition & 0 deletions
Large diffs are not rendered by default.
Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<title>Title</title>
6+
</head>
7+
<body>
8+
9+
</body>
10+
</html>

0 commit comments

Comments
 (0)