Commit ede451c8 authored by Grzegorz Bizon's avatar Grzegorz Bizon Committed by Grzegorz Bizon

Show information indicating that build has been erased

parent 2c7f36f4
......@@ -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
......
......@@ -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
......@@ -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
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment