File tree Expand file tree Collapse file tree 1 file changed +17
-0
lines changed
spec/features/idv/doc_auth Expand file tree Collapse file tree 1 file changed +17
-0
lines changed Original file line number Diff line number Diff line change 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
You can’t perform that action at this time.
0 commit comments