diff options
author | André Luís <me@andr3.net> | 2018-06-07 21:06:31 +0300 |
---|---|---|
committer | Phil Hughes <me@iamphill.com> | 2018-06-07 21:06:31 +0300 |
commit | d64ab8df18db156ff44fb3c9f4ecef529c1c28e3 (patch) | |
tree | 7e20b2bfcf16a9ca041f1989ff9c15c0dc987acf /spec | |
parent | d2aa3e3d5fae1017373cc047a9403cfa111b2031 (diff) |
Resolve "Show `failure_reason` and improve failed jobs tab in pipeline detail view"
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/projects/pipelines/pipeline_spec.rb | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/spec/features/projects/pipelines/pipeline_spec.rb b/spec/features/projects/pipelines/pipeline_spec.rb index 35776a5f23b..ecc7cf84138 100644 --- a/spec/features/projects/pipelines/pipeline_spec.rb +++ b/spec/features/projects/pipelines/pipeline_spec.rb @@ -344,6 +344,16 @@ describe 'Pipeline', :js do it 'shows build failure logs' do expect(page).to have_content('4 examples, 1 failure') end + + it 'shows the failure reason' do + expect(page).to have_content('There is an unknown failure, please try again') + end + + it 'shows retry button for failed build' do + page.within(find('.build-failures', match: :first)) do + expect(page).to have_link('Retry') + end + end end context 'when missing build logs' do |