]> git.openstreetmap.org Git - nominatim.git/blobdiff - test/bdd/api/search/postcode.feature
Merge pull request #3301 from lonvia/fix-class-search-regression
[nominatim.git] / test / bdd / api / search / postcode.feature
index 63c8646946cb2d1170879b17c6ff0a9268340650..e372f449a95a882053d6c0ddaf92a5dbae95e751 100644 (file)
@@ -1,12 +1,13 @@
+@SQLITE
 @APIDB
 Feature: Searches with postcodes
     Various searches involving postcodes
 
     Scenario: US 5+4 ZIP codes are shortened to 5 ZIP codes if not found
 @APIDB
 Feature: Searches with postcodes
     Various searches involving postcodes
 
     Scenario: US 5+4 ZIP codes are shortened to 5 ZIP codes if not found
-        When sending json search query "57701 1111, us" with address
+        When sending json search query "36067 1111, us" with address
         Then result addresses contain
             | postcode |
         Then result addresses contain
             | postcode |
-            | 57701    |
+            | 36067    |
 
     Scenario: Postcode search with address
         When sending json search query "9486, mauren"
 
     Scenario: Postcode search with address
         When sending json search query "9486, mauren"
@@ -26,6 +27,18 @@ Feature: Searches with postcodes
             | country_code |
             | li           |
 
             | country_code |
             | li           |
 
+    Scenario: Postcode search with bounded viewbox restriction
+        When sending json search query "9486" with address
+          | bounded | viewbox |
+          | 1       | 9.55,47.20,9.58,47.22 |
+        Then result addresses contain
+            | postcode |
+            | 9486     |
+        When sending json search query "9486" with address
+          | bounded | viewbox                 |
+          | 1       | 5.00,20.00,6.00,21.00 |
+        Then exactly 0 results are returned
+
     Scenario: Postcode search with structured query
         When sending json search query "" with address
             | postalcode | country |
     Scenario: Postcode search with structured query
         When sending json search query "" with address
             | postalcode | country |