X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/b2c1d086b5f60f6163e9994fc64662ecec9da045..79d55357e89c6f98e3ec9240d40fcebe6cd31054:/test/bdd/api/search/language.feature?ds=sidebyside diff --git a/test/bdd/api/search/language.feature b/test/bdd/api/search/language.feature index d077e4da..b76adbef 100644 --- a/test/bdd/api/search/language.feature +++ b/test/bdd/api/search/language.feature @@ -2,61 +2,61 @@ Feature: Localization of search results Scenario: default language - When sending json search query "Vietnam" + When sending json search query "Liechtenstein" Then results contain | ID | display_name | - | 0 | Việt Nam | + | 0 | Liechtenstein | Scenario: accept-language first - When sending json search query "Mauretanien" + When sending json search query "Liechtenstein" | accept-language | - | en,de | + | zh,de | Then results contain | ID | display_name | - | 0 | Mauritania | + | 0 | 列支敦士登 | Scenario: accept-language missing - When sending json search query "Mauretanien" + When sending json search query "Liechtenstein" | accept-language | | xx,fr,en,de | Then results contain | ID | display_name | - | 0 | Mauritanie | + | 0 | Liechtenstein | Scenario: http accept language header first Given the HTTP header | accept-language | - | fr-ca,fr;q=0.8,en-ca;q=0.5,en;q=0.3 | - When sending json search query "Mauretanien" + | fo;q=0.8,en-ca;q=0.5,en;q=0.3 | + When sending json search query "Liechtenstein" Then results contain | ID | display_name | - | 0 | Mauritanie | + | 0 | Liktinstein | Scenario: http accept language header and accept-language Given the HTTP header | accept-language | | fr-ca,fr;q=0.8,en-ca;q=0.5,en;q=0.3 | - When sending json search query "Mauretanien" + When sending json search query "Liechtenstein" | accept-language | - | de,en | + | fo,en | Then results contain | ID | display_name | - | 0 | Mauretanien | + | 0 | Liktinstein | Scenario: http accept language header fallback Given the HTTP header | accept-language | - | fr-ca,en-ca;q=0.5 | - When sending json search query "Mauretanien" + | fo-ca,en-ca;q=0.5 | + When sending json search query "Liechtenstein" Then results contain | ID | display_name | - | 0 | Mauritanie | + | 0 | Liktinstein | Scenario: http accept language header fallback (upper case) Given the HTTP header | accept-language | - | fr-FR;q=0.8,en-ca;q=0.5 | - When sending json search query "Mauretanie" + | fo-FR;q=0.8,en-ca;q=0.5 | + When sending json search query "Liechtenstein" Then results contain | ID | display_name | - | 0 | Mauritanie | + | 0 | Liktinstein |