diff --git a/l10n_CM/constants/tanie-leczenie/PL/tanie-leczenie_ad.json b/l10n_CM/constants/tanie-leczenie/PL/tanie-leczenie_ad.json new file mode 100644 index 00000000..0e9fb2fb --- /dev/null +++ b/l10n_CM/constants/tanie-leczenie/PL/tanie-leczenie_ad.json @@ -0,0 +1,21 @@ +{ + "url": "http://127.0.0.1:8080/tanie-leczenie_ad.html", + "field_mapping": { + "given_name": "1177a861-767c-4d49-b6aa-4a31cd99c9ad", + "family_name": "f7e8ee2b-9d6c-4ae4-afbe-794d204bcd1e", + "street_address": "dfe6784d-d99f-409a-964c-5254533ca1b4", + "postal_code": "d5f2ea78-3730-45e3-a878-05bdc42ce9ee", + "address_level_2": "ce419e26-5ec6-4298-bbfd-82a15e3fbb8b", + "telephone": "b5ae5d44-bc6e-4adf-be70-c00961aad612" + }, + + "form_field": "*[data-moz-autofill-inspect-id='{given_name}']", + "fields": [ + "1177a861-767c-4d49-b6aa-4a31cd99c9ad", + "f7e8ee2b-9d6c-4ae4-afbe-794d204bcd1e", + "dfe6784d-d99f-409a-964c-5254533ca1b4", + "d5f2ea78-3730-45e3-a878-05bdc42ce9ee", + "ce419e26-5ec6-4298-bbfd-82a15e3fbb8b", + "b5ae5d44-bc6e-4adf-be70-c00961aad612" + ] +} \ No newline at end of file diff --git a/l10n_CM/constants/tanie-leczenie/PL/tanie-leczenie_cc.json b/l10n_CM/constants/tanie-leczenie/PL/tanie-leczenie_cc.json new file mode 100644 index 00000000..a974c704 --- /dev/null +++ b/l10n_CM/constants/tanie-leczenie/PL/tanie-leczenie_cc.json @@ -0,0 +1,15 @@ +{ + "url": "http://127.0.0.1:8080/tanie-leczenie_cc.html", + "field_mapping": { + "card_number": "11111111-aaaa-bbbb-cccc-000000000000", + "expiration_date": "22222222-bbbb-cccc-dddd-111111111111", + "cvv": "33333333-cccc-dddd-eeee-222222222222" + }, + "form_field": "*[data-moz-autofill-inspect-id='{name}']", + "skip": "True", + "fields": [ + "11111111-aaaa-bbbb-cccc-000000000000", + "22222222-bbbb-cccc-dddd-111111111111", + "33333333-cccc-dddd-eeee-222222222222" + ] +} \ No newline at end of file diff --git a/l10n_CM/region/PL.json b/l10n_CM/region/PL.json index ffd64883..e38ceee2 100644 --- a/l10n_CM/region/PL.json +++ b/l10n_CM/region/PL.json @@ -3,7 +3,8 @@ "sites": [ "demo", "zalando", - "duka" + "duka", + "tanie-leczenie" ], "tests": [ ] diff --git a/l10n_CM/run_l10n.py b/l10n_CM/run_l10n.py index b4881264..07181571 100644 --- a/l10n_CM/run_l10n.py +++ b/l10n_CM/run_l10n.py @@ -48,8 +48,9 @@ "diy", "tiffany", "assos", + "tanie-leczenie", + "duka", "zooplus", - "duka" } loaded_valid_sites = valid_l10n_mappings().keys() diff --git a/l10n_CM/sites/tanie-leczenie/PL/tanie-leczenie_ad.html b/l10n_CM/sites/tanie-leczenie/PL/tanie-leczenie_ad.html new file mode 100644 index 00000000..cd1bba39 --- /dev/null +++ b/l10n_CM/sites/tanie-leczenie/PL/tanie-leczenie_ad.html @@ -0,0 +1 @@ +Online Pharmacy Cheap-Termping
\ No newline at end of file diff --git a/l10n_CM/sites/tanie-leczenie/PL/tanie-leczenie_cc.html b/l10n_CM/sites/tanie-leczenie/PL/tanie-leczenie_cc.html new file mode 100644 index 00000000..566549bd --- /dev/null +++ b/l10n_CM/sites/tanie-leczenie/PL/tanie-leczenie_cc.html @@ -0,0 +1,10 @@ + + + + + Title + + + + + \ No newline at end of file diff --git a/modules/util.py b/modules/util.py index 7e4c0fd4..007e62cb 100644 --- a/modules/util.py +++ b/modules/util.py @@ -110,6 +110,7 @@ def __init__(self): "Spain": "España", "Poland": "Polska", } + self.fake = None self.locale = None