X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/b610118a88489c11249e9c0d30b252d3d98bd287..61e3a053723a6a1131e234aa8ad1a37f18bbec56:/test/bdd/api/search/postcode.feature?ds=inline diff --git a/test/bdd/api/search/postcode.feature b/test/bdd/api/search/postcode.feature index 6033f7cc..e70495f6 100644 --- a/test/bdd/api/search/postcode.feature +++ b/test/bdd/api/search/postcode.feature @@ -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 |