Commit 82199c6c authored by Filipa Lacerda's avatar Filipa Lacerda

Merge branch '27939-fix-current-build-arrow' into 'master'

Fix current build arrow

Closes #27939

See merge request !9154
parents 018a7c6a f2aa9b46
module BuildsHelper module BuildsHelper
def sidebar_build_class(build, current_build) def sidebar_build_class(build, current_build)
build_class = '' build_class = ''
build_class += ' active' if build == current_build build_class += ' active' if build.id === current_build.id
build_class += ' retried' if build.retried? build_class += ' retried' if build.retried?
build_class build_class
end end
......
---
title: Fix current build arrow indicator
merge_request:
author:
...@@ -109,6 +109,10 @@ feature 'Builds', :feature do ...@@ -109,6 +109,10 @@ feature 'Builds', :feature do
expect(page).to have_content pipeline.git_commit_message expect(page).to have_content pipeline.git_commit_message
expect(page).to have_content pipeline.git_author_name expect(page).to have_content pipeline.git_author_name
end end
it 'shows active build' do
expect(page).to have_selector('.build-job.active')
end
end end
context "Job from other project" do context "Job from other project" 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