Skip to content
Snippets Groups Projects

Fix rendering pipelines for a new merge request

Merged Grzegorz Bizon requested to merge fix/gb/invalid-new-merge-request-api into master
All threads resolved!
@@ -84,4 +84,24 @@
@@ -84,4 +84,24 @@
expect(page).not_to have_selector('#error_explanation')
expect(page).not_to have_selector('#error_explanation')
expect(page).not_to have_content('The form contains the following error')
expect(page).not_to have_content('The form contains the following error')
end
end
 
 
context 'when a new merge request has a pipeline' do
 
let!(:pipeline) do
 
create(:ci_pipeline, sha: project.commit('fix').id,
 
ref: 'fix',
 
project: project)
 
end
 
 
it 'shows pipelines for a new merge request' do
 
visit new_namespace_project_merge_request_path(
 
project.namespace, project,
 
merge_request: { target_branch: 'master', source_branch: 'fix' })
 
 
page.within('.merge-request') do
 
click_link 'Pipelines'
 
 
expect(page).to have_content "##{pipeline.id}"
 
end
 
end
 
end
end
end
Loading