84a3225b0c
Provide more sensible default sort order for issues and merge requests based on the following table: | type | state | default sort order | |----------------|--------|--------------------| | issues | open | last created | | issues | closed | last updated | | issues | all | last created | | merge requests | open | last created | | merge requests | merged | last updated | | merge requests | closed | last updated | | merge requests | all | last created |
13 lines
284 B
Ruby
13 lines
284 B
Ruby
module IssueHelpers
|
|
def visit_issues(project, opts = {})
|
|
visit namespace_project_issues_path project.namespace, 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
|