adapt API tests to latest data

This commit is contained in:
Sarah Hoffmann
2015-01-22 00:06:44 +01:00
parent 021702f190
commit f54ad3b86d
4 changed files with 8 additions and 4 deletions

View File

@@ -6,7 +6,7 @@ Feature: API regression tests
When sending json search query "<query>" with address
Then result addresses contain
| ID | road | city
| 0 | Seegasse | Gemeinde Wieselburg-Land
| 0 | Seegasse | Wieselburg-Land
Examples:
| query

View File

@@ -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

View File

@@ -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 "<street>, <city>" with address
Then address of result 0 contains
| type | value

View File

@@ -31,6 +31,7 @@ Feature: Search queries
| type | value
| city | Inuvik
| state | Northwest Territories
| postcode | X0E 0T0
| country | Canada
| country_code | ca