X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/340e7f7210fca8095fc07ebaf3fb0e95cd0db518..7b0e0dfd883b268b58a721e2967303fa368e563f:/test/bdd/api/search/queries.feature diff --git a/test/bdd/api/search/queries.feature b/test/bdd/api/search/queries.feature index ea353f45..847f1dbf 100644 --- a/test/bdd/api/search/queries.feature +++ b/test/bdd/api/search/queries.feature @@ -2,6 +2,14 @@ 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,6 +23,7 @@ Feature: Search queries | postcode | 9497 | | country | Liechtenstein | | country_code | li | + | ISO3166-2-lvl8 | LI-10 | Scenario: House number interpolation When sending json search query "Grosssteg 1023, Triesenberg" with address @@ -41,6 +50,7 @@ Feature: Search queries | town | Triesenberg | | country | Liechtenstein | | country_code | li | + | ISO3166-2-lvl8 | LI-10 | Scenario Outline: Housenumber 0 can be found When sending search query "Gnalpstrasse 0" with address @@ -66,7 +76,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 | @@ -95,6 +105,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 @@ -117,6 +128,7 @@ 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 @@ -163,7 +175,7 @@ Feature: Search queries Then exactly 0 results are returned Scenario: Ignore country searches when query is restricted to countries - When sending json search query "de" + When sending json search query "fr" | countrycodes | | li | Then exactly 0 results are returned @@ -182,7 +194,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 ""