From 9141983b31dcb3ca0c7383c5fc52528736364c29 Mon Sep 17 00:00:00 2001 From: Moncef Belyamani Date: Fri, 23 May 2025 10:17:50 -0400 Subject: [PATCH 1/3] Temporarily change Mock IdV attributes For more context, please see [JIRA issue LG-16254](https://cm-jira.usa.gov/browse/LG-16254) This is a temporary change to allow a partner agency to test the facial matching flow in `int` using custom data that matches what they have on their end. The plan is to let them know today when the change is live in `int`, and when they're done testing, I will revert this PR. --- lib/idp/constants.rb | 20 +++++------ .../idv/image_uploads_controller_spec.rb | 6 ++-- .../components/review-issues-step-spec.jsx | 2 +- spec/jobs/resolution_proofing_job_spec.rb | 26 +++++++------- .../socure_shadow_mode_proofing_job_spec.rb | 14 ++++---- .../mock/doc_auth_mock_client_spec.rb | 34 +++++++++---------- .../doc_auth/mock/result_response_spec.rb | 16 ++++----- .../plugins/phone_finder_plugin_spec.rb | 6 ++-- .../proofing/socure/id_plus/input_spec.rb | 14 ++++---- .../proofing/socure/id_plus/request_spec.rb | 14 ++++---- spec/support/fake_analytics_spec.rb | 2 +- .../idv_examples/sp_requested_attributes.rb | 4 +-- 12 files changed, 79 insertions(+), 79 deletions(-) diff --git a/lib/idp/constants.rb b/lib/idp/constants.rb index d27dfa8a6c3..127a5087cc0 100644 --- a/lib/idp/constants.rb +++ b/lib/idp/constants.rb @@ -95,31 +95,31 @@ module Vendors AAL2 = 2 AAL3 = 3 - MOCK_IDV_APPLICANT_FULL_STATE = 'Montana' + MOCK_IDV_APPLICANT_FULL_STATE = 'West Virginia' MOCK_IDV_APPLICANT_FULL_STATE_ID_JURISDICTION = 'North Dakota' MOCK_IDV_APPLICANT_STATE_ID_JURISDICTION = 'ND' - MOCK_IDV_APPLICANT_STATE = 'MT' + MOCK_IDV_APPLICANT_STATE = 'WV' MOCK_IDV_APPLICANT = { - address1: '1 FAKE RD', + address1: '514 EAST AVE', address2: '', - city: 'GREAT FALLS', - dob: '1938-10-06', + city: 'SOUTH CHARLESTON', + dob: '1976-10-18', eye_color: nil, - first_name: 'FAKEY', + first_name: 'MICHELE', height: 72, issuing_country_code: 'US', - last_name: 'MCFAKERSON', + last_name: 'DEBAK', middle_name: nil, - name_suffix: 'JR', + name_suffix: '', state: MOCK_IDV_APPLICANT_STATE, state_id_expiration: '2099-12-31', state_id_issued: '2019-12-31', state_id_jurisdiction: MOCK_IDV_APPLICANT_STATE_ID_JURISDICTION, state_id_number: '1111111111111', id_doc_type: 'drivers_license', - sex: 'male', + sex: 'female', weight: nil, - zipcode: '59010-1234', + zipcode: '25309-1104', }.freeze MOCK_IPP_APPLICANT = { diff --git a/spec/controllers/idv/image_uploads_controller_spec.rb b/spec/controllers/idv/image_uploads_controller_spec.rb index 24297c406a8..6c71ddd7c97 100644 --- a/spec/controllers/idv/image_uploads_controller_spec.rb +++ b/spec/controllers/idv/image_uploads_controller_spec.rb @@ -543,7 +543,7 @@ async: false, billed: true, doc_auth_result: 'Passed', - state: 'MT', + state: 'WV', country: 'US', id_doc_type: 'drivers_license', user_id: user.uuid, @@ -566,8 +566,8 @@ selfie_quality_good: boolean, transaction_status: 'passed', workflow: an_instance_of(String), - birth_year: 1938, - zip_code: '59010', + birth_year: 1976, + zip_code: '25309', issue_year: 2019, document_type: an_instance_of(String), ) diff --git a/spec/javascript/packages/document-capture/components/review-issues-step-spec.jsx b/spec/javascript/packages/document-capture/components/review-issues-step-spec.jsx index 11c80623245..57755c7a8f4 100644 --- a/spec/javascript/packages/document-capture/components/review-issues-step-spec.jsx +++ b/spec/javascript/packages/document-capture/components/review-issues-step-spec.jsx @@ -422,7 +422,7 @@ describe('document-capture/components/review-issues-step', () => { async () => { const { getByRole, getByText } = render( , ); diff --git a/spec/jobs/resolution_proofing_job_spec.rb b/spec/jobs/resolution_proofing_job_spec.rb index 703294b51d2..4bd2a1363ea 100644 --- a/spec/jobs/resolution_proofing_job_spec.rb +++ b/spec/jobs/resolution_proofing_job_spec.rb @@ -586,24 +586,24 @@ ) expect(json[:applicant_pii]).to eql( { - first_name: 'FAKEY', + first_name: 'MICHELE', middle_name: nil, - last_name: 'MCFAKERSON', - name_suffix: 'JR', - address1: '1 FAKE RD', - identity_doc_address1: '1 FAKE RD', + last_name: 'DEBAK', + name_suffix: '', + address1: '514 EAST AVE', + identity_doc_address1: '514 EAST AVE', identity_doc_address2: '', - identity_doc_city: 'GREAT FALLS', - identity_doc_address_state: 'MT', - identity_doc_zipcode: '59010-1234', + identity_doc_city: 'SOUTH CHARLESTON', + identity_doc_address_state: 'WV', + identity_doc_zipcode: '25309-1104', issuing_country_code: 'US', address2: '', same_address_as_id: 'true', - city: 'GREAT FALLS', - state: 'MT', - zipcode: '59010-1234', - dob: '1938-10-06', - sex: 'male', + city: 'SOUTH CHARLESTON', + state: 'WV', + zipcode: '25309-1104', + dob: '1976-10-18', + sex: 'female', height: 72, weight: nil, eye_color: nil, diff --git a/spec/jobs/socure_shadow_mode_proofing_job_spec.rb b/spec/jobs/socure_shadow_mode_proofing_job_spec.rb index 4fd18e41d74..bf81160fa93 100644 --- a/spec/jobs/socure_shadow_mode_proofing_job_spec.rb +++ b/spec/jobs/socure_shadow_mode_proofing_job_spec.rb @@ -420,14 +420,14 @@ let(:expected_attributes) do { - first_name: 'FAKEY', - last_name: 'MCFAKERSON', - address1: '1 FAKE RD', + first_name: 'MICHELE', + last_name: 'DEBAK', + address1: '514 EAST AVE', address2: '', - city: 'GREAT FALLS', - state: 'MT', - zipcode: '59010-1234', - dob: '1938-10-06', + city: 'SOUTH CHARLESTON', + state: 'WV', + zipcode: '25309-1104', + dob: '1976-10-18', ssn: '900661234', email: user.email, } diff --git a/spec/services/doc_auth/mock/doc_auth_mock_client_spec.rb b/spec/services/doc_auth/mock/doc_auth_mock_client_spec.rb index 599b0db5cfb..493f21b7114 100644 --- a/spec/services/doc_auth/mock/doc_auth_mock_client_spec.rb +++ b/spec/services/doc_auth/mock/doc_auth_mock_client_spec.rb @@ -26,17 +26,17 @@ expect(get_results_response.success?).to eq(true) expect(get_results_response.pii_from_doc).to eq( Pii::StateId.new( - first_name: 'FAKEY', + first_name: 'MICHELE', middle_name: nil, - last_name: 'MCFAKERSON', - name_suffix: 'JR', - address1: '1 FAKE RD', + last_name: 'DEBAK', + name_suffix: '', + address1: '514 EAST AVE', address2: '', - city: 'GREAT FALLS', - state: 'MT', - zipcode: '59010-1234', - dob: '1938-10-06', - sex: 'male', + city: 'SOUTH CHARLESTON', + state: 'WV', + zipcode: '25309-1104', + dob: '1976-10-18', + sex: 'female', height: 72, weight: nil, eye_color: nil, @@ -198,15 +198,15 @@ Pii::StateId.new( first_name: 'Susan', middle_name: nil, - last_name: 'MCFAKERSON', - name_suffix: 'JR', - address1: '1 FAKE RD', + last_name: 'DEBAK', + name_suffix: '', + address1: '514 EAST AVE', address2: '', - city: 'GREAT FALLS', - state: 'MT', - zipcode: '59010-1234', - dob: '1938-10-06', - sex: 'male', + city: 'SOUTH CHARLESTON', + state: 'WV', + zipcode: '25309-1104', + dob: '1976-10-18', + sex: 'female', height: 72, weight: nil, eye_color: nil, diff --git a/spec/services/doc_auth/mock/result_response_spec.rb b/spec/services/doc_auth/mock/result_response_spec.rb index 1ca77c05d38..7b3626d478e 100644 --- a/spec/services/doc_auth/mock/result_response_spec.rb +++ b/spec/services/doc_auth/mock/result_response_spec.rb @@ -372,15 +372,15 @@ Pii::StateId.new( first_name: 'Susan', middle_name: nil, - last_name: 'MCFAKERSON', - name_suffix: 'JR', - address1: '1 FAKE RD', + last_name: 'DEBAK', + name_suffix: '', + address1: '514 EAST AVE', address2: '', - city: 'GREAT FALLS', - state: 'MT', - zipcode: '59010-1234', - dob: '1938-10-06', - sex: 'male', + city: 'SOUTH CHARLESTON', + state: 'WV', + zipcode: '25309-1104', + dob: '1976-10-18', + sex: 'female', height: 72, weight: nil, eye_color: nil, diff --git a/spec/services/proofing/resolution/plugins/phone_finder_plugin_spec.rb b/spec/services/proofing/resolution/plugins/phone_finder_plugin_spec.rb index 73133529af5..250dd9e54a1 100644 --- a/spec/services/proofing/resolution/plugins/phone_finder_plugin_spec.rb +++ b/spec/services/proofing/resolution/plugins/phone_finder_plugin_spec.rb @@ -96,10 +96,10 @@ def sp_cost_count_with_transaction_id { uuid: 'abc', uuid_prefix: '123', - first_name: 'FAKEY', - last_name: 'MCFAKERSON', + first_name: 'MICHELE', + last_name: 'DEBAK', ssn: '900661234', - dob: '1938-10-06', + dob: '1976-10-18', phone: '12025551212', }, ).and_call_original diff --git a/spec/services/proofing/socure/id_plus/input_spec.rb b/spec/services/proofing/socure/id_plus/input_spec.rb index 912fa4eadef..256e46f37e8 100644 --- a/spec/services/proofing/socure/id_plus/input_spec.rb +++ b/spec/services/proofing/socure/id_plus/input_spec.rb @@ -17,17 +17,17 @@ it 'creates an appropriate instance' do expect(subject.to_h).to eql( { - address1: '1 FAKE RD', + address1: '514 EAST AVE', address2: '', - city: 'GREAT FALLS', - state: 'MT', - zipcode: '59010-1234', + city: 'SOUTH CHARLESTON', + state: 'WV', + zipcode: '25309-1104', - first_name: 'FAKEY', - last_name: 'MCFAKERSON', + first_name: 'MICHELE', + last_name: 'DEBAK', middle_name: nil, - dob: '1938-10-06', + dob: '1976-10-18', phone: '12025551212', ssn: '900661234', diff --git a/spec/services/proofing/socure/id_plus/request_spec.rb b/spec/services/proofing/socure/id_plus/request_spec.rb index 424770ed32b..b0b60e917fd 100644 --- a/spec/services/proofing/socure/id_plus/request_spec.rb +++ b/spec/services/proofing/socure/id_plus/request_spec.rb @@ -35,14 +35,14 @@ modules: [ 'kyc', ], - firstName: 'FAKEY', - surName: 'MCFAKERSON', - dob: '1938-10-06', - physicalAddress: '1 FAKE RD', + firstName: 'MICHELE', + surName: 'DEBAK', + dob: '1976-10-18', + physicalAddress: '514 EAST AVE', physicalAddress2: '', - city: 'GREAT FALLS', - state: 'MT', - zip: '59010-1234', + city: 'SOUTH CHARLESTON', + state: 'WV', + zip: '25309-1104', country: 'US', nationalId: Idp::Constants::MOCK_IDV_APPLICANT_WITH_PHONE[:ssn], countryOfOrigin: 'US', diff --git a/spec/support/fake_analytics_spec.rb b/spec/support/fake_analytics_spec.rb index 94b79754772..b2d85ae2fa9 100644 --- a/spec/support/fake_analytics_spec.rb +++ b/spec/support/fake_analytics_spec.rb @@ -585,7 +585,7 @@ end it 'throws an error when it detects sample PII in the payload' do - expect { analytics.track_event('Trackable Event', some_benign_key: 'FAKEY MCFAKERSON') } + expect { analytics.track_event('Trackable Event', some_benign_key: 'MICHELE DEBAK') } .to raise_error(FakeAnalytics::PiiDetected) end end diff --git a/spec/support/idv_examples/sp_requested_attributes.rb b/spec/support/idv_examples/sp_requested_attributes.rb index 39541f07e72..507d3191608 100644 --- a/spec/support/idv_examples/sp_requested_attributes.rb +++ b/spec/support/idv_examples/sp_requested_attributes.rb @@ -27,7 +27,7 @@ expect(page).to_not have_content t('help_text.requested_attributes.address') expect(page).to_not have_content t('help_text.requested_attributes.birthdate') expect(page).to have_content t('help_text.requested_attributes.full_name') - expect(page).to have_content 'FAKEY MCFAKERSON' + expect(page).to have_content 'MICHELE DEBAK' expect(page).to have_content t('help_text.requested_attributes.phone') expect(page).to have_content '+1 202-555-1212' expect(page).to have_content t('help_text.requested_attributes.social_security_number') @@ -91,7 +91,7 @@ expect(page).to_not have_content t('help_text.requested_attributes.address') expect(page).to_not have_content t('help_text.requested_attributes.birthdate') expect(page).to have_content t('help_text.requested_attributes.full_name') - expect(page).to have_content 'FAKEY MCFAKERSON' + expect(page).to have_content 'MICHELE DEBAK' expect(page).to have_content t('help_text.requested_attributes.phone') expect(page).to have_content '+1 202-555-1212' expect(page).to have_content t('help_text.requested_attributes.social_security_number') From 0907510824ffe0b8836f6e5a32edd82dd769b6a9 Mon Sep 17 00:00:00 2001 From: Moncef Belyamani Date: Fri, 23 May 2025 11:25:33 -0400 Subject: [PATCH 2/3] Fix tests --- .../idv/in_person/address_controller_spec.rb | 2 +- spec/features/idv/analytics_spec.rb | 14 +++++++------- .../features/idv/doc_auth/document_capture_spec.rb | 8 ++++---- .../idv/doc_auth/redo_document_capture_spec.rb | 8 ++++---- spec/features/idv/end_to_end_idv_spec.rb | 2 +- spec/features/idv/steps/in_person/state_id_spec.rb | 4 ++-- spec/forms/idv/api_image_upload_form_spec.rb | 6 +++--- .../proofing/resolution/result_adjudicator_spec.rb | 8 ++++---- .../idv_examples/clearing_and_restarting.rb | 2 +- spec/support/idv_examples/sp_handoff.rb | 4 ++-- 10 files changed, 29 insertions(+), 29 deletions(-) diff --git a/spec/controllers/idv/in_person/address_controller_spec.rb b/spec/controllers/idv/in_person/address_controller_spec.rb index acc89885135..357a8e6bf3e 100644 --- a/spec/controllers/idv/in_person/address_controller_spec.rb +++ b/spec/controllers/idv/in_person/address_controller_spec.rb @@ -196,7 +196,7 @@ analytics_id: 'In Person Proofing', flow_path: 'standard', step: 'address', - current_address_zip_code: '59010', + current_address_zip_code: '25309', } end diff --git a/spec/features/idv/analytics_spec.rb b/spec/features/idv/analytics_spec.rb index 810fab15a03..7d9a320c2f7 100644 --- a/spec/features/idv/analytics_spec.rb +++ b/spec/features/idv/analytics_spec.rb @@ -70,7 +70,7 @@ transaction_id: 'state-id-mock-transaction-id-456', vendor_name: 'StateIdMock', verified_attributes: [], - state: 'MT', + state: 'WV', state_id_jurisdiction: 'ND', state_id_number: '#############', jurisdiction_in_maintenance_window: false } @@ -134,9 +134,9 @@ }, }, biographical_info: { - birth_year: 1938, + birth_year: 1976, identity_doc_address_state: nil, - state: 'MT', + state: 'WV', state_id_jurisdiction: 'ND', state_id_number: '#############', }, @@ -189,9 +189,9 @@ }, }, biographical_info: { - birth_year: 1938, - identity_doc_address_state: 'MT', - state: 'MT', + birth_year: 1976, + identity_doc_address_state: 'WV', + state: 'WV', state_id_jurisdiction: 'ND', state_id_number: '#############', }, @@ -606,7 +606,7 @@ step: 'state_id', flow_path: 'standard', analytics_id: 'In Person Proofing' }, 'IdV: in person proofing state_id submitted' => { - success: true, flow_path: 'standard', step: 'state_id', analytics_id: 'In Person Proofing', birth_year: '1938', document_zip_code: '12345', proofing_components: { document_check: 'usps' } + success: true, flow_path: 'standard', step: 'state_id', analytics_id: 'In Person Proofing', birth_year: '1976', document_zip_code: '12345', proofing_components: { document_check: 'usps' } }, 'IdV: in person proofing address visited' => { step: 'address', flow_path: 'standard', analytics_id: 'In Person Proofing', proofing_components: { document_check: 'usps' } diff --git a/spec/features/idv/doc_auth/document_capture_spec.rb b/spec/features/idv/doc_auth/document_capture_spec.rb index 070ff919214..9d4d17a0eab 100644 --- a/spec/features/idv/doc_auth/document_capture_spec.rb +++ b/spec/features/idv/doc_auth/document_capture_spec.rb @@ -516,7 +516,7 @@ expect(page).to have_current_path(idv_ssn_url) expect_costing_for_document - expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('MT') + expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('WV') expect(page).to have_current_path(idv_ssn_url) fill_out_ssn_form_ok @@ -561,7 +561,7 @@ expect(page).to have_current_path(idv_ssn_url) expect_costing_for_document - expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('MT') + expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('WV') expect(page).to have_current_path(idv_ssn_url) fill_out_ssn_form_ok @@ -761,7 +761,7 @@ expect(page).to have_current_path(idv_ssn_url) expect_costing_for_document - expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('MT') + expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('WV') expect(page).to have_current_path(idv_ssn_url) fill_out_ssn_form_ok @@ -824,7 +824,7 @@ expect(page).to have_current_path(idv_ssn_url) expect_costing_for_document - expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('MT') + expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('WV') expect(page).to have_current_path(idv_ssn_url) fill_out_ssn_form_ok diff --git a/spec/features/idv/doc_auth/redo_document_capture_spec.rb b/spec/features/idv/doc_auth/redo_document_capture_spec.rb index ab486d19345..452bdf3bb48 100644 --- a/spec/features/idv/doc_auth/redo_document_capture_spec.rb +++ b/spec/features/idv/doc_auth/redo_document_capture_spec.rb @@ -399,7 +399,7 @@ expect(page).to have_current_path(idv_ssn_url) expect_costing_for_document - expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('MT') + expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('WV') expect(page).to have_current_path(idv_ssn_url) fill_out_ssn_form_ok @@ -444,7 +444,7 @@ expect(page).to have_current_path(idv_ssn_url) expect_costing_for_document - expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('MT') + expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('WV') expect(page).to have_current_path(idv_ssn_url) fill_out_ssn_form_ok @@ -642,7 +642,7 @@ expect(page).to have_current_path(idv_ssn_url) expect_costing_for_document - expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('MT') + expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('WV') expect(page).to have_current_path(idv_ssn_url) fill_out_ssn_form_ok @@ -705,7 +705,7 @@ expect(page).to have_current_path(idv_ssn_url) expect_costing_for_document - expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('MT') + expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('WV') expect(page).to have_current_path(idv_ssn_url) fill_out_ssn_form_ok diff --git a/spec/features/idv/end_to_end_idv_spec.rb b/spec/features/idv/end_to_end_idv_spec.rb index 8014a0618e4..de7b60e0c2f 100644 --- a/spec/features/idv/end_to_end_idv_spec.rb +++ b/spec/features/idv/end_to_end_idv_spec.rb @@ -223,7 +223,7 @@ def validate_document_capture_page def validate_document_capture_submit(user) expect_costing_for_document - expect(DocAuthLog.find_by(user_id: user.id).state).to eq('MT') + expect(DocAuthLog.find_by(user_id: user.id).state).to eq('WV') end # copied from document_capture_spec diff --git a/spec/features/idv/steps/in_person/state_id_spec.rb b/spec/features/idv/steps/in_person/state_id_spec.rb index 6e064a24265..5971428491b 100644 --- a/spec/features/idv/steps/in_person/state_id_spec.rb +++ b/spec/features/idv/steps/in_person/state_id_spec.rb @@ -82,8 +82,8 @@ with: InPersonHelper::GOOD_LAST_NAME, ) expect(page).to have_field(t('components.memorable_date.month'), with: '10') - expect(page).to have_field(t('components.memorable_date.day'), with: '6') - expect(page).to have_field(t('components.memorable_date.year'), with: '1938') + expect(page).to have_field(t('components.memorable_date.day'), with: '18') + expect(page).to have_field(t('components.memorable_date.year'), with: '1976') expect(page).to have_field( t('in_person_proofing.form.state_id.state_id_jurisdiction'), with: Idp::Constants::MOCK_IDV_APPLICANT_STATE_ID_JURISDICTION, diff --git a/spec/forms/idv/api_image_upload_form_spec.rb b/spec/forms/idv/api_image_upload_form_spec.rb index 82c41d987a3..83583286cd1 100644 --- a/spec/forms/idv/api_image_upload_form_spec.rb +++ b/spec/forms/idv/api_image_upload_form_spec.rb @@ -249,7 +249,7 @@ doc_auth_result: 'Passed', errors: {}, remaining_submit_attempts: 3, - state: 'MT', + state: 'WV', country: 'US', id_doc_type: 'drivers_license', success: true, @@ -265,8 +265,8 @@ selfie_status: anything, transaction_status: 'passed', workflow: 'test_non_liveness_workflow', - birth_year: 1938, - zip_code: '59010', + birth_year: 1976, + zip_code: '25309', issue_year: 2019, document_type: document_type, passport_check_result: {}, diff --git a/spec/services/proofing/resolution/result_adjudicator_spec.rb b/spec/services/proofing/resolution/result_adjudicator_spec.rb index e23bf2eb214..69c83688ef5 100644 --- a/spec/services/proofing/resolution/result_adjudicator_spec.rb +++ b/spec/services/proofing/resolution/result_adjudicator_spec.rb @@ -111,8 +111,8 @@ result = subject.adjudicated_result expect(result.extra[:biographical_info]).to eq( - birth_year: 1938, - state: 'MT', + birth_year: 1976, + state: 'WV', identity_doc_address_state: nil, state_id_jurisdiction: 'ND', state_id_number: '#############', @@ -128,8 +128,8 @@ result = subject.adjudicated_result expect(result.extra[:biographical_info]).to eq( - birth_year: 1938, - state: 'MT', + birth_year: 1976, + state: 'WV', identity_doc_address_state: 'MT', state_id_jurisdiction: 'ND', state_id_number: '#############', diff --git a/spec/support/idv_examples/clearing_and_restarting.rb b/spec/support/idv_examples/clearing_and_restarting.rb index b5390a9a420..7fd45a4985c 100644 --- a/spec/support/idv_examples/clearing_and_restarting.rb +++ b/spec/support/idv_examples/clearing_and_restarting.rb @@ -38,7 +38,7 @@ expect(page).to have_current_path(idv_letter_enqueued_path) expect(user.reload.identity_verified?).to eq(false) expect(User.find(user.id).pending_profile?).to eq(true) - expect(gpo_confirmation.entry[:address1]).to eq('1 FAKE RD') + expect(gpo_confirmation.entry[:address1]).to eq('514 EAST AVE') end it 'deletes decrypted PII from the session and does not display it on the account page' do diff --git a/spec/support/idv_examples/sp_handoff.rb b/spec/support/idv_examples/sp_handoff.rb index ee43a76e175..30868c99d75 100644 --- a/spec/support/idv_examples/sp_handoff.rb +++ b/spec/support/idv_examples/sp_handoff.rb @@ -146,7 +146,7 @@ def expect_successful_oidc_handoff expect(decoded_id_token[:acr]).to eq(Saml::Idp::Constants::IAL_VERIFIED_ACR) expect(decoded_id_token[:iss]).to eq(root_url) expect(decoded_id_token[:email]).to eq(user.last_sign_in_email_address.email) - expect(decoded_id_token[:given_name]).to eq('FAKEY') + expect(decoded_id_token[:given_name]).to eq('MICHELE') expect(decoded_id_token[:social_security_number]).to eq(DocAuthHelper::GOOD_SSN) access_token = token_response[:access_token] @@ -160,7 +160,7 @@ def expect_successful_oidc_handoff expect(userinfo_response[:sub]).to eq(sub) expect(AgencyIdentity.where(user_id: user.id, agency_id: 2).first.uuid).to eq(sub) expect(userinfo_response[:email]).to eq(user.last_sign_in_email_address.email) - expect(userinfo_response[:given_name]).to eq('FAKEY') + expect(userinfo_response[:given_name]).to eq('MICHELE') expect(userinfo_response[:social_security_number]).to eq(DocAuthHelper::GOOD_SSN) end end From b7aa7b559f980d668cf938cdb3b75302cc3c1e2a Mon Sep 17 00:00:00 2001 From: Moncef Belyamani Date: Fri, 23 May 2025 12:01:03 -0400 Subject: [PATCH 3/3] [skip changelog] Fix more tests --- spec/features/idv/analytics_spec.rb | 2 +- spec/services/proofing/resolution/result_adjudicator_spec.rb | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/spec/features/idv/analytics_spec.rb b/spec/features/idv/analytics_spec.rb index 7d9a320c2f7..acaa052dd9b 100644 --- a/spec/features/idv/analytics_spec.rb +++ b/spec/features/idv/analytics_spec.rb @@ -612,7 +612,7 @@ step: 'address', flow_path: 'standard', analytics_id: 'In Person Proofing', proofing_components: { document_check: 'usps' } }, 'IdV: in person proofing residential address submitted' => { - success: true, step: 'address', flow_path: 'standard', analytics_id: 'In Person Proofing', current_address_zip_code: '59010', proofing_components: { document_check: 'usps' } + success: true, step: 'address', flow_path: 'standard', analytics_id: 'In Person Proofing', current_address_zip_code: '25309', proofing_components: { document_check: 'usps' } }, 'IdV: doc auth ssn visited' => { analytics_id: 'In Person Proofing', step: 'ssn', flow_path: 'standard', proofing_components: { document_check: 'usps' } diff --git a/spec/services/proofing/resolution/result_adjudicator_spec.rb b/spec/services/proofing/resolution/result_adjudicator_spec.rb index 69c83688ef5..be954a1ed7b 100644 --- a/spec/services/proofing/resolution/result_adjudicator_spec.rb +++ b/spec/services/proofing/resolution/result_adjudicator_spec.rb @@ -130,7 +130,7 @@ expect(result.extra[:biographical_info]).to eq( birth_year: 1976, state: 'WV', - identity_doc_address_state: 'MT', + identity_doc_address_state: 'WV', state_id_jurisdiction: 'ND', state_id_number: '#############', same_address_as_id: 'true',