summaryrefslogtreecommitdiff
path: root/spec
diff options
context:
space:
mode:
authorFilipa Lacerda <filipa@gitlab.com>2018-03-28 09:34:56 +0000
committerFilipa Lacerda <filipa@gitlab.com>2018-03-28 09:34:56 +0000
commitc9a4bd244dd3d228510827a069a0c6356c5b6dbe (patch)
tree89000f66eda61db0063d686459a159701ffa99bc /spec
parenta9e41961d75bf8b6438032070b03fe7e3ec27b52 (diff)
parent528758f32607a84cf8ed26b52d826fa03026a5cf (diff)
downloadgitlab-ce-c9a4bd244dd3d228510827a069a0c6356c5b6dbe.tar.gz
Merge branch 'dz-improve-app-settings-2' into 'master'
Redesign application settings to match project settings (part 2) See merge request gitlab-org/gitlab-ce!18019
Diffstat (limited to 'spec')
-rw-r--r--spec/features/admin/admin_settings_spec.rb30
1 files changed, 26 insertions, 4 deletions
diff --git a/spec/features/admin/admin_settings_spec.rb b/spec/features/admin/admin_settings_spec.rb
index 34d45aec2fd..c89bc54cad4 100644
--- a/spec/features/admin/admin_settings_spec.rb
+++ b/spec/features/admin/admin_settings_spec.rb
@@ -88,16 +88,38 @@ feature 'Admin updates settings' do
expect(page).to have_content "Application settings saved successfully"
end
- scenario 'Change AutoDevOps settings' do
- check 'Enabled Auto DevOps (Beta) for projects by default'
- fill_in 'Auto devops domain', with: 'domain.com'
- click_button 'Save'
+ scenario 'Change CI/CD settings' do
+ page.within('.as-ci-cd') do
+ check 'Enabled Auto DevOps (Beta) for projects by default'
+ fill_in 'Auto devops domain', with: 'domain.com'
+ click_button 'Save changes'
+ end
expect(Gitlab::CurrentSettings.auto_devops_enabled?).to be true
expect(Gitlab::CurrentSettings.auto_devops_domain).to eq('domain.com')
expect(page).to have_content "Application settings saved successfully"
end
+ scenario 'Change Influx settings' do
+ page.within('.as-influx') do
+ check 'Enable InfluxDB Metrics'
+ click_button 'Save changes'
+ end
+
+ expect(Gitlab::CurrentSettings.metrics_enabled?).to be true
+ expect(page).to have_content "Application settings saved successfully"
+ end
+
+ scenario 'Change Prometheus settings' do
+ page.within('.as-prometheus') do
+ check 'Enable Prometheus Metrics'
+ click_button 'Save changes'
+ end
+
+ expect(Gitlab::CurrentSettings.prometheus_metrics_enabled?).to be true
+ expect(page).to have_content "Application settings saved successfully"
+ end
+
scenario 'Change Slack Notifications Service template settings' do
first(:link, 'Service Templates').click
click_link 'Slack notifications'