X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/5d656891ba072d88b8b281d239d0dce9f7bd6a1c..5f6dcd36ed433dabc1a39dffe129fe09e1083eaa:/test/bdd/api/search/params.feature diff --git a/test/bdd/api/search/params.feature b/test/bdd/api/search/params.feature index 9c4d1f10..053dbbcd 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 | @@ -67,14 +68,15 @@ Feature: Search queries | 0 | Then there are duplicates + @fail-legacy Scenario: Search with bounded viewbox in right area - When sending json search query "bar" with address + When sending json search query "post" with address | bounded | viewbox | | 1 | 9,47,10,48 | Then result addresses contain | ID | town | | 0 | Vaduz | - When sending json search query "bar" with address + When sending json search query "post" with address | bounded | viewbox | | 1 | 9.49712,47.17122,9.52605,47.16242 | Then result addresses contain @@ -117,18 +119,18 @@ Feature: Search queries Then result has centroid in 9.49712,47.16242,9.52605,47.17122 Scenario: Prefer results within viewbox - When sending json search query "Gässle" with address - | accept-language | - | en | - Then result addresses contain - | ID | town | - | 0 | Balzers | When sending json search query "Gässle" with address | accept-language | viewbox | | en | 9.52413,47.10759,9.53140,47.10539 | Then result addresses contain | ID | village | | 0 | Triesen | + When sending json search query "Gässle" with address + | accept-language | viewbox | + | en | 9.45949,47.08421,9.54094,47.05466 | + Then result addresses contain + | ID | town | + | 0 | Balzers | Scenario: viewboxes cannot be points When sending json search query "foo" @@ -169,11 +171,13 @@ 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" + | dedupe | + | 0 | Then more than 4 results are returned - When sending json search query "schloss" - | limit | - | 4 | + When sending json search query "landstr" + | limit | dedupe | + | 4 | 0 | Then exactly 4 results are returned Scenario: Limit parameter must be a number @@ -227,7 +231,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 |