diff --git a/app/views/two_factor_authentication/sms_opt_in/new.html.erb b/app/views/two_factor_authentication/sms_opt_in/new.html.erb index 5996f678d4a..a6f75ba6ba8 100644 --- a/app/views/two_factor_authentication/sms_opt_in/new.html.erb +++ b/app/views/two_factor_authentication/sms_opt_in/new.html.erb @@ -1,3 +1,5 @@ +<% title t('two_factor_authentication.opt_in.title') %> + <%= render AlertIconComponent.new(icon_name: :warning, class: 'margin-bottom-2') %> <%= render PageHeadingComponent.new.with_content(t('two_factor_authentication.opt_in.title')) %> diff --git a/spec/controllers/two_factor_authentication/sms_opt_in_controller_spec.rb b/spec/controllers/two_factor_authentication/sms_opt_in_controller_spec.rb index 6b93bd08245..cb5983b890d 100644 --- a/spec/controllers/two_factor_authentication/sms_opt_in_controller_spec.rb +++ b/spec/controllers/two_factor_authentication/sms_opt_in_controller_spec.rb @@ -53,6 +53,8 @@ end context 'when loaded while adding a new phone' do + render_views + let(:user) { create(:user) } let(:phone) { Faker::PhoneNumber.cell_phone_in_e164 } let(:opt_out_uuid) { PhoneNumberOptOut.create_or_find_with_phone(phone).uuid }