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
2 changes: 1 addition & 1 deletion app/views/idv/link_sent/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -57,4 +57,4 @@
<%= javascript_packs_tag_once 'doc-capture-polling' %>
<% end %>

<%= render 'idv/shared/back', action: 'cancel_link_sent', class: 'link-sent-back-link', step_url: :idv_doc_auth_url %>
<%= render 'idv/shared/back', action: 'cancel_link_sent', class: 'link-sent-back-link', step_url: :idv_doc_auth_step_url %>
15 changes: 15 additions & 0 deletions spec/features/idv/actions/cancel_link_sent_action_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,11 @@
include IdvStepHelper
include DocAuthHelper

let(:new_controller_enabled) { false }

before do
allow(IdentityConfig.store).to receive(:doc_auth_link_sent_controller_enabled).
and_return(new_controller_enabled)
sign_in_and_2fa_user
complete_doc_auth_steps_before_link_sent_step
end
Expand All @@ -14,4 +18,15 @@

expect(page).to have_current_path(idv_doc_auth_upload_step)
end

context 'new SendLink controller is enabled' do
let(:new_controller_enabled) { true }

it 'returns to link sent step', :js do
expect(page).to have_current_path(idv_link_sent_path)
click_doc_auth_back_link

expect(page).to have_current_path(idv_doc_auth_upload_step)
end
end
end