Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
13 changes: 8 additions & 5 deletions app/views/sign_up/completions/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,11 @@
<%= t('mfa.second_method_warning.text') %>
<% end %>
<% end %>
<p>
<%= simple_form_for(:idv_form, url: sign_up_completed_path) do |f| %>
<%= f.submit t('sign_up.agree_and_continue') %>
<% end %>
</p>

<%= 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 %>
8 changes: 8 additions & 0 deletions spec/views/sign_up/completions/show.html.erb_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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] }

Expand Down