summaryrefslogtreecommitdiff
path: root/spec/features/admin
diff options
context:
space:
mode:
authorDouwe Maan <douwe@gitlab.com>2017-07-05 20:22:43 +0000
committerDouwe Maan <douwe@gitlab.com>2017-07-05 20:22:43 +0000
commitaa66e539f1c53a272a82c106d9366f96c0e59799 (patch)
treeec9a0550e7fc57f51ddf7102b0f175a9c2ec9334 /spec/features/admin
parent793ce6fef635bc405f47b58e4b62bf1d48ca5078 (diff)
parent197a5df42aa65821aaa8fa628244e27ee8e1b016 (diff)
downloadgitlab-ce-aa66e539f1c53a272a82c106d9366f96c0e59799.tar.gz
Merge branch '32408-enable-disable-all-restricted-visibility-levels' into 'master'
Resolve "Unable to disable all restricted visibility levels" Closes #32408 See merge request !12649
Diffstat (limited to 'spec/features/admin')
-rw-r--r--spec/features/admin/admin_settings_spec.rb13
1 files changed, 13 insertions, 0 deletions
diff --git a/spec/features/admin/admin_settings_spec.rb b/spec/features/admin/admin_settings_spec.rb
index 2d6565e6d3b..59a50ff9264 100644
--- a/spec/features/admin/admin_settings_spec.rb
+++ b/spec/features/admin/admin_settings_spec.rb
@@ -16,6 +16,19 @@ feature 'Admin updates settings', feature: true do
expect(page).to have_content "Application settings saved successfully"
end
+ scenario 'Uncheck all restricted visibility levels' do
+ find('#application_setting_visibility_level_0').set(false)
+ find('#application_setting_visibility_level_10').set(false)
+ find('#application_setting_visibility_level_20').set(false)
+
+ click_button 'Save'
+
+ expect(page).to have_content "Application settings saved successfully"
+ expect(find('#application_setting_visibility_level_0')).not_to be_checked
+ expect(find('#application_setting_visibility_level_10')).not_to be_checked
+ expect(find('#application_setting_visibility_level_20')).not_to be_checked
+ end
+
scenario 'Change application settings' do
uncheck 'Gravatar enabled'
fill_in 'Home page URL', with: 'https://about.gitlab.com/'