]> git.openstreetmap.org Git - nominatim.git/blobdiff - test/bdd/db/query/linking.feature
Merge pull request #2637 from lonvia/keep-linked-place-names
[nominatim.git] / test / bdd / db / query / linking.feature
index d11ba31f8aa168e0eb1eb565c74bb2ff76da99b3..bd8e1da0329c58dfc19a03c8b7bfd69e5314f60b 100644 (file)
@@ -17,9 +17,17 @@ Feature: Searching linked places
          | object  | linked_place_id |
          | N2      | R13 |
         When sending search query "Vario"
+         | namedetails |
+         | 1 |
         Then results contain
-         | osm |
-         | R13 |
+         | osm | display_name | namedetails |
+         | R13 | Garbo | "name": "Garbo", "name:it": "Vario" |
+        When sending search query "Vario"
+         | accept-language |
+         | it |
+        Then results contain
+         | osm | display_name |
+         | R13 | Vario |
 
 
     Scenario: Differing names from linked places are searchable
@@ -37,6 +45,12 @@ Feature: Searching linked places
          | object  | linked_place_id |
          | N2      | R13 |
         When sending search query "Vario"
+         | namedetails |
+         | 1 |
+        Then results contain
+         | osm | display_name | namedetails |
+         | R13 | Garbo        | "name": "Garbo", "_place_name": "Vario" |
+        When sending search query "Garbo"
         Then results contain
-         | osm |
-         | R13 |
+         | osm | display_name |
+         | R13 | Garbo |