diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-17 14:33:21 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2022-11-17 14:33:21 +0300 |
commit | 7021455bd1ed7b125c55eb1b33c5a01f2bc55ee0 (patch) | |
tree | 5bdc2229f5198d516781f8d24eace62fc7e589e9 /spec/features/admin/admin_settings_spec.rb | |
parent | 185b095e93520f96e9cfc31d9c3e69b498cdab7c (diff) |
Add latest changes from gitlab-org/gitlab@15-6-stable-eev15.6.0-rc42
Diffstat (limited to 'spec/features/admin/admin_settings_spec.rb')
-rw-r--r-- | spec/features/admin/admin_settings_spec.rb | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/spec/features/admin/admin_settings_spec.rb b/spec/features/admin/admin_settings_spec.rb index 94c5f397670..72c9053ba49 100644 --- a/spec/features/admin/admin_settings_spec.rb +++ b/spec/features/admin/admin_settings_spec.rb @@ -205,6 +205,22 @@ RSpec.describe 'Admin updates settings' do expect(page).to have_content "Application settings saved successfully" end end + + context 'Email confirmation settings' do + it "is set to 'hard' by default" do + expect(current_settings.email_confirmation_setting).to eq('off') + end + + it 'changes the setting', :js do + page.within('.as-signup') do + choose 'Hard' + click_button 'Save changes' + end + + expect(current_settings.email_confirmation_setting).to eq('hard') + expect(page).to have_content "Application settings saved successfully" + end + end end it 'change Sign-in restrictions' do @@ -304,10 +320,12 @@ RSpec.describe 'Admin updates settings' do it 'changes the setting' do page.within('#js-jira_connect-settings') do fill_in 'Jira Connect Application ID', with: '1234' + fill_in 'Jira Connect Proxy URL', with: 'https://example.com' click_button 'Save changes' end expect(current_settings.jira_connect_application_key).to eq('1234') + expect(current_settings.jira_connect_proxy_url).to eq('https://example.com') expect(page).to have_content "Application settings saved successfully" end end |