Commit 0f7dcec2 authored by Serena Fang's avatar Serena Fang Committed by Stan Hu

Change inconsistent capitalization

Use sentence case instead
parent f49ec613
...@@ -70,7 +70,7 @@ module AuthenticatesWithTwoFactor ...@@ -70,7 +70,7 @@ module AuthenticatesWithTwoFactor
elsif !user.confirmed? elsif !user.confirmed?
I18n.t('devise.failure.unconfirmed') I18n.t('devise.failure.unconfirmed')
else else
_('Invalid Login or password') _('Invalid login or password')
end end
end end
......
...@@ -16650,9 +16650,6 @@ msgstr "" ...@@ -16650,9 +16650,6 @@ msgstr ""
msgid "Invalid Insights config file detected" msgid "Invalid Insights config file detected"
msgstr "" msgstr ""
msgid "Invalid Login or password"
msgstr ""
msgid "Invalid OS" msgid "Invalid OS"
msgstr "" msgstr ""
......
...@@ -71,7 +71,7 @@ module QA ...@@ -71,7 +71,7 @@ module QA
Flow::Login.sign_in(as: user, skip_page_validation: true) Flow::Login.sign_in(as: user, skip_page_validation: true)
expect(page).to have_text("Invalid Login or password") expect(page).to have_text("Invalid login or password")
@recreated_user = Resource::User.fabricate_via_browser_ui! do |resource| @recreated_user = Resource::User.fabricate_via_browser_ui! do |resource|
resource.name = user.name resource.name = user.name
......
...@@ -86,7 +86,7 @@ RSpec.describe SessionsController do ...@@ -86,7 +86,7 @@ RSpec.describe SessionsController do
post(:create, params: { user: { login: 'invalid', password: 'invalid' } }) post(:create, params: { user: { login: 'invalid', password: 'invalid' } })
expect(response) expect(response)
.to set_flash.now[:alert].to(/Invalid Login or password/) .to set_flash.now[:alert].to(/Invalid login or password/)
end end
end end
...@@ -348,7 +348,7 @@ RSpec.describe SessionsController do ...@@ -348,7 +348,7 @@ RSpec.describe SessionsController do
otp_user_id: user.id otp_user_id: user.id
) )
expect(response).to set_flash.now[:alert].to(/Invalid Login or password/) expect(response).to set_flash.now[:alert].to(/Invalid login or password/)
end end
end end
......
...@@ -10,7 +10,7 @@ RSpec.describe 'Session TTLs', :clean_gitlab_redis_shared_state do ...@@ -10,7 +10,7 @@ RSpec.describe 'Session TTLs', :clean_gitlab_redis_shared_state do
fill_in 'user_password', with: '12345678' fill_in 'user_password', with: '12345678'
click_button 'Sign in' click_button 'Sign in'
expect(page).to have_content('Invalid Login or password') expect(page).to have_content('Invalid login or password')
expect_single_session_with_expiration(Settings.gitlab['unauthenticated_session_expire_delay']) expect_single_session_with_expiration(Settings.gitlab['unauthenticated_session_expire_delay'])
end end
......
...@@ -138,7 +138,7 @@ RSpec.describe 'Login' do ...@@ -138,7 +138,7 @@ RSpec.describe 'Login' do
gitlab_sign_in(User.ghost) gitlab_sign_in(User.ghost)
expect(page).to have_content('Invalid Login or password.') expect(page).to have_content('Invalid login or password.')
end end
it 'does not update Devise trackable attributes', :clean_gitlab_redis_shared_state do it 'does not update Devise trackable attributes', :clean_gitlab_redis_shared_state do
...@@ -406,7 +406,7 @@ RSpec.describe 'Login' do ...@@ -406,7 +406,7 @@ RSpec.describe 'Login' do
gitlab_sign_in(user) gitlab_sign_in(user)
expect(page).to have_content('Invalid Login or password.') expect(page).to have_content('Invalid login or password.')
end end
end end
end end
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment