Skip to content

Commit 161e226

Browse files
committed
Add feature test for AAMVA bypass in Socure flow
1 parent e7daaa2 commit 161e226

File tree

1 file changed

+17
-0
lines changed

1 file changed

+17
-0
lines changed

spec/features/idv/doc_auth/socure_document_capture_spec.rb

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -395,6 +395,23 @@
395395
expect(page).to have_content(t('doc_auth.errors.unaccepted_id_type'))
396396
end
397397
end
398+
399+
context 'when AAMVA at doc auth is enabled' do
400+
before do
401+
allow(IdentityConfig.store).to receive(:idv_aamva_at_doc_auth_enabled).and_return(true)
402+
end
403+
404+
it 'skips AAMVA verification and proceeds directly to SSN page' do
405+
socure_docv_upload_documents(
406+
docv_transaction_token: @docv_transaction_token,
407+
)
408+
visit idv_socure_document_capture_update_path
409+
expect(page).to have_current_path(idv_ssn_url)
410+
411+
# Verify AAMVA was not called - the Socure flow bypasses AAMVA validation
412+
expect(fake_analytics).not_to have_logged_event(:idv_aamva_verification_submitted)
413+
end
414+
end
398415
end
399416

400417
context 'webhook repearter repeats all webhooks' do

0 commit comments

Comments
 (0)