From f54ad3b86dc825462cc40aaeb23763d27aa6fdef Mon Sep 17 00:00:00 2001 From: Sarah Hoffmann Date: Thu, 22 Jan 2015 00:06:44 +0100 Subject: [PATCH] adapt API tests to latest data --- tests/features/api/regression.feature | 2 +- tests/features/api/search.feature | 6 +++--- tests/features/api/search_order.feature | 3 +++ tests/features/api/search_params.feature | 1 + 4 files changed, 8 insertions(+), 4 deletions(-) diff --git a/tests/features/api/regression.feature b/tests/features/api/regression.feature index fcc11dd2..f5a94d30 100644 --- a/tests/features/api/regression.feature +++ b/tests/features/api/regression.feature @@ -6,7 +6,7 @@ Feature: API regression tests When sending json search query "" with address Then result addresses contain | ID | road | city - | 0 | Seegasse | Gemeinde Wieselburg-Land + | 0 | Seegasse | Wieselburg-Land Examples: | query diff --git a/tests/features/api/search.feature b/tests/features/api/search.feature index 9b861a7b..a9846801 100644 --- a/tests/features/api/search.feature +++ b/tests/features/api/search.feature @@ -16,12 +16,12 @@ 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 + | en + When sending json search query "4 Pomocnia, Pokrzywnica, Poland" with address Then address of result 0 is | type | value | house_number | 4 - | suburb | Pomocnia + | city | Pomocnia | county | gmina Pokrzywnica | state | Masovian Voivodeship | postcode | 06-121 diff --git a/tests/features/api/search_order.feature b/tests/features/api/search_order.feature index 11db163f..fad5e89c 100644 --- a/tests/features/api/search_order.feature +++ b/tests/features/api/search_order.feature @@ -2,6 +2,9 @@ Feature: Result order for Geocoding Testing that importance ordering returns sensible results Scenario Outline: city order in street search + Given the request parameters + | limit + | 100 When sending json search query ", " with address Then address of result 0 contains | type | value diff --git a/tests/features/api/search_params.feature b/tests/features/api/search_params.feature index 5733af41..8a49c20d 100644 --- a/tests/features/api/search_params.feature +++ b/tests/features/api/search_params.feature @@ -31,6 +31,7 @@ Feature: Search queries | type | value | city | Inuvik | state | Northwest Territories + | postcode | X0E 0T0 | country | Canada | country_code | ca -- 2.45.2