From 4bf21d6813006f605173f92c071e96456604d34f Mon Sep 17 00:00:00 2001 From: Jens Ulferts Date: Thu, 26 Feb 2015 12:13:36 +0100 Subject: [PATCH] replace cuke implementation in js by standard capybara --- features/step_definitions/timelines_when_steps.rb | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/features/step_definitions/timelines_when_steps.rb b/features/step_definitions/timelines_when_steps.rb index f03360668a..fd7d0c9afb 100644 --- a/features/step_definitions/timelines_when_steps.rb +++ b/features/step_definitions/timelines_when_steps.rb @@ -106,12 +106,13 @@ When (/^I set the first level grouping criteria to "(.*?)" for the timeline "(.* end When (/^I enable the hide other group option$/) do + # it is not possible to use the label for the hide group other field + # because of the " in the label steps %{ When I edit the settings of the current timeline + And I check "timeline_options_hide_other_group" + And I click on "Save" } - - page.execute_script("jQuery('#timeline_options_hide_other_group').prop('checked', true)") - steps %{When I click on "Save"} end When (/^I show only work packages which have the responsible "(.*?)"$/) do |responsible|