Skip to content
Closed
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
21 changes: 16 additions & 5 deletions spec/features/idv/doc_auth/redo_document_capture_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -20,11 +20,7 @@
attach_and_submit_images
click_idv_continue

if use_bad_ssn
fill_out_ssn_form_with_ssn_that_fails_resolution
else
fill_out_ssn_form_ok
end
handle_ssn_page

click_idv_continue
end
Expand Down Expand Up @@ -148,4 +144,19 @@
end
end
end

def handle_ssn_page
# we don't know why it might still be on document capture, but handle it anyway
if current_url == idv_document_capture_url
mock_doc_auth_attention_with_barcode
attach_and_submit_images
click_idv_continue
end

if use_bad_ssn
fill_out_ssn_form_with_ssn_that_fails_resolution
else
fill_out_ssn_form_ok
end
end
end