-
-
Notifications
You must be signed in to change notification settings - Fork 10
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add tests for multi lang support in autocomplete
- Loading branch information
Showing
1 changed file
with
235 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,235 @@ | ||
{ | ||
"name": "Autocomplete Multi Lang", | ||
"priorityThresh": 1, | ||
"endpoint": "autocomplete", | ||
"notes": "https://github.com/pelias/api/issues/1296", | ||
"tests": [ | ||
{ | ||
"id": "1-1", | ||
"status": "pass", | ||
"user": "Joxit", | ||
"in": { | ||
"lang": "nl", | ||
"text": "Pari" | ||
}, | ||
"expected": { | ||
"priorityThresh": 3, | ||
"properties": [ | ||
{ | ||
"layer": "locality", | ||
"country": "Frankrijk", | ||
"name": "Parijs" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"id": "1-2", | ||
"status": "fail", | ||
"user": "Joxit", | ||
"in": { | ||
"lang": "nl", | ||
"text": "Parij" | ||
}, | ||
"expected": { | ||
"properties": [ | ||
{ | ||
"layer": "locality", | ||
"country": "Frankrijk", | ||
"name": "Parijs" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"id": "1-3", | ||
"status": "fail", | ||
"user": "Joxit", | ||
"in": { | ||
"lang": "nl", | ||
"text": "Parijs" | ||
}, | ||
"expected": { | ||
"properties": [ | ||
{ | ||
"layer": "locality", | ||
"country": "Frankrijk", | ||
"name": "Parijs" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"id": "2-1", | ||
"status": "fail", | ||
"user": "Joxit", | ||
"issue": "https://github.com/pelias/pelias/issues/767", | ||
"in": { | ||
"lang": "de", | ||
"text": "Kair" | ||
}, | ||
"expected": { | ||
"properties": [ | ||
{ | ||
"layer": "region", | ||
"country": "Ägypten", | ||
"name": "Kairo" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"id": "3-1", | ||
"status": "fail", | ||
"user": "Joxit", | ||
"in": { | ||
"lang": "fr", | ||
"text": "Londres" | ||
}, | ||
"expected": { | ||
"properties": [ | ||
{ | ||
"layer": "locality", | ||
"country": "Royaume-Uni", | ||
"name": "Londres" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"id": "4-1", | ||
"status": "fail", | ||
"user": "Joxit", | ||
"in": { | ||
"lang": "zh", | ||
"text": "孟菲斯及其" | ||
}, | ||
"expected": { | ||
"properties": [ | ||
{ | ||
"layer": "venue", | ||
"country": "埃及", | ||
"region": "吉薩省", | ||
"name": "孟菲斯及其墓地金字塔" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"id": "5-1", | ||
"status": "fail", | ||
"user": "Joxit", | ||
"in": { | ||
"lang": "de", | ||
"text": "Marokko" | ||
}, | ||
"expected": { | ||
"properties": [ | ||
{ | ||
"layer": "country", | ||
"country": "Marokko", | ||
"name": "Marokko" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"id": "6-1", | ||
"status": "fail", | ||
"user": "Joxit", | ||
"issue": "https://github.com/pelias/pelias/issues/699", | ||
"in": { | ||
"lang": "en", | ||
"text": "Museum of Kosovo" | ||
}, | ||
"expected": { | ||
"priorityThresh": 10, | ||
"properties": [ | ||
{ | ||
"layer": "venue", | ||
"country": "Kosovo", | ||
"locality": "Pristina", | ||
"name": "Museum of Kosovo" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"id": "6-2", | ||
"status": "pass", | ||
"user": "Joxit", | ||
"issue": "https://github.com/pelias/pelias/issues/699", | ||
"in": { | ||
"lang": "en", | ||
"text": "Muzeu i Kosovës" | ||
}, | ||
"expected": { | ||
"properties": [ | ||
{ | ||
"layer": "venue", | ||
"country": "Kosovo", | ||
"name": "Museum of Kosovo" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"id": "6-3", | ||
"status": "fail", | ||
"user": "Joxit", | ||
"issue": "https://github.com/pelias/pelias/issues/699", | ||
"in": { | ||
"lang": "de", | ||
"text": "Museum des Kosovo" | ||
}, | ||
"expected": { | ||
"properties": [ | ||
{ | ||
"layer": "venue", | ||
"country": "Kosovo", | ||
"locality": "Priština", | ||
"name": "Museum des Kosovo" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"id": "7-1", | ||
"status": "fail", | ||
"user": "Joxit", | ||
"issue": "https://github.com/pelias/pelias/issues/663", | ||
"in": { | ||
"lang": "ru", | ||
"text": "8 марта" | ||
}, | ||
"expected": { | ||
"priorityThresh": 5, | ||
"properties": [ | ||
{ | ||
"layer": "venue", | ||
"name": "8 марта" | ||
} | ||
] | ||
} | ||
}, | ||
{ | ||
"id": "7-2", | ||
"status": "fail", | ||
"user": "Joxit", | ||
"issue": "https://github.com/pelias/pelias/issues/663", | ||
"in": { | ||
"lang": "ru", | ||
"text": "8 Марта, Белоруссия" | ||
}, | ||
"expected": { | ||
"properties": [ | ||
{ | ||
"layer": "venue", | ||
"country": "Белоруссия", | ||
"name": "8 марта" | ||
} | ||
] | ||
} | ||
} | ||
] | ||
} |