mirror of
https://github.com/wahyd4/gitlabhq.git
synced 2026-08-09 12:46:07 +10:00
Show information indicating that build has been erased
This commit is contained in:
committed by
Grzegorz Bizon
parent
2c7f36f430
commit
ede451c851
@@ -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
|
||||
|
||||
Reference in New Issue
Block a user