diff options
author | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-10-03 13:24:56 +0200 |
---|---|---|
committer | Grzegorz Bizon <grzesiek.bizon@gmail.com> | 2017-10-05 11:41:42 +0200 |
commit | 599fb7ef7f042594021ca0d26d938683fbe1206d (patch) | |
tree | 1868c234159569746303a14e306bdbfc039e33aa /spec/features | |
parent | 123da5fbe8f5dee13278b1ef9aff79ff9adcef90 (diff) | |
download | gitlab-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.rb | 10 |
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 |