diff options
author | Sean McGivern <sean@mcgivern.me.uk> | 2017-10-30 19:09:09 +0300 |
---|---|---|
committer | Sean McGivern <sean@mcgivern.me.uk> | 2017-10-30 19:09:09 +0300 |
commit | f165b609b489b88278830249b337d138bec1b116 (patch) | |
tree | f67158406860dd782be6ac52efbac782ef6e5583 /spec | |
parent | 2d5c4532f165597b4124bffafd1241a226a92dd7 (diff) | |
parent | 4d70f42055d4393d11ab19d50d504dd5e897789e (diff) |
Merge branch '39570-performance-bar-appears-enabled-even-though-it-won-t-show-up' into 'master'
Resolve "Performance bar appears enabled even though it won't show up"
Closes #39570
See merge request gitlab-org/gitlab-ce!15084
Diffstat (limited to 'spec')
-rw-r--r-- | spec/features/admin/admin_settings_spec.rb | 23 |
1 files changed, 23 insertions, 0 deletions
diff --git a/spec/features/admin/admin_settings_spec.rb b/spec/features/admin/admin_settings_spec.rb index c490dce7ab0..85561511101 100644 --- a/spec/features/admin/admin_settings_spec.rb +++ b/spec/features/admin/admin_settings_spec.rb @@ -95,6 +95,29 @@ feature 'Admin updates settings' do expect(find_field('ED25519 SSH keys').value).to eq(forbidden) end + scenario 'Change Performance Bar settings' do + group = create(:group) + + check 'Enable the Performance Bar' + fill_in 'Allowed group', with: group.path + + click_on 'Save' + + expect(page).to have_content 'Application settings saved successfully' + + expect(find_field('Enable the Performance Bar')).to be_checked + expect(find_field('Allowed group').value).to eq group.path + + uncheck 'Enable the Performance Bar' + + click_on 'Save' + + expect(page).to have_content 'Application settings saved successfully' + + expect(find_field('Enable the Performance Bar')).not_to be_checked + expect(find_field('Allowed group').value).to be_nil + end + def check_all_events page.check('Active') page.check('Push') |