Show CI artifacts size with 3 significant digits

This commit is contained in:
Vladimir Shushlin 2019-01-17 14:25:14 +00:00 committed by Lin Jen-Shin
parent 59ac14aa6c
commit d6b4b33c0d
3 changed files with 9 additions and 3 deletions

View File

@ -14,4 +14,4 @@
= link_to path_to_file, class: 'str-truncated' do
%span= blob.name
%td
= number_to_human_size(blob.size, precision: 2)
= number_to_human_size(blob.size)

View File

@ -0,0 +1,6 @@
---
title: Show CI artifact file size with 3 significant digits on 'browse job artifacts'
page
merge_request: 24387
author:
type: fixed

View File

@ -25,8 +25,8 @@ describe "User browses artifacts" do
page.within(".tree-table") do
expect(page).to have_no_content("..")
.and have_content("other_artifacts_0.1.2")
.and have_content("ci_artifacts.txt")
.and have_content("rails_sample.jpg")
.and have_content("ci_artifacts.txt 27 Bytes")
.and have_content("rails_sample.jpg 34.4 KB")
end
page.within(".build-header") do