From 2b041e09aca8bfa1b803e3ddece2afb913b8684c Mon Sep 17 00:00:00 2001 From: Emil Tin Date: Tue, 22 Jul 2014 11:50:46 +0200 Subject: [PATCH] tests uturn query param --- features/testbot/uturn.feature | 69 ++++++++++++++++++++++++++++++++++ 1 file changed, 69 insertions(+) create mode 100644 features/testbot/uturn.feature 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 |