Commit 0805e28d authored by Miguel Rincon's avatar Miguel Rincon

Fix runner count when tabs are used

This change updates the runner count in the "All" tab for runners.

Changelog: fixed
parent 13e17a0f
......@@ -99,7 +99,10 @@ export default {
allRunnersCount: {
...runnersCountSmartQuery,
variables() {
return this.countVariables;
return {
...this.countVariables,
type: null,
};
},
},
instanceRunnersCount: {
......
......@@ -254,6 +254,18 @@ RSpec.describe "Admin Runners" do
expect(page).not_to have_content 'runner-group'
end
it 'show the same counts after selecting another tab' do
visit admin_runners_path
page.within('[data-testid="runner-type-tabs"]') do
click_on('Project')
expect(page).to have_link('All 2')
expect(page).to have_link('Group 1')
expect(page).to have_link('Project 1')
end
end
it 'shows no runner when type does not match' do
visit admin_runners_path
......
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