diff options
author | Jose Ivan Vargas <jvargas@gitlab.com> | 2018-03-12 23:00:29 +0300 |
---|---|---|
committer | Jose Ivan Vargas <jvargas@gitlab.com> | 2018-03-14 22:31:32 +0300 |
commit | 52c79bc8b30f391e205a66f109a94f2ace5c6b6a (patch) | |
tree | d32e65eaa46197ad82c77a1499ec2148acc9be23 /spec/features/projects | |
parent | a3b85d10e2c61b650d64016c580403d01098da33 (diff) |
Add realtime pipeline status component for files
Diffstat (limited to 'spec/features/projects')
-rw-r--r-- | spec/features/projects/blobs/blob_show_spec.rb | 16 |
1 files changed, 16 insertions, 0 deletions
diff --git a/spec/features/projects/blobs/blob_show_spec.rb b/spec/features/projects/blobs/blob_show_spec.rb index 88813d9b5ff..0fd21a2019c 100644 --- a/spec/features/projects/blobs/blob_show_spec.rb +++ b/spec/features/projects/blobs/blob_show_spec.rb @@ -509,4 +509,20 @@ feature 'File blob', :js do end end end + + context 'realtime pipelines' do + let(:user) { create(:user) } + let(:pipeline) { create(:ci_pipeline, project: project, ref: 'feature', sha: project.commit.id, user: user, status: :success) } + + before do + project.add_master(user) + sign_in(user) + visit_blob('files/ruby/popen.rb', ref: 'feature') + end + + it 'should show the realtime pipeline status' do + wait_for_requests + expect(find('.js-commit-pipeline-status')).not_to be nil + end + end end |