From: Sarah Hoffmann Date: Tue, 26 Oct 2021 10:07:13 +0000 (+0200) Subject: adapt BDD tests to stricter partial search X-Git-Tag: v4.0.0~6^2 X-Git-Url: https://git.openstreetmap.org./nominatim.git/commitdiff_plain/c0f347fc8c2dad47ac09332703144e21a31ec209?ds=sidebyside;hp=-c adapt BDD tests to stricter partial search --- c0f347fc8c2dad47ac09332703144e21a31ec209 diff --git a/test/bdd/api/search/params.feature b/test/bdd/api/search/params.feature index 9c4d1f10..b3df7d19 100644 --- a/test/bdd/api/search/params.feature +++ b/test/bdd/api/search/params.feature @@ -169,9 +169,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 +227,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 +241,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 +255,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 +355,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 diff --git a/test/bdd/api/search/queries.feature b/test/bdd/api/search/queries.feature index 6d697ef9..8b70dac1 100644 --- a/test/bdd/api/search/queries.feature +++ b/test/bdd/api/search/queries.feature @@ -66,7 +66,7 @@ Feature: Search queries | way | ^697,.* | Scenario: Search with class-type feature - When sending jsonv2 search query "Hotel in California" + When sending jsonv2 search query "bars in ebenholz" Then results contain | place_rank | | 30 |