X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/0a73ed7d6456c745fa710c0f8bc8b82d877c844e..2171b385519841af0e175d88e51741c5322fba25:/test/bdd/api/search/params.feature diff --git a/test/bdd/api/search/params.feature b/test/bdd/api/search/params.feature index af83bd33..d5512f5b 100644 --- a/test/bdd/api/search/params.feature +++ b/test/bdd/api/search/params.feature @@ -172,10 +172,12 @@ Feature: Search queries Scenario: Limit number of search results When sending json search query "landstr" + | dedupe | + | 0 | Then more than 4 results are returned When sending json search query "landstr" - | limit | - | 4 | + | limit | dedupe | + | 4 | 0 | Then exactly 4 results are returned Scenario: Limit parameter must be a number @@ -185,10 +187,6 @@ Feature: Search queries Then a HTTP 400 is returned Scenario: Restrict to feature type country - When sending xml search query "fürstentum" - Then results contain - | ID | class | - | 1 | building | When sending xml search query "fürstentum" | featureType | | country | @@ -198,7 +196,7 @@ Feature: Search queries Scenario: Restrict to feature type state When sending xml search query "Wangerberg" - Then more than 1 result is returned + Then at least 1 result is returned When sending xml search query "Wangerberg" | featureType | | state | @@ -206,9 +204,7 @@ Feature: Search queries Scenario: Restrict to feature type city When sending xml search query "vaduz" - Then results contain - | ID | place_rank | - | 1 | 30 | + Then at least 1 result is returned When sending xml search query "vaduz" | featureType | | city | @@ -356,6 +352,7 @@ Feature: Search queries | svg | | geokml | + @v1-api-php-only Scenario: Search along a route When sending json search query "rathaus" with address Then result addresses contain