diff options
author | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-08-12 00:49:23 +0200 |
---|---|---|
committer | Kamil Trzcinski <ayufan@ayufan.eu> | 2016-08-12 00:49:23 +0200 |
commit | 8acbc9e0853c1af6e772bb00d121dd450830d1c1 (patch) | |
tree | 7888d1f611f578f7b82868aaa0f81be6f95382ed /spec | |
parent | 1984697b35236cc57638aef2067365c25beb426f (diff) | |
parent | d4f987b2861ecec75b06d5efc2ad59e31a383337 (diff) | |
download | gitlab-ce-8acbc9e0853c1af6e772bb00d121dd450830d1c1.tar.gz |
Merge remote-tracking branch 'origin/master' into improve-pipeline-processing
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/projects/pipelines_spec.rb (renamed from spec/features/pipelines_spec.rb) | 30 |
1 files changed, 28 insertions, 2 deletions
diff --git a/spec/features/pipelines_spec.rb b/spec/features/projects/pipelines_spec.rb index 4e75f888176..b57652b3ea2 100644 --- a/spec/features/pipelines_spec.rb +++ b/spec/features/projects/pipelines_spec.rb @@ -205,7 +205,7 @@ describe "Pipelines" do before { visit new_namespace_project_pipeline_path(project.namespace, project) } context 'for valid commit' do - before { fill_in('Create for', with: 'master') } + before { fill_in('pipeline[ref]', with: 'master') } context 'with gitlab-ci.yml' do before { stub_ci_pipeline_to_return_yaml_file } @@ -222,11 +222,37 @@ describe "Pipelines" do context 'for invalid commit' do before do - fill_in('Create for', with: 'invalid-reference') + fill_in('pipeline[ref]', with: 'invalid-reference') click_on 'Create pipeline' end it { expect(page).to have_content('Reference not found') } end end + + describe 'Create pipelines', feature: true do + let(:project) { create(:project) } + + before do + visit new_namespace_project_pipeline_path(project.namespace, project) + end + + describe 'new pipeline page' do + it 'has field to add a new pipeline' do + expect(page).to have_field('pipeline[ref]') + expect(page).to have_content('Create for') + end + end + + describe 'find pipelines' do + it 'shows filtered pipelines', js: true do + fill_in('pipeline[ref]', with: 'fix') + find('input#ref').native.send_keys(:keydown) + + within('.ui-autocomplete') do + expect(page).to have_selector('li', text: 'fix') + end + end + end + end end |