From 46754b04fa3744958c0b8cad47c9d750e8d33780 Mon Sep 17 00:00:00 2001 From: Jens Ulferts Date: Mon, 11 Jan 2016 12:18:34 +0100 Subject: [PATCH] adapt cuke to be able to add a comment --- features/step_definitions/work_package_steps.rb | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/features/step_definitions/work_package_steps.rb b/features/step_definitions/work_package_steps.rb index 1d944d2212..824344c6f6 100644 --- a/features/step_definitions/work_package_steps.rb +++ b/features/step_definitions/work_package_steps.rb @@ -172,8 +172,11 @@ When /^I click the unwatch work package button$/ do end When /^I fill in a comment with "(.+?)"$/ do |comment| + # Using the "I click on "..." step does not work for some reason + + find('.work-packages--activity--add-comment .inplace-editing--trigger-link').click + steps %{ - And I click on "Click to add a comment" Then I fill in "value" with "#{comment}" within ".work-packages--activity--add-comment" } end