diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-10-17 15:10:08 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-10-17 15:10:08 +0300 |
commit | 8060e5c60901ab0f6b890414dccbdf5d1b95c3ad (patch) | |
tree | fc217fe53f68a45ea225c0d1b966642852d96321 /spec/features | |
parent | b9b58dba70466949d761132d2d96f0f24c0b469c (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features')
-rw-r--r-- | spec/features/groups/group_runners_spec.rb | 44 |
1 files changed, 13 insertions, 31 deletions
diff --git a/spec/features/groups/group_runners_spec.rb b/spec/features/groups/group_runners_spec.rb index 97c9103a054..e9807c487d5 100644 --- a/spec/features/groups/group_runners_spec.rb +++ b/spec/features/groups/group_runners_spec.rb @@ -119,45 +119,27 @@ RSpec.describe "Group Runners" do create(:ci_runner, :instance, description: 'runner-baz', contacted_at: Time.zone.now) end - context "when runners_finder_all_available is enabled" do - before do - stub_feature_flags(runners_finder_all_available: true) - - visit group_runners_path(group) - end - - context "when selecting 'Show only inherited'" do - before do - find("[data-testid='runner-membership-toggle'] button").click - - wait_for_requests - end - - it_behaves_like 'shows runner in list' do - let(:runner) { instance_runner } - end - - it 'shows runner details page' do - click_link("##{instance_runner.id} (#{instance_runner.short_sha})") - - expect(current_url).to include(group_runner_path(group, instance_runner)) - expect(page).to have_content "#{s_('Runners|Description')} runner-baz" - end - end + before do + visit group_runners_path(group) end - context "when runners_finder_all_available is disabled" do + context "when selecting 'Show only inherited'" do before do - stub_feature_flags(runners_finder_all_available: false) + find("[data-testid='runner-membership-toggle'] button").click - visit group_runners_path(group) + wait_for_requests end - it "does not display 'Show only inherited' toggle" do - expect(page).not_to have_content(s_('Runners|Show only inherited')) + it_behaves_like 'shows runner in list' do + let(:runner) { instance_runner } end - it_behaves_like 'shows no runners registered' + it 'shows runner details page' do + click_link("##{instance_runner.id} (#{instance_runner.short_sha})") + + expect(current_url).to include(group_runner_path(group, instance_runner)) + expect(page).to have_content "#{s_('Runners|Description')} runner-baz" + end end end |