bdd: new step variant 'result contains in field'

This replaces the + notation for recursing into result dictionaries.
This commit is contained in:
Sarah Hoffmann
2023-03-09 19:31:21 +01:00
parent 556bb2386d
commit e42c1c9c7a
3 changed files with 23 additions and 36 deletions

View File

@@ -7,9 +7,9 @@ Feature: Object details
Then the result is valid json
And result has attributes geometry
And result has not attributes keywords,address,linked_places,parentof
And results contain
| geometry+type |
| Point |
And results contain in field geometry
| type |
| Point |
Scenario: JSON Details with pretty printing
When sending json details query for W297699560
@@ -75,9 +75,9 @@ Feature: Object details
| 1 |
Then the result is valid json
And result has attributes geometry
And results contain
| geometry+type |
| <geometry> |
And results contain in field geometry
| type |
| <geometry> |
Examples:
| osmid | geometry |