Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add venue translation test cases #500

Merged
merged 1 commit into from
May 28, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "Placeholder alt names",
"name": "Admin translations",
"priorityThresh": 2,
"tests": [
{
Expand Down
110 changes: 110 additions & 0 deletions test_cases/venue_translations.json
Original file line number Diff line number Diff line change
@@ -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"
}
]
}
}
]
}