diff options
-rw-r--r-- | app/views/projects/builds/show.html.haml | 13 | ||||
-rw-r--r-- | features/project/builds/summary.feature | 1 | ||||
-rw-r--r-- | features/steps/project/builds/summary.rb | 4 |
3 files changed, 14 insertions, 4 deletions
diff --git a/app/views/projects/builds/show.html.haml b/app/views/projects/builds/show.html.haml index 4dcac0de67a..32dd146b4b9 100644 --- a/app/views/projects/builds/show.html.haml +++ b/app/views/projects/builds/show.html.haml @@ -76,10 +76,15 @@ = link_to '#down-build-trace', class: 'btn' do %i.fa.fa-angle-down - %pre.trace#build-trace - %code.bash - = preserve do - = raw @build.trace_html + - unless @build.erased? + %pre.trace#build-trace + %code.bash + = preserve do + = raw @build.trace_html + - else + .erased.alert.alert-warning + Build has been erased by #{@build.erased_by.username} #{time_ago_with_tooltip(@build.created_at)} + %div#down-build-trace .col-md-3 diff --git a/features/project/builds/summary.feature b/features/project/builds/summary.feature index b4fb537f3d8..6addc56da77 100644 --- a/features/project/builds/summary.feature +++ b/features/project/builds/summary.feature @@ -20,3 +20,4 @@ Feature: Project Builds Summary And I click erase build button Then recent build has been erased And recent build summary does not have artifacts widget + And recent build summary contains information saying that build has been erased diff --git a/features/steps/project/builds/summary.rb b/features/steps/project/builds/summary.rb index 70de61101b8..1bcff659181 100644 --- a/features/steps/project/builds/summary.rb +++ b/features/steps/project/builds/summary.rb @@ -24,4 +24,8 @@ class Spinach::Features::ProjectBuildsSummary < Spinach::FeatureSteps step 'recent build summary does not have artifacts widget' do expect(page).to have_no_css('.artifacts') end + + step 'recent build summary contains information saying that build has been erased' do + expect(page).to have_css('.erased') + end end |