summaryrefslogtreecommitdiff
path: root/spec/features
diff options
context:
space:
mode:
authorChristiaan Van den Poel <christiaan.vandenpoel@gmail.com>2017-11-23 17:34:52 +0100
committerChristiaan Van den Poel <christiaan.vandenpoel@protime.eu>2017-11-27 20:31:45 +0100
commit4fae2574c41f0e2248989b9dac8738d546ea0217 (patch)
treeb52b3aa80423317634de9780f9cc70e159585471 /spec/features
parenta7f6ab952acc58e7ef9a33fba3fbaaa0918572fe (diff)
downloadgitlab-ce-4fae2574c41f0e2248989b9dac8738d546ea0217.tar.gz
initializes the branches dropdown upon invalid entry
Added Changelog added feature spec
Diffstat (limited to 'spec/features')
-rw-r--r--spec/features/projects/pipelines/pipelines_spec.rb12
1 files changed, 12 insertions, 0 deletions
diff --git a/spec/features/projects/pipelines/pipelines_spec.rb b/spec/features/projects/pipelines/pipelines_spec.rb
index 50f8f13d261..a1b1d94ae06 100644
--- a/spec/features/projects/pipelines/pipelines_spec.rb
+++ b/spec/features/projects/pipelines/pipelines_spec.rb
@@ -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