X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/eacaf3489e9fbc6e4db34ea87ef0a2012521de28..cf0d6307d641e17e024af2e49eb73ebc30b23909:/test/bdd/api/search/postcode.feature diff --git a/test/bdd/api/search/postcode.feature b/test/bdd/api/search/postcode.feature index 6033f7cc..81836efb 100644 --- a/test/bdd/api/search/postcode.feature +++ b/test/bdd/api/search/postcode.feature @@ -3,10 +3,10 @@ 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 | - | 57701 | + | 36067 | Scenario: Postcode search with address When sending json search query "9486, mauren" @@ -25,3 +25,23 @@ Feature: Searches with postcodes Then result addresses contain | 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 | + | 9490 | li | + Then result addresses contain + | country_code | postcode | + | li | 9490 |