diff --git a/features/testbot/via.feature b/features/testbot/via.feature index 5c7e03837..2168c741f 100644 --- a/features/testbot/via.feature +++ b/features/testbot/via.feature @@ -136,3 +136,29 @@ Feature: Via points | waypoints | route | | a,d,c | abc,bd,bd,bd,abc | | c,d,a | abc,bd,bd,bd,abc | + + # See issue #1896 + Scenario: Via point at a dead end with barrier + Given the profile "car" + Given the node map + | a | b | c | + | | 1 | | + | | d | | + | | | | + | | | | + | f | e | | + + And the nodes + | node | barrier | + | d | bollard | + + And the ways + | nodes | + | abc | + | bd | + | afed | + + When I route I should get + | waypoints | route | + | a,1,c | abc,bd,bd,bd,abc | + | c,1,a | abc,bd,bd,bd,abc |