switch BDD tests to always use search API

This commit is contained in:
Sarah Hoffmann
2021-06-06 15:27:52 +02:00
parent f0a7850edf
commit 3aac51c81f
13 changed files with 260 additions and 266 deletions

View File

@@ -10,7 +10,9 @@ Feature: Updates of linked places
| osm | class | type | name | admin | geometry |
| R1 | boundary | administrative | foo | 8 | poly-area:0.1 |
When importing
And searching for "foo" with dups
And sending search query "foo"
| dups |
| 1 |
Then results contain
| osm_type |
| R |
@@ -20,7 +22,9 @@ Feature: Updates of linked places
Then placex contains
| object | linked_place_id |
| N1 | - |
When searching for "foo" with dups
When sending search query "foo"
| dups |
| 1 |
Then results contain
| osm_type |
| N |
@@ -33,7 +37,9 @@ Feature: Updates of linked places
| osm | class | type | name | admin | geometry |
| R1 | boundary | administrative | foo | 8 | poly-area:0.1 |
When importing
And searching for "foo" with dups
And sending search query "foo"
| dups |
| 1 |
Then results contain
| osm_type |
| R |
@@ -41,7 +47,9 @@ Feature: Updates of linked places
Then placex contains
| object | linked_place_id |
| N1 | - |
When searching for "foo" with dups
When sending search query "foo"
| dups |
| 1 |
Then results contain
| osm_type |
| N |
@@ -51,7 +59,9 @@ Feature: Updates of linked places
| osm | class | type | name | geometry |
| N1 | place | city | foo | 0 0 |
When importing
And searching for "foo" with dups
And sending search query "foo"
| dups |
| 1 |
Then results contain
| osm_type |
| N |
@@ -61,7 +71,9 @@ Feature: Updates of linked places
Then placex contains
| object | linked_place_id |
| N1 | R1 |
When searching for "foo" with dups
When sending search query "foo"
| dups |
| 1 |
Then results contain
| osm_type |
| R |
@@ -74,7 +86,9 @@ Feature: Updates of linked places
| osm | class | type | name | admin | geometry |
| R1 | boundary | administrative | foobar | 8 | poly-area:0.1 |
When importing
And searching for "foo" with dups
And sending search query "foo"
| dups |
| 1 |
Then results contain
| osm_type |
| N |
@@ -84,7 +98,9 @@ Feature: Updates of linked places
Then placex contains
| object | linked_place_id |
| N1 | R1 |
When searching for "foo" with dups
When sending search query "foo"
| dups |
| 1 |
Then results contain
| osm_type |
| R |

View File

@@ -7,10 +7,10 @@ Feature: Update of names in place objects
| osm | class | type | postcode | geometry |
| R1 | boundary | postal_code | 12345 | poly-area:0.5 |
When importing
And searching for "12345"
And sending search query "12345"
Then results contain
| ID | osm_type | osm_id |
| 0 | R | 1 |
| ID | osm |
| 0 | R1 |
When updating places
| osm | class | type | geometry |
| R1 | boundary | postal_code | poly-area:0.5 |