diff options
author | ubudzisz <ubudzisz@gmail.com> | 2016-07-07 12:02:57 +0300 |
---|---|---|
committer | ubudzisz <ubudzisz@gmail.com> | 2016-08-12 00:33:49 +0300 |
commit | 957632b72531e30637c94af9c1f7d3246cc5a6cd (patch) | |
tree | 69bb77b129294213515f10509f717fc74a9f0829 /spec/features | |
parent | ded2b367ad0697765e01796f593493fc4942faeb (diff) |
render only commit title
update CHANGELOG
add auto-completion into pipeline
add auto-completion into pipeline
add auto-completion into pipeline
update changelog
modify tests
remove empty lines
add auto-completion into pipeline
update changelog
modify tests
switch text_field_tag into text_field
add test to new field
switch context into describe
Update CHANGELOG
render only commit title
update CHANGELOG
add auto-completion into pipeline
add auto-completion into pipeline
add auto-completion into pipeline
update changelog
modify tests
remove empty lines
add auto-completion into pipeline
update changelog
modify tests
update changelog
Update CHANGELOG
add indetation
add tests to pipeline ref
change file name for tests
change file name for spec tests
remove empty line
rename test it
rename test name
removing unexpected changes
removing unexpected changes2
update changelog
Diffstat (limited to 'spec/features')
-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 f88b8f8e60b..c39bb7ffa37 100644 --- a/spec/features/pipelines_spec.rb +++ b/spec/features/projects/pipelines_spec.rb @@ -206,7 +206,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 } @@ -223,11 +223,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 |