1 Feature: Localization of search results
3 Scenario: Search - default language
4 When sending json search query "Germany"
9 Scenario: Search - accept-language first
10 Given the request parameters
13 When sending json search query "Deutschland"
18 Scenario: Search - accept-language missing
19 Given the request parameters
22 When sending json search query "Deutschland"
27 Scenario: Search - http accept language header first
30 | fr-ca,fr;q=0.8,en-ca;q=0.5,en;q=0.3
31 When sending json search query "Deutschland"
36 Scenario: Search - http accept language header and accept-language
37 Given the request parameters
42 | fr-ca,fr;q=0.8,en-ca;q=0.5,en;q=0.3
43 When sending json search query "Deutschland"
48 Scenario: Search - http accept language header fallback
52 When sending json search query "Deutschland"
57 Scenario: Search - http accept language header fallback (upper case)
60 | fr-FR;q=0.8,en-ca;q=0.5
61 When sending json search query "Deutschland"
66 Scenario: Reverse - default language
67 When looking up coordinates 48.13921,11.57328
68 Then result addresses contain
72 Scenario: Reverse - accept-language parameter
73 Given the request parameters
76 When looking up coordinates 48.13921,11.57328
77 Then result addresses contain
81 Scenario: Reverse - HTTP accept language header
84 | fr-ca,fr;q=0.8,en-ca;q=0.5,en;q=0.3
85 When looking up coordinates 48.13921,11.57328
86 Then result addresses contain
90 Scenario: Reverse - accept-language parameter and HTTP header
91 Given the request parameters
96 | fr-ca,fr;q=0.8,en-ca;q=0.5,en;q=0.3
97 When looking up coordinates 48.13921,11.57328
98 Then result addresses contain
100 | 0 | Monaco di Baviera