Fix issuable_bulk_update_path and merge request spinach test

Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
This commit is contained in:
Dmitriy Zaporozhets 2016-09-07 16:18:15 +03:00
parent af9dc9736e
commit 035a38f18e
2 changed files with 6 additions and 4 deletions

View file

@ -113,10 +113,10 @@ module IssuablesHelper
end
def issuable_bulk_update_path(type)
if type == "issue"
bulk_update_namespace_project_issues_path(@project.namespace, @project)
else
if type == :merge_requests
bulk_update_namespace_project_merge_requests_path(@project.namespace, @project)
else
bulk_update_namespace_project_issues_path(@project.namespace, @project)
end
end
end

View file

@ -31,7 +31,9 @@ class Spinach::Features::ProjectMergeRequests < Spinach::FeatureSteps
end
step 'I click link "Closed"' do
click_link "Closed"
page.within('.issues-state-filters') do
click_link "Closed"
end
end
step 'I should see merge request "Wiki Feature"' do