diff options
Diffstat (limited to 'spec/features/profiles')
5 files changed, 6 insertions, 6 deletions
diff --git a/spec/features/profiles/active_sessions_spec.rb b/spec/features/profiles/active_sessions_spec.rb index d3050760c06..a971c58ab2d 100644 --- a/spec/features/profiles/active_sessions_spec.rb +++ b/spec/features/profiles/active_sessions_spec.rb @@ -83,7 +83,7 @@ describe 'Profile > Active Sessions', :clean_gitlab_redis_shared_state do using_session :session2 do visit profile_active_sessions_path - expect(page).to have_content('You need to sign in or sign up before continuing.') + expect(page).to have_content(_('You need to sign in or sign up before continuing.')) end end end diff --git a/spec/features/profiles/chat_names_spec.rb b/spec/features/profiles/chat_names_spec.rb index c72069f6262..c5aeb0f29b6 100644 --- a/spec/features/profiles/chat_names_spec.rb +++ b/spec/features/profiles/chat_names_spec.rb @@ -71,7 +71,7 @@ describe 'Profile > Chat' do it 'removes chat account' do click_link 'Remove' - expect(page).to have_content("You don't have any active chat names.") + expect(page).to have_content(_("You don't have any active chat names.")) end end end diff --git a/spec/features/profiles/oauth_applications_spec.rb b/spec/features/profiles/oauth_applications_spec.rb index 7d204f89fba..7f59f2e8714 100644 --- a/spec/features/profiles/oauth_applications_spec.rb +++ b/spec/features/profiles/oauth_applications_spec.rb @@ -39,7 +39,7 @@ describe 'Profile > Applications' do accept_confirm { click_button 'Revoke' } end - expect(page).to have_content('The application was revoked access.') + expect(page).to have_content(_('The application was revoked access.')) expect(page).to have_content('Your applications (0)') expect(page).to have_content('Authorized applications (0)') end diff --git a/spec/features/profiles/personal_access_tokens_spec.rb b/spec/features/profiles/personal_access_tokens_spec.rb index dee213a11d4..0ded974f353 100644 --- a/spec/features/profiles/personal_access_tokens_spec.rb +++ b/spec/features/profiles/personal_access_tokens_spec.rb @@ -84,7 +84,7 @@ describe 'Profile > Personal Access Tokens', :js do accept_confirm { click_on "Revoke" } expect(page).to have_selector(".settings-message") - expect(no_personal_access_tokens_message).to have_text("This user has no active Personal Access Tokens.") + expect(no_personal_access_tokens_message).to have_text(_("This user has no active Personal Access Tokens.")) end it "removes expired tokens from 'active' section" do @@ -92,7 +92,7 @@ describe 'Profile > Personal Access Tokens', :js do visit profile_personal_access_tokens_path expect(page).to have_selector(".settings-message") - expect(no_personal_access_tokens_message).to have_text("This user has no active Personal Access Tokens.") + expect(no_personal_access_tokens_message).to have_text(_("This user has no active Personal Access Tokens.")) end context "when revocation fails" do diff --git a/spec/features/profiles/user_visits_profile_preferences_page_spec.rb b/spec/features/profiles/user_visits_profile_preferences_page_spec.rb index 90d6841af0e..32fecf24c07 100644 --- a/spec/features/profiles/user_visits_profile_preferences_page_spec.rb +++ b/spec/features/profiles/user_visits_profile_preferences_page_spec.rb @@ -62,7 +62,7 @@ describe 'User visits the profile preferences page' do def expect_preferences_saved_message page.within('.flash-container') do - expect(page).to have_content('Preferences saved.') + expect(page).to have_content(_('Preferences saved.')) end end end |