Skip to content

Commit ad870d0

Browse files
authored
Merge pull request #629 from mozilla/as/cm-etsy-ca
Anca/ L10n [CA] - Etsy (ad + cc)
2 parents 017a640 + 014c034 commit ad870d0

File tree

6 files changed

+50
-1
lines changed

6 files changed

+50
-1
lines changed
Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
{
2+
"url": "http://127.0.0.1:8080/etsy_ad.html",
3+
"field_mapping": {
4+
"name": "7771b652-4623-4583-9545-a9a8fefb3df3",
5+
"street_address": "4502ed8f-43f4-4eb4-aa1a-444f42b54f3c",
6+
"address_level_2": "22534994-3376-45b8-8255-144bd5fae86e",
7+
"address_level_1": "e76a5693-ac48-4b3f-8c1e-1a20dc209b95",
8+
"postal_code": "82c605d7-c9b8-4573-a44b-6fac3db96bc0",
9+
"email": "ba1830ab-adad-4026-ad15-356f03489722"
10+
},
11+
12+
"form_field": "*[data-moz-autofill-inspect-id='{name}']",
13+
"fields": [
14+
"7771b652-4623-4583-9545-a9a8fefb3df3",
15+
"4502ed8f-43f4-4eb4-aa1a-444f42b54f3c",
16+
"22534994-3376-45b8-8255-144bd5fae86e",
17+
"e76a5693-ac48-4b3f-8c1e-1a20dc209b95",
18+
"82c605d7-c9b8-4573-a44b-6fac3db96bc0",
19+
"ba1830ab-adad-4026-ad15-356f03489722"
20+
]
21+
}
Lines changed: 18 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,18 @@
1+
{
2+
"url": "http://127.0.0.1:8080/etsy_cc.html",
3+
"field_mapping": {
4+
"name": "f1cb6519-4fb3-4e1e-8286-12ddd1c8e237",
5+
"card_number": "f27252a3-c5aa-4062-b422-a879c746d772",
6+
"expiration_month": "fbf757ed-9628-48d1-8eb4-21486fec38fc",
7+
"expiration_year": "42841b42-61a2-4651-b9a4-33ae12a8243e",
8+
"cvv": "7f6eebc8-8281-4653-9940-5fd90ddd62c4"
9+
},
10+
"form_field": "*[data-moz-autofill-inspect-id='{name}']",
11+
"fields": [
12+
"f1cb6519-4fb3-4e1e-8286-12ddd1c8e237",
13+
"f27252a3-c5aa-4062-b422-a879c746d772",
14+
"fbf757ed-9628-48d1-8eb4-21486fec38fc",
15+
"42841b42-61a2-4651-b9a4-33ae12a8243e",
16+
"7f6eebc8-8281-4653-9940-5fd90ddd62c4"
17+
]
18+
}

l10n_CM/sites/etsy/CA/etsy_ad.html

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

l10n_CM/sites/etsy/CA/etsy_cc.html

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

modules/page_object_autofill.py

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -245,6 +245,12 @@ def verify_form_data(self, sample_data: CreditCardBase | AutofillAddressBase):
245245
)
246246
elif attr_name == "expiration_date" and len(autofilled_field_value) > 5:
247247
autofilled_field_value = autofilled_field_value.replace("20", "")
248+
249+
if autofilled_field_value.isdigit():
250+
# Handle expiration month comparison - normalize to integers to handle leading zeros
251+
autofilled_field_value = str(int(autofilled_field_value))
252+
expected_value = str(int(expected_value))
253+
248254
assert expected_value in autofilled_field_value, (
249255
f"{autofilled_field_value} is different from {expected_value}"
250256
)

tests/audio_video/test_allow_audio_video_functionality.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,4 +61,6 @@ def test_allow_audio_video_functionality(driver: Firefox):
6161
except AssertionError:
6262
sleep(2)
6363
else:
64-
pytest.fail(f"Tab sound status did not reach PLAYING after {max_retries} retries.")
64+
pytest.fail(
65+
f"Tab sound status did not reach PLAYING after {max_retries} retries."
66+
)

0 commit comments

Comments
 (0)