BigW Consortium Gitlab

Commit 69db604e by Phil Hughes

Updated tests

parent d2e2da4c
...@@ -110,7 +110,6 @@ describe 'Filter issues', feature: true do ...@@ -110,7 +110,6 @@ describe 'Filter issues', feature: true do
end end
it 'filters by wont fix labels' do it 'filters by wont fix labels' do
find('.dropdown-menu-labels a', text: label.title).click
page.within '.labels-filter' do page.within '.labels-filter' do
expect(page).to have_content wontfix.title expect(page).to have_content wontfix.title
click_link wontfix.title click_link wontfix.title
......
...@@ -7,12 +7,15 @@ describe 'projects/merge_requests/edit.html.haml' do ...@@ -7,12 +7,15 @@ describe 'projects/merge_requests/edit.html.haml' do
let(:project) { create(:project) } let(:project) { create(:project) }
let(:fork_project) { create(:project, forked_from_project: project) } let(:fork_project) { create(:project, forked_from_project: project) }
let(:unlink_project) { Projects::UnlinkForkService.new(fork_project, user) } let(:unlink_project) { Projects::UnlinkForkService.new(fork_project, user) }
let(:milestone) { create(:milestone, project: project) }
let(:closed_merge_request) do let(:closed_merge_request) do
create(:closed_merge_request, create(:closed_merge_request,
source_project: fork_project, source_project: fork_project,
target_project: project, target_project: project,
author: user) author: user,
assignee: user,
milestone: milestone)
end end
before do before do
......
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