diff --git a/test_cases/placeholder_altnames.json b/test_cases/admin_translations.json similarity index 99% rename from test_cases/placeholder_altnames.json rename to test_cases/admin_translations.json index a867436..28721f5 100644 --- a/test_cases/placeholder_altnames.json +++ b/test_cases/admin_translations.json @@ -1,5 +1,5 @@ { - "name": "Placeholder alt names", + "name": "Admin translations", "priorityThresh": 2, "tests": [ { diff --git a/test_cases/venue_translations.json b/test_cases/venue_translations.json new file mode 100644 index 0000000..e2a79cb --- /dev/null +++ b/test_cases/venue_translations.json @@ -0,0 +1,110 @@ +{ + "name": "Venue translations", + "priorityThresh": 2, + "tests": [ + { + "id": 0, + "status": "pass", + "user": "orangejulius", + "description": "venue with multiple translations should return default translation with no lang param", + "in": { + "text": "عمرو إبن العاص, cairo, egypt", + "layers": "venue" + }, + "expected": { + "properties": [ + { + "name": "عمرو إبن العاص", + "layer": "venue", + "country": "Egypt", + "country_a": "EGY" + } + ] + } + }, + { + "id": 1, + "status": "pass", + "user": "orangejulius", + "description": "venue with multiple translations should return english translation with lang param", + "in": { + "text": "عمرو إبن العاص, cairo, egypt", + "layers": "venue", + "lang": "en" + }, + "expected": { + "properties": [ + { + "name": "Mosque of Amr ibn al-As", + "layer": "venue", + "country": "Egypt", + "country_a": "EGY" + } + ] + } + }, + { + "id": 2, + "status": "pass", + "user": "orangejulius", + "description": "venue with multiple translations should return spanish translation with lang param", + "in": { + "text": "عمرو إبن العاص, cairo, egypt", + "layers": "venue", + "lang": "es" + }, + "expected": { + "properties": [ + { + "name": "Mezquita de Amr", + "layer": "venue", + "country": "Egipto", + "country_a": "EGY" + } + ] + } + }, + { + "id": 3, + "status": "pass", + "user": "orangejulius", + "description": "venue with multiple translations should return arabic translation with lang param", + "in": { + "text": "عمرو إبن العاص, cairo, egypt", + "layers": "venue", + "lang": "ar" + }, + "expected": { + "properties": [ + { + "name": "عمرو إبن العاص", + "layer": "venue", + "country": "مصر", + "country_a": "EGY" + } + ] + } + }, + { + "id": 4, + "status": "pass", + "user": "orangejulius", + "description": "venue with multiple translations should return russian translation with lang param", + "in": { + "text": "statue of liberty, manhattan", + "layers": "venue", + "lang": "ru" + }, + "expected": { + "properties": [ + { + "name": "Статуя Свободы", + "layer": "venue", + "borough": "Манхэттен", + "country_a": "USA" + } + ] + } + } + ] +}