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
8 changes: 8 additions & 0 deletions app/services/idv/cancel_verification_attempt.rb
Original file line number Diff line number Diff line change
Expand Up @@ -15,6 +15,14 @@ def call
gpo_verification_pending_at: nil,
)
end

if profile.in_person_verification_pending?
profile.update!(
active: false,
deactivation_reason: :verification_cancelled,
in_person_verification_pending_at: nil,
)
end
end
end
end
Expand Down
5 changes: 4 additions & 1 deletion spec/features/idv/in_person_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -250,9 +250,12 @@
end

it 'allows the user to cancel and start over from the beginning', allow_browser_log: true do
sign_in_and_2fa_user
user = sign_in_and_2fa_user
begin_in_person_proofing
complete_all_in_person_proofing_steps
complete_phone_step(user)
complete_review_step(user)
acknowledge_and_confirm_personal_key

click_link t('links.cancel')
click_on t('idv.cancel.actions.start_over')
Expand Down