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/_then_steps.rb

22 lines
733 B

# encoding: utf-8
Then /^I should see an issue link for "([^"]*)"$/ do |issue_name|
issue = Issue.find_by_subject(issue_name)
text = "##{issue.id}"
step %Q{I should see "#{text}"}
end
Then /^I should see a quickinfo link for "([^"]*)"$/ do |issue_name|
issue = Issue.find_by_subject(issue_name)
text = "##{issue.id} #{issue.status}: #{issue.subject} #{issue.start_date.to_s}#{issue.due_date.to_s} (#{issue.assigned_to.to_s})"
step %Q{I should see "#{text}"}
end
Then /^I should see a quickinfo link with description for "([^"]*)"$/ do |issue_name|
issue = Issue.find_by_subject(issue_name)
step %Q{I should see a quickinfo link for "#{issue_name}"}
step %Q{I should see "#{issue.description}"}
end