summaryrefslogtreecommitdiff
path: root/spec/features/admin/admin_runners_spec.rb
diff options
context:
space:
mode:
Diffstat (limited to 'spec/features/admin/admin_runners_spec.rb')
-rw-r--r--spec/features/admin/admin_runners_spec.rb18
1 files changed, 17 insertions, 1 deletions
diff --git a/spec/features/admin/admin_runners_spec.rb b/spec/features/admin/admin_runners_spec.rb
index 92a3b388994..30fd04b1c3e 100644
--- a/spec/features/admin/admin_runners_spec.rb
+++ b/spec/features/admin/admin_runners_spec.rb
@@ -2,7 +2,7 @@
require 'spec_helper'
-RSpec.describe "Admin Runners" do
+RSpec.describe "Admin Runners", feature_category: :runner_fleet do
include Spec::Support::Helpers::Features::RunnersHelpers
include Spec::Support::Helpers::ModalHelpers
@@ -90,6 +90,22 @@ RSpec.describe "Admin Runners" do
end
end
+ it 'shows a running status badge that links to jobs tab' do
+ runner = create(:ci_runner, :project, projects: [project])
+ job = create(:ci_build, :running, runner: runner)
+
+ visit admin_runners_path
+
+ within_runner_row(runner.id) do
+ click_on(s_('Runners|Running'))
+ end
+
+ expect(current_url).to match(admin_runner_path(runner))
+
+ expect(find("[data-testid='td-status']")).to have_content "running"
+ expect(find("[data-testid='td-job']")).to have_content "##{job.id}"
+ end
+
describe 'search' do
before_all do
create(:ci_runner, :instance, description: 'runner-foo')