]> git.openstreetmap.org Git - nominatim.git/blobdiff - test/bdd/api/search/params.feature
fix API tests wrt postcodes
[nominatim.git] / test / bdd / api / search / params.feature
index 1fa16383b839fb28301404b0f703c89545a82348..fba83eab0acdd72f6caeec6cd54e553a93ab5c96 100644 (file)
@@ -25,6 +25,7 @@ Feature: Search queries
           | type         | value |
           | city         | Montevideo |
           | state        | Montevideo |
           | type         | value |
           | city         | Montevideo |
           | state        | Montevideo |
+          | postcode     | 11000 |
           | country      | Uruguay |
           | country_code | uy |
 
           | country      | Uruguay |
           | country_code | uy |
 
@@ -68,18 +69,18 @@ Feature: Search queries
     Scenario: Search with bounded viewbox in right area
         When sending json search query "restaurant" with address
           | bounded | viewbox |
     Scenario: Search with bounded viewbox in right area
         When sending json search query "restaurant" with address
           | bounded | viewbox |
-          | 1       | 9.93027,53.61634,10.10073,53.54500 |
+          | 1       | -56.16786,-34.84061,-56.12525,-34.86526 |
         Then result addresses contain
         Then result addresses contain
-          | state |
-          | Hamburg |
+          | city |
+          | Montevideo |
 
     Scenario: Search with bounded viewboxlbrt in right area
         When sending json search query "restaurant" with address
           | bounded | viewboxlbrt |
 
     Scenario: Search with bounded viewboxlbrt in right area
         When sending json search query "restaurant" with address
           | bounded | viewboxlbrt |
-          | 1       | 9.93027,53.54500,10.10073,53.61634 |
+          | 1       | -56.16786,-34.86526,-56.12525,-34.84061 |
         Then result addresses contain
         Then result addresses contain
-          | state |
-          | Hamburg |
+          | city |
+          | Montevideo |
 
     Scenario: No POI search with unbounded viewbox
         When sending json search query "restaurant"
 
     Scenario: No POI search with unbounded viewbox
         When sending json search query "restaurant"