X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/a74e736283c7871a2c47494f18cc65da6b43bccb..9cf700e85d723736bf54334f0b1bd9e885cbb42a:/test/bdd/api/search/params.feature?ds=inline diff --git a/test/bdd/api/search/params.feature b/test/bdd/api/search/params.feature index 9c4d1f10..3f12f1c8 100644 --- a/test/bdd/api/search/params.feature +++ b/test/bdd/api/search/params.feature @@ -34,6 +34,7 @@ Feature: Search queries | postcode | 9495 | | country | Liechtenstein | | country_code | li | + | ISO3166-2-lvl8 | LI-09 | Examples: | format | @@ -169,9 +170,9 @@ Feature: Search queries Then at most 50 results are returned Scenario: Limit number of search results - When sending json search query "schloss" + When sending json search query "landstr" Then more than 4 results are returned - When sending json search query "schloss" + When sending json search query "landstr" | limit | | 4 | Then exactly 4 results are returned @@ -227,7 +228,7 @@ Feature: Search queries | place | village | Scenario Outline: Search with polygon threshold (json) - When sending json search query "switzerland" + When sending json search query "triesenberg" | polygon_geojson | polygon_threshold | | 1 | | Then at least 1 result is returned @@ -241,7 +242,7 @@ Feature: Search queries | 999 | Scenario Outline: Search with polygon threshold (xml) - When sending xml search query "switzerland" + When sending xml search query "triesenberg" | polygon_geojson | polygon_threshold | | 1 | | Then at least 1 result is returned @@ -255,7 +256,7 @@ Feature: Search queries | 999 | Scenario Outline: Search with invalid polygon threshold (xml) - When sending xml search query "switzerland" + When sending xml search query "triesenberg" | polygon_geojson | polygon_threshold | | 1 | | Then a HTTP 400 is returned @@ -355,11 +356,11 @@ Feature: Search queries | geokml | Scenario: Search along a route - When sending json search query "schloss" with address + When sending json search query "rathaus" with address Then result addresses contain | ID | town | - | 0 | Vaduz | - When sending json search query "schloss" with address + | 0 | Schaan | + When sending json search query "rathaus" with address | bounded | routewidth | route | | 1 | 0.1 | 9.54353,47.11772,9.54314,47.11894 | Then result addresses contain