initializes the branches dropdown upon invalid entry
Added Changelog added feature spec
This commit is contained in:
parent
a7f6ab952a
commit
4fae2574c4
3 changed files with 18 additions and 0 deletions
|
@ -383,6 +383,7 @@ import ProjectVariables from './project_variables';
|
|||
projectImport();
|
||||
break;
|
||||
case 'projects:pipelines:new':
|
||||
case 'projects:pipelines:create':
|
||||
new NewBranchForm($('.js-new-pipeline-form'));
|
||||
break;
|
||||
case 'projects:pipelines:builds':
|
||||
|
|
|
@ -0,0 +1,5 @@
|
|||
---
|
||||
title: Initializes the branches dropdown when the 'Start new pipeline' failed due to validation errors
|
||||
merge_request: 15588
|
||||
author: Christiaan Van den Poel
|
||||
type: fixed
|
|
@ -500,6 +500,18 @@ describe 'Pipelines', :js do
|
|||
end
|
||||
|
||||
it { expect(page).to have_content('Missing .gitlab-ci.yml file') }
|
||||
it 'creates a pipeline after first request failed and a valid gitlab-ci.yml file is available when trying again' do
|
||||
click_button project.default_branch
|
||||
|
||||
stub_ci_pipeline_to_return_yaml_file
|
||||
|
||||
page.within '.dropdown-menu' do
|
||||
click_link 'master'
|
||||
end
|
||||
|
||||
expect { click_on 'Create pipeline' }
|
||||
.to change { Ci::Pipeline.count }.by(1)
|
||||
end
|
||||
end
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in a new issue