2 Feature: Structured search queries
3 Testing correctness of results with
7 When sending json search query "" with address
10 Then address of result 0 is
12 | country | Liechtenstein |
15 Scenario: Postcode only
16 When sending json search query "" with address
22 And result addresses contain
26 Scenario: Street, postcode and country
27 When sending xml search query "" with address
28 | street | postalcode | country |
29 | Old Palace Road | GU2 7UP | United Kingdom |
30 Then result header contains
32 | querystring | Old Palace Road, GU2 7UP, United Kingdom |
34 Scenario: Street with housenumber, city and postcode
35 When sending xml search query "" with address
36 | street | city | postalcode |
37 | 19 Am schrägen Weg | Vaduz | 9490 |
38 Then result addresses contain
39 | house_number | road |
40 | 19 | Am Schrägen Weg |
42 Scenario: Street with housenumber, city and bad postcode
43 When sending xml search query "" with address
44 | street | city | postalcode |
45 | 19 Am schrägen Weg | Vaduz | 9491 |
46 Then result addresses contain
47 | house_number | road |
48 | 19 | Am Schrägen Weg |
50 Scenario: Amenity, city
51 When sending json search query "" with address
54 Then result addresses contain
59 | amenity | ^(pub)\|(bar) |
62 Scenario: Structured search restricts rank
63 When sending json search query "" with address
66 Then result addresses contain