]> git.openstreetmap.org Git - nominatim.git/blob - test/bdd/api/reverse/language.feature
Merge pull request #2689 from lonvia/relations-in-associated-street
[nominatim.git] / test / bdd / api / reverse / language.feature
1 @APIDB
2 Feature: Localization of reverse search results
3
4     Scenario: default language
5         When sending json reverse coordinates 47.14,9.55
6         Then result addresses contain
7           | ID | country |
8           | 0  | Liechtenstein |
9
10     Scenario: accept-language parameter
11         When sending json reverse coordinates 47.14,9.55
12           | accept-language |
13           | ja,en |
14         Then result addresses contain
15           | ID | country |
16           | 0  | リヒテンシュタイン |
17
18     Scenario: HTTP accept language header
19         Given the HTTP header
20           | accept-language |
21           | fo-ca,fo;q=0.8,en-ca;q=0.5,en;q=0.3 |
22         When sending json reverse coordinates 47.14,9.55
23         Then result addresses contain
24           | ID | country |
25           | 0  | Liktinstein |
26
27     Scenario: accept-language parameter and HTTP header
28         Given the HTTP header
29           | accept-language |
30           | fo-ca,fo;q=0.8,en-ca;q=0.5,en;q=0.3 |
31         When sending json reverse coordinates 47.14,9.55
32           | accept-language |
33           | en |
34         Then result addresses contain
35           | ID | country |
36           | 0  | Liechtenstein |