Commit 8547b546 authored by Lin Jen-Shin's avatar Lin Jen-Shin

Merge branch '56363-inconsitent-file-size-indication-across-different-ci-pages' into 'master'

Show CI artifacts size with 3 significant digits

Closes #56363

See merge request gitlab-org/gitlab-ce!24387
parents 59ac14aa d6b4b33c
...@@ -14,4 +14,4 @@ ...@@ -14,4 +14,4 @@
= link_to path_to_file, class: 'str-truncated' do = link_to path_to_file, class: 'str-truncated' do
%span= blob.name %span= blob.name
%td %td
= number_to_human_size(blob.size, precision: 2) = number_to_human_size(blob.size)
---
title: Show CI artifact file size with 3 significant digits on 'browse job artifacts'
page
merge_request: 24387
author:
type: fixed
...@@ -25,8 +25,8 @@ describe "User browses artifacts" do ...@@ -25,8 +25,8 @@ describe "User browses artifacts" do
page.within(".tree-table") do page.within(".tree-table") do
expect(page).to have_no_content("..") expect(page).to have_no_content("..")
.and have_content("other_artifacts_0.1.2") .and have_content("other_artifacts_0.1.2")
.and have_content("ci_artifacts.txt") .and have_content("ci_artifacts.txt 27 Bytes")
.and have_content("rails_sample.jpg") .and have_content("rails_sample.jpg 34.4 KB")
end end
page.within(".build-header") do page.within(".build-header") do
......
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