diff options
author | Phil Hughes <me@iamphill.com> | 2018-03-15 17:16:59 +0000 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-03-15 17:16:59 +0000 |
commit | 3e20b83b8b3145abd4e3f09848111d427032d309 (patch) | |
tree | 12e5eaa394b8c57055ec2f9852eb7395e7a2440d /spec | |
parent | 49d5c09758fe9cf6d7ab196be4bdb0f1f4b6b275 (diff) | |
parent | e2e0a4d1570ad4adc640b4c49fc58ed544272e93 (diff) | |
download | gitlab-ce-3e20b83b8b3145abd4e3f09848111d427032d309.tar.gz |
Merge branch 'jivl-realtime-update-adding-file' into 'master'
Add realtime pipeline status component for files
Closes #42927
See merge request gitlab-org/gitlab-ce!17705
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/projects/blobs/blob_show_spec.rb | 25 |
1 files changed, 25 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..ac82f869f0f 100644 --- a/spec/features/projects/blobs/blob_show_spec.rb +++ b/spec/features/projects/blobs/blob_show_spec.rb @@ -509,4 +509,29 @@ feature 'File blob', :js do end end end + + context 'realtime pipelines' do + before do + Files::CreateService.new( + project, + project.creator, + start_branch: 'feature', + branch_name: 'feature', + commit_message: "Add ruby file", + file_path: 'files/ruby/test.rb', + file_content: "# Awesome content" + ).execute + + create(:ci_pipeline, status: 'running', project: project, ref: 'feature', sha: project.commit('feature').sha) + visit_blob('files/ruby/test.rb', ref: 'feature') + end + + it 'should show the realtime pipeline status' do + page.within('.commit-actions') do + expect(page).to have_css('.ci-status-icon') + expect(page).to have_css('.ci-status-icon-running') + expect(page).to have_css('.js-ci-status-icon-running') + end + end + end end |