diff options
author | GitLab Bot <gitlab-bot@gitlab.com> | 2023-10-13 21:11:49 +0300 |
---|---|---|
committer | GitLab Bot <gitlab-bot@gitlab.com> | 2023-10-13 21:11:49 +0300 |
commit | 718637f88ce9933f581c58e27dfffc389cbb6111 (patch) | |
tree | ab46e3b90bff9842387639ff849bfeee9c5e63a3 /spec/features/admin | |
parent | b0b94ea6e54f824d02840912f7086e9f47350571 (diff) |
Add latest changes from gitlab-org/gitlab@master
Diffstat (limited to 'spec/features/admin')
-rw-r--r-- | spec/features/admin/admin_settings_spec.rb | 20 |
1 files changed, 10 insertions, 10 deletions
diff --git a/spec/features/admin/admin_settings_spec.rb b/spec/features/admin/admin_settings_spec.rb index 2300e81cb55..4c148f8e776 100644 --- a/spec/features/admin/admin_settings_spec.rb +++ b/spec/features/admin/admin_settings_spec.rb @@ -166,36 +166,36 @@ RSpec.describe 'Admin updates settings', feature_category: :shared do end it 'changes dormant users', :js do - expect(page).to have_unchecked_field('Deactivate dormant users after a period of inactivity') + expect(page).to have_unchecked_field(_('Deactivate dormant users after a period of inactivity')) expect(current_settings.deactivate_dormant_users).to be_falsey page.within(find('[data-testid="account-limit"]')) do - check 'application_setting_deactivate_dormant_users' - click_button 'Save changes' + check _('Deactivate dormant users after a period of inactivity') + click_button _('Save changes') end - expect(page).to have_content "Application settings saved successfully" + expect(page).to have_content _('Application settings saved successfully') page.refresh + expect(page).to have_checked_field(_('Deactivate dormant users after a period of inactivity')) expect(current_settings.deactivate_dormant_users).to be_truthy - expect(page).to have_checked_field('Deactivate dormant users after a period of inactivity') end it 'change dormant users period', :js do expect(page).to have_field(_('Days of inactivity before deactivation'), disabled: true) page.within(find('[data-testid="account-limit"]')) do - check 'application_setting_deactivate_dormant_users' - fill_in _('application_setting_deactivate_dormant_users_period'), with: '90' - click_button 'Save changes' + check _('Deactivate dormant users after a period of inactivity') + fill_in _('Days of inactivity before deactivation'), with: '180' + click_button _('Save changes') end - expect(page).to have_content "Application settings saved successfully" + expect(page).to have_content _('Application settings saved successfully') page.refresh - expect(page).to have_field _('Days of inactivity before deactivation'), with: '90' + expect(page).to have_field(_('Days of inactivity before deactivation'), disabled: false, with: '180') end it 'displays dormant users period field validation error', :js do |