Browse Source

Update error messages

pull/2042/head
Kat 3 years ago
parent
commit
e9beb93471
  1. 2
      config/locales/devise.en.yml
  2. 2
      config/locales/en.yml
  3. 2
      spec/requests/auth/passwords_controller_spec.rb
  4. 2
      spec/requests/users_controller_spec.rb

2
config/locales/devise.en.yml

@ -62,7 +62,7 @@ en:
messages:
already_confirmed: "Email has already been confirmed. Sign in."
blank: "can’t be blank"
confirmation: "Password confirmation doesn’t match new password"
confirmation: "The passwords you entered do not match. Try again."
confirmation_period_expired: "Email needs to be confirmed within %{period}. Request a new link below."
expired: "Token has expired. Request a new token."
not_found: "was not found"

2
config/locales/en.yml

@ -164,7 +164,7 @@ en:
blank: "Select role"
password:
blank: Enter a password
too_short: Password is too short (minimum is %{count} characters)
too_short: The password you entered is too short. Enter a password that is %{count} characters or longer.
merge_request:
attributes:
absorbing_organisation_id:

2
spec/requests/auth/passwords_controller_spec.rb

@ -107,7 +107,7 @@ RSpec.describe Auth::PasswordsController, type: :request do
put "/account/password", headers: headers, params: params
expect(response).to have_http_status(:unprocessable_entity)
expect(page).to have_css("h1", text: "Reset your password")
expect(page).to have_content("doesn’t match new password")
expect(page).to have_content("passwords you entered do not match")
end
end

2
spec/requests/users_controller_spec.rb

@ -67,7 +67,7 @@ RSpec.describe UsersController, type: :request do
expect(response).to have_http_status(:unprocessable_entity)
expect(page).to have_css("h1", class: "govuk-heading-l", text: "Change your password")
expect(page).to have_selector("#error-summary-title")
expect(page).to have_content("Password confirmation doesn’t match new password")
expect(page).to have_content("passwords you entered do not match")
end
end
end

Loading…
Cancel
Save