diff options
Diffstat (limited to 'spec/features/users/login_spec.rb')
-rw-r--r-- | spec/features/users/login_spec.rb | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/spec/features/users/login_spec.rb b/spec/features/users/login_spec.rb index 7ba663d08d4..2d0fcfe84e6 100644 --- a/spec/features/users/login_spec.rb +++ b/spec/features/users/login_spec.rb @@ -110,7 +110,7 @@ RSpec.describe 'Login' do gitlab_sign_in(user) - expect(page).not_to have_content('You have to confirm your email address before continuing.') + expect(page).not_to have_content(I18n.t('devise.failure.unconfirmed')) expect(page).not_to have_link('Resend confirmation email', href: new_user_confirmation_path) end end @@ -124,7 +124,7 @@ RSpec.describe 'Login' do gitlab_sign_in(user) - expect(page).to have_content('You have to confirm your email address before continuing.') + expect(page).to have_content(I18n.t('devise.failure.unconfirmed')) expect(page).to have_link('Resend confirmation email', href: new_user_confirmation_path) end end @@ -820,7 +820,7 @@ RSpec.describe 'Login' do gitlab_sign_in(user) expect(current_path).to eq new_user_session_path - expect(page).to have_content('You have to confirm your email address before continuing.') + expect(page).to have_content(I18n.t('devise.failure.unconfirmed')) end end end |