diff --git a/features/testbot/uturn.feature b/features/testbot/uturn.feature new file mode 100644 index 000000000..0056f023b --- /dev/null +++ b/features/testbot/uturn.feature @@ -0,0 +1,69 @@ +@routing @uturn @via +Feature: U-turns at via points + + Background: + Given the profile "testbot" + + Scenario: U-turns at via points disabled by default + Given the node map + | a | b | c | d | + | | e | f | g | + + And the ways + | nodes | + | ab | + | bc | + | cd | + | be | + | dg | + | ef | + | fg | + + When I route I should get + | waypoints | route | turns | + | a,e,c | ab,be,ef,fg,dg,cd | head,right,left,straight,left,left,destination | + + Scenario: Query param to allow U-turns at all via points + Given the node map + | a | b | c | d | + | | e | f | g | + + And the query options + | uturns | true | + + And the ways + | nodes | + | ab | + | bc | + | cd | + | be | + | dg | + | ef | + | fg | + + When I route I should get + | waypoints | route | + | a,e,c | ab,be,bc | + + @todo + Scenario: Instructions at via points at u-turns + Given the node map + | a | b | c | d | + | | e | f | g | + + And the query options + | uturns | true | + + And the ways + | nodes | + | ab | + | bc | + | cd | + | be | + | dg | + | ef | + | fg | + + When I route I should get + | waypoints | route | turns | + | a,e,c | ab,be,be,bc | head,right,uturn,right,destination |