diff --git a/app/views/sign_up/completions/show.html.erb b/app/views/sign_up/completions/show.html.erb index f8182ba1baf..0dc64bfca4b 100644 --- a/app/views/sign_up/completions/show.html.erb +++ b/app/views/sign_up/completions/show.html.erb @@ -23,8 +23,11 @@ <%= t('mfa.second_method_warning.text') %> <% end %> <% end %> -

- <%= simple_form_for(:idv_form, url: sign_up_completed_path) do |f| %> - <%= f.submit t('sign_up.agree_and_continue') %> - <% end %> -

+ +<%= simple_form_for(:idv_form, url: sign_up_completed_path, html: { class: 'margin-y-5' }) do |f| %> + <%= f.submit t('sign_up.agree_and_continue') %> +<% end %> + +<%= render PageFooterComponent.new do %> + <%= link_to t('links.cancel'), return_to_sp_cancel_path %> +<% end %> \ No newline at end of file diff --git a/spec/views/sign_up/completions/show.html.erb_spec.rb b/spec/views/sign_up/completions/show.html.erb_spec.rb index ad88cb9412f..2a9598ee136 100644 --- a/spec/views/sign_up/completions/show.html.erb_spec.rb +++ b/spec/views/sign_up/completions/show.html.erb_spec.rb @@ -51,6 +51,14 @@ ) end + it 'shows cancel link on completion screen' do + render + expect(rendered).to have_link( + t('links.cancel'), + href: return_to_sp_cancel_path, + ) + end + context 'the all_emails scope is requested' do let(:requested_attributes) { [:email, :all_emails] }