3 Feature: Structured search queries
4 Testing correctness of results with
8 When sending json search query "" with address
11 Then address of result 0 is
13 | country | Liechtenstein |
16 Scenario: Postcode only
17 When sending json search query "" with address
23 And result addresses contain
27 Scenario: Street, postcode and country
28 When sending xml search query "" with address
29 | street | postalcode | country |
30 | Old Palace Road | GU2 7UP | United Kingdom |
31 Then result header contains
33 | querystring | Old Palace Road, GU2 7UP, United Kingdom |
35 Scenario: Street with housenumber, city and postcode
36 When sending xml search query "" with address
37 | street | city | postalcode |
38 | 19 Am schrägen Weg | Vaduz | 9490 |
39 Then result addresses contain
40 | house_number | road |
41 | 19 | Am Schrägen Weg |
43 Scenario: Street with housenumber, city and bad postcode
44 When sending xml search query "" with address
45 | street | city | postalcode |
46 | 19 Am schrägen Weg | Vaduz | 9491 |
47 Then result addresses contain
48 | house_number | road |
49 | 19 | Am Schrägen Weg |
51 Scenario: Amenity, city
52 When sending json search query "" with address
55 Then result addresses contain
60 | amenity | ^(pub)\|(bar)\|(restaurant) |
63 Scenario: Structured search restricts rank
64 When sending json search query "" with address
67 Then result addresses contain