diff --git a/app/views/idv/otp_verification/show.html.erb b/app/views/idv/otp_verification/show.html.erb index 8cc9c618d82..b3055e19cd3 100644 --- a/app/views/idv/otp_verification/show.html.erb +++ b/app/views/idv/otp_verification/show.html.erb @@ -45,7 +45,7 @@ outline: true, icon: :loop, class: 'margin-bottom-4', - ).with_content(t('links.two_factor_authentication.get_another_code')) %> + ).with_content(t('links.two_factor_authentication.send_another_code')) %>

<%= t('instructions.mfa.wrong_number') %>
diff --git a/app/views/two_factor_authentication/otp_verification/show.html.erb b/app/views/two_factor_authentication/otp_verification/show.html.erb index 26e341d41cd..adeb8947b02 100644 --- a/app/views/two_factor_authentication/otp_verification/show.html.erb +++ b/app/views/two_factor_authentication/otp_verification/show.html.erb @@ -51,7 +51,7 @@ outline: true, icon: :loop, class: 'margin-bottom-neg-1', - ).with_content(t('links.two_factor_authentication.get_another_code')) %> + ).with_content(t('links.two_factor_authentication.send_another_code')) %> <% end %> <% if @presenter.unconfirmed_phone? %> diff --git a/config/locales/links/en.yml b/config/locales/links/en.yml index 0af00347d9c..27122dd7c7e 100644 --- a/config/locales/links/en.yml +++ b/config/locales/links/en.yml @@ -23,5 +23,5 @@ en: reverify: Please verify your identity again. sign_out: Sign out two_factor_authentication: - get_another_code: Get another code + send_another_code: Send another code what_is_totp: What is an authentication app? diff --git a/config/locales/links/es.yml b/config/locales/links/es.yml index 92a55b493ac..f205f64e8d7 100644 --- a/config/locales/links/es.yml +++ b/config/locales/links/es.yml @@ -23,5 +23,5 @@ es: reverify: Verifique su identidad nuevamente. sign_out: Cerrar sesión two_factor_authentication: - get_another_code: Obtener otro código + send_another_code: Enviar otro código what_is_totp: '¿Qué es una app de autenticación?' diff --git a/config/locales/links/fr.yml b/config/locales/links/fr.yml index 222cc285ceb..e54d864d62a 100644 --- a/config/locales/links/fr.yml +++ b/config/locales/links/fr.yml @@ -23,5 +23,5 @@ fr: reverify: Veuillez vérifier votre identité de nouveau. sign_out: Déconnexion two_factor_authentication: - get_another_code: Obtenir un autre code + send_another_code: Envoyer un autre code what_is_totp: Qu’est-ce qu’une application d’authentification? diff --git a/spec/features/idv/phone_otp_rate_limiting_spec.rb b/spec/features/idv/phone_otp_rate_limiting_spec.rb index bd42e65c8f5..3abbe9058e9 100644 --- a/spec/features/idv/phone_otp_rate_limiting_spec.rb +++ b/spec/features/idv/phone_otp_rate_limiting_spec.rb @@ -26,7 +26,7 @@ complete_idv_steps_before_phone_otp_verification_step(user) (max_attempts - 1).times do - click_on t('links.two_factor_authentication.get_another_code') + click_on t('links.two_factor_authentication.send_another_code') end expect_max_otp_request_rate_limiting @@ -48,7 +48,7 @@ choose_idv_otp_delivery_method_sms # nth attempt - click_on t('links.two_factor_authentication.get_another_code') + click_on t('links.two_factor_authentication.send_another_code') expect_max_otp_request_rate_limiting end diff --git a/spec/features/idv/steps/phone_otp_verification_step_spec.rb b/spec/features/idv/steps/phone_otp_verification_step_spec.rb index 3e34f3edd42..8abe3fda51f 100644 --- a/spec/features/idv/steps/phone_otp_verification_step_spec.rb +++ b/spec/features/idv/steps/phone_otp_verification_step_spec.rb @@ -49,7 +49,7 @@ sent_message_count = Telephony::Test::Message.messages.count - click_on t('links.two_factor_authentication.get_another_code') + click_on t('links.two_factor_authentication.send_another_code') expect(Telephony::Test::Message.messages.count).to eq(sent_message_count + 1) expect(current_path).to eq(idv_otp_verification_path) @@ -73,7 +73,7 @@ ) allow(Telephony).to receive(:send_confirmation_otp).and_return(response) - click_on t('links.two_factor_authentication.get_another_code') + click_on t('links.two_factor_authentication.send_another_code') expect(page).to have_content(I18n.t('telephony.error.friendly_message.generic')) expect(page).to have_current_path(idv_phone_path) @@ -92,7 +92,7 @@ ) allow(Telephony).to receive(:send_confirmation_otp).and_return(response) - click_on t('links.two_factor_authentication.get_another_code') + click_on t('links.two_factor_authentication.send_another_code') expect(page).to have_content(calling_area_error.friendly_message) expect(page).to have_current_path(idv_phone_path) diff --git a/spec/features/two_factor_authentication/change_factor_spec.rb b/spec/features/two_factor_authentication/change_factor_spec.rb index 7519868a6c7..14be87a9904 100644 --- a/spec/features/two_factor_authentication/change_factor_spec.rb +++ b/spec/features/two_factor_authentication/change_factor_spec.rb @@ -31,7 +31,7 @@ travel(IdentityConfig.store.reauthn_window + 1) visit manage_phone_path(id: phone_configuration) complete_2fa_confirmation_without_entering_otp - click_link t('links.two_factor_authentication.get_another_code') + click_link t('links.two_factor_authentication.send_another_code') expect(Telephony).to have_received(:send_authentication_otp).with( otp: user.reload.direct_otp, diff --git a/spec/support/shared_examples/phone/otp_confirmation.rb b/spec/support/shared_examples/phone/otp_confirmation.rb index 85771b35243..680a4a0134c 100644 --- a/spec/support/shared_examples/phone/otp_confirmation.rb +++ b/spec/support/shared_examples/phone/otp_confirmation.rb @@ -36,7 +36,7 @@ it 'allows the user to resend an OTP and confirm with the new OTP' do visit_otp_confirmation(delivery_method) old_code = last_otp(delivery_method) - click_on t('links.two_factor_authentication.get_another_code') + click_on t('links.two_factor_authentication.send_another_code') new_code = last_otp(delivery_method) expect(old_code).to_not eq(new_code) diff --git a/spec/support/shared_examples/phone/rate_limitting.rb b/spec/support/shared_examples/phone/rate_limitting.rb index eead56e0bcc..c7c0342ac38 100644 --- a/spec/support/shared_examples/phone/rate_limitting.rb +++ b/spec/support/shared_examples/phone/rate_limitting.rb @@ -2,7 +2,7 @@ it 'limits the number of times the user can resend an OTP' do visit_otp_confirmation(delivery_method) 2.times do - click_on t('links.two_factor_authentication.get_another_code') + click_on t('links.two_factor_authentication.send_another_code') end expect(page).to have_content(t('two_factor_authentication.max_otp_requests_reached')) @@ -13,7 +13,7 @@ it 'limits the number of times a code can be sent to a phone across accounts' do visit_otp_confirmation(delivery_method) 2.times do - click_on t('links.two_factor_authentication.get_another_code') + click_on t('links.two_factor_authentication.send_another_code') end Capybara.reset_session! diff --git a/spec/views/two_factor_authentication/otp_verification/show.html.erb_spec.rb b/spec/views/two_factor_authentication/otp_verification/show.html.erb_spec.rb index 686ac9b946c..9e5d3f96588 100644 --- a/spec/views/two_factor_authentication/otp_verification/show.html.erb_spec.rb +++ b/spec/views/two_factor_authentication/otp_verification/show.html.erb_spec.rb @@ -168,7 +168,7 @@ ) expect(rendered).to have_link( - t('links.two_factor_authentication.get_another_code'), + t('links.two_factor_authentication.send_another_code'), href: resend_path, ) end @@ -207,7 +207,7 @@ ) expect(rendered).to have_link( - t('links.two_factor_authentication.get_another_code'), + t('links.two_factor_authentication.send_another_code'), href: resend_path, ) end