X-Git-Url: https://git.openstreetmap.org./nominatim.git/blobdiff_plain/65500927c2955860d392f76fa9b2c318ccd716d2..3cdfe066336ad19772d300a85d6c1feaadc074ea:/test/bdd/api/details/simple.feature diff --git a/test/bdd/api/details/simple.feature b/test/bdd/api/details/simple.feature index 638e89ca..906c4ce5 100644 --- a/test/bdd/api/details/simple.feature +++ b/test/bdd/api/details/simple.feature @@ -3,12 +3,35 @@ Feature: Object details Check details page for correctness Scenario Outline: Details via OSM id - When sending details query for - Then the result is valid html + When sending details query for + Then the result is valid Examples: - | object | - | 492887 | - | N4267356889 | - | W230804120 | - | R123924 | + | format | object | + | json | 107077 | + | json | N5484325405 | + | json | W43327921 | + | json | R123924 | + + Scenario Outline: Details via unknown OSM id + When sending details query for + Then a HTTP 400 is returned + + Examples: + | format | object | + | json | 1 | + | json | R1 | + + Scenario: Details with keywords + When sending details query for W43327921 + | keywords | + | 1 | + Then the result is valid json + + # ticket #1343 + Scenario: Details of a country with keywords + When sending details query for R1155955 + | keywords | + | 1 | + Then the result is valid json +