OpenProject is the leading open source project management software.
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
 
 
 
 
 
 
openproject/features/step_definitions/context_menu_steps.rb

9 lines
425 B

Then /^I open the context menu on the work packages:$/ do |table|
elements = []
table.raw.flatten.each do |subject_or_id|
wp = WorkPackage.find_by_subject(subject_or_id) || WorkPackage.find_by_id(subject_or_id)
element = page.find(:xpath, "//body//div[@id='content']//tr[@id='work_package-#{wp.id}']")
element.find(:css, ".checkbox input").click && elements << element
end
right_click(elements.first)
end