diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-05-04 18:09:12 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-05-04 18:09:12 +0300 |
commit | 856e2c64ee69b055b31a8ebbeee616f13a46505e (patch) | |
tree | 0ec9b70c8f1f74516631bf87281c175e127fedd2 /spec/features/groups | |
parent | 8ed0a009f0ae0de789fae01b3cc9bda54aa03965 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features/groups')
-rw-r--r-- | spec/features/groups/settings/ci_cd_spec.rb | 12 |
1 files changed, 11 insertions, 1 deletions
diff --git a/spec/features/groups/settings/ci_cd_spec.rb b/spec/features/groups/settings/ci_cd_spec.rb index ceab9fc2384..50c481c115c 100644 --- a/spec/features/groups/settings/ci_cd_spec.rb +++ b/spec/features/groups/settings/ci_cd_spec.rb @@ -17,7 +17,7 @@ RSpec.describe 'Group CI/CD settings' do end describe 'Runners section' do - let(:shared_runners_toggle) { page.find('[data-testid="enable-runners-toggle"]') } + let(:shared_runners_toggle) { page.find('[data-testid="shared-runners-toggle"]') } before do visit group_settings_ci_cd_path(group) @@ -31,6 +31,16 @@ RSpec.describe 'Group CI/CD settings' do it 'has "Enable shared runners for this group" toggle', :js do expect(shared_runners_toggle).to have_content(_('Enable shared runners for this group')) end + + it 'clicks on toggle to enable setting', :js do + expect(group.shared_runners_setting).to be(Namespace::SR_ENABLED) + + shared_runners_toggle.find('button').click + wait_for_requests + + group.reload + expect(group.shared_runners_setting).to be(Namespace::SR_DISABLED_AND_UNOVERRIDABLE) + end end describe 'Auto DevOps form' do |