]> git.openstreetmap.org Git - nominatim.git/blobdiff - test/bdd/api/search/structured.feature
Merge pull request #1901 from lonvia/speed-up-indexing
[nominatim.git] / test / bdd / api / search / structured.feature
index c93603d6e00d57096bd9bcd8b67e9b6d5c5339e5..ec7eb1be68631cd0a45b5c0cbc3a386f05a42ae5 100644 (file)
@@ -31,6 +31,33 @@ Feature: Structured search queries
           | attr        | value |
           | querystring | Old Palace Road, GU2 7UP, United Kingdom |
 
           | attr        | value |
           | querystring | Old Palace Road, GU2 7UP, United Kingdom |
 
+    Scenario: Street with housenumber, city and postcode
+        When sending xml search query "" with address
+          | street             | city  | postalcode |
+          | 19 Am schrägen Weg | Vaduz | 9490       |
+        Then result addresses contain
+          | house_number | road |
+          | 19           | Am Schrägen Weg |
+
+    Scenario: Street with housenumber, city and bad postcode
+        When sending xml search query "" with address
+          | street             | city  | postalcode |
+          | 19 Am schrägen Weg | Vaduz | 9491       |
+        Then result addresses contain
+          | house_number | road |
+          | 19           | Am Schrägen Weg |
+
+    Scenario: Amenity, city
+        When sending json search query "" with address
+          | city  | amenity |
+          | Vaduz | church  |
+        Then result addresses contain
+          | country |
+          | Liechtenstein |
+        And  results contain
+          | class   | type |
+          | amenity | place_of_worship |
+
     Scenario: gihub #176
         When sending json search query "" with address
           | city |
     Scenario: gihub #176
         When sending json search query "" with address
           | city |