X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/b70b2213a542595f3a890445103031e5b72e847b..bee4fe5b4b497e37c77fc018fbca99f5e56b80cc:/tests/features/api/search.feature?ds=sidebyside diff --git a/tests/features/api/search.feature b/tests/features/api/search.feature index 9b861a7b..859faa76 100644 --- a/tests/features/api/search.feature +++ b/tests/features/api/search.feature @@ -16,17 +16,17 @@ Feature: Search queries Scenario: House number search for non-street address Given the request parameters | accept-language - | en - When sending json search query "4 Pomocnia, Poland" with address - Then address of result 0 is + | en + When sending json search query "4 Pomocnia, Pokrzywnica, Poland" with address + Then address of result 0 contains | type | value | house_number | 4 - | suburb | Pomocnia | county | gmina Pokrzywnica | state | Masovian Voivodeship | postcode | 06-121 | country | Poland | country_code | pl + Then address of result 0 does not contain road Scenario: House number interpolation even Given the request parameters @@ -56,10 +56,12 @@ Feature: Search queries | country | Canada | country_code | ca + @Tiger Scenario: TIGER house number When sending json search query "3 West Victory Way, Craig" Then result 0 has not attributes osm_id,osm_type + @Tiger Scenario: TIGER house number (road fallback) When sending json search query "3030 West Victory Way, Craig" Then result 0 has attributes osm_id,osm_type @@ -72,3 +74,9 @@ Feature: Search queries Then results contain | ID | display_name | 0 | Illinois.* + + Scenario: Search with class-type feature + When sending jsonv2 search query "Hotel California" + Then results contain + | place_rank + | 30