X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/9a56e53d50211be8b34ac1ecddf0e2930f987701..b427fc79656124cd91475ac26016f5865fbc04f3:/test/bdd/api/search/queries.feature?ds=sidebyside diff --git a/test/bdd/api/search/queries.feature b/test/bdd/api/search/queries.feature index d141122e..b2793faa 100644 --- a/test/bdd/api/search/queries.feature +++ b/test/bdd/api/search/queries.feature @@ -1,7 +1,16 @@ +@SQLITE @APIDB Feature: Search queries Generic search result correctness + Scenario: Search for natural object + When sending json search query "Samina" + | accept-language | + | en | + Then results contain + | ID | class | type | display_name | + | 0 | waterway | river | Samina, Austria | + Scenario: House number search for non-street address When sending json search query "6 Silum, Liechtenstein" with address | accept-language | @@ -15,7 +24,7 @@ Feature: Search queries | postcode | 9497 | | country | Liechtenstein | | country_code | li | - | ISO3166-2-lvl10 | LI-10 | + | ISO3166-2-lvl8 | LI-10 | Scenario: House number interpolation When sending json search query "Grosssteg 1023, Triesenberg" with address @@ -42,7 +51,7 @@ Feature: Search queries | town | Triesenberg | | country | Liechtenstein | | country_code | li | - | ISO3166-2-lvl10 | LI-10 | + | ISO3166-2-lvl8 | LI-10 | Scenario Outline: Housenumber 0 can be found When sending search query "Gnalpstrasse 0" with address @@ -97,6 +106,7 @@ Feature: Search queries | class | type | | club | scout | + @v1-api-php-only Scenario: With multiple amenity search only the first is used When sending json search query "[club=scout] [church] vaduz" Then results contain @@ -119,12 +129,22 @@ Feature: Search queries | class | type | | leisure | firepit | + @v1-api-php-only Scenario: Arbitrary key/value search near given coordinate and named place When sending json search query "[leisure=firepit] ebenholz 47° 9′ 26″ N 9° 36′ 45″ E" Then results contain | class | type | | leisure | firepit | + + Scenario: POI search in a bounded viewbox + When sending json search query "restaurants" + | viewbox | bounded | + | 9.50830,47.15253,9.52043,47.14866 | 1 | + Then results contain + | class | type | + | amenity | restaurant | + Scenario Outline: Key/value search near given coordinate can be restricted to country When sending json search query "[natural=peak] 47.06512,9.53965" with address | countrycodes | @@ -184,7 +204,6 @@ Feature: Search queries Then result addresses contain | ID | house_number | | 0 | 11 | - | 1 | 11 a | Scenario Outline: Coordinate searches with white spaces When sending json search query ""