summaryrefslogtreecommitdiff
path: root/spec/features
diff options
context:
space:
mode:
authorGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-10-03 13:24:56 +0200
committerGrzegorz Bizon <grzesiek.bizon@gmail.com>2017-10-05 11:41:42 +0200
commit599fb7ef7f042594021ca0d26d938683fbe1206d (patch)
tree1868c234159569746303a14e306bdbfc039e33aa /spec/features
parent123da5fbe8f5dee13278b1ef9aff79ff9adcef90 (diff)
downloadgitlab-ce-599fb7ef7f042594021ca0d26d938683fbe1206d.tar.gz
Add feature specs for pipeline failure reason badge
Diffstat (limited to 'spec/features')
-rw-r--r--spec/features/projects/pipelines/pipelines_spec.rb10
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/features/projects/pipelines/pipelines_spec.rb b/spec/features/projects/pipelines/pipelines_spec.rb
index f7b40cb1820..92486d2bc57 100644
--- a/spec/features/projects/pipelines/pipelines_spec.rb
+++ b/spec/features/projects/pipelines/pipelines_spec.rb
@@ -162,6 +162,16 @@ describe 'Pipelines', :js do
expect(page).to have_selector(
%Q{span[data-original-title="#{pipeline.yaml_errors}"]})
end
+
+ it 'contains badge that indicates failure reason' do
+ expect(page).to have_content 'error'
+ end
+
+ it 'contains badge with tooltip which contains failure reason' do
+ expect(pipeline.failure_reason?).to eq true
+ expect(page).to have_selector(
+ %Q{span[data-original-title="#{pipeline.present.failure_reason}"]})
+ end
end
context 'with manual actions' do