gitlab-org--gitlab-foss/spec/support/helpers/issue_helpers.rb
Rémy Coutable 023d4f6f2f
Move spec helpers/matchers/shared examples/contexts to their relevant folder
Signed-off-by: Rémy Coutable <remy@rymai.me>
2018-04-23 12:20:30 +02:00

13 lines
255 B
Ruby

module IssueHelpers
def visit_issues(project, opts = {})
visit project_issues_path project, opts
end
def first_issue
page.all('ul.issues-list > li').first.text
end
def last_issue
page.all('ul.issues-list > li').last.text
end
end