Commit 3f9495da authored by Sean McGivern's avatar Sean McGivern

Merge branch 'fix-default-sort-order-spec-failures' into 'master'

Fix failures in default sort order spec

See merge request !8379
parents 16335b3c ff4d5fc1
......@@ -180,16 +180,10 @@ describe 'Projects > Issuables > Default sort order', feature: true do
end
def visit_merge_requests_with_state(project, state)
visit_merge_requests project
visit_issuables_with_state state
visit_merge_requests project, state: state
end
def visit_issues_with_state(project, state)
visit_issues project
visit_issuables_with_state state
end
def visit_issuables_with_state(state)
within('.issues-state-filters') { find("span", text: state.titleize).click }
visit_issues project, state: state
end
end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment