Skip to content

Commit 0907510

Browse files
committed
Fix tests
1 parent 9141983 commit 0907510

File tree

10 files changed

+29
-29
lines changed

10 files changed

+29
-29
lines changed

spec/controllers/idv/in_person/address_controller_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -196,7 +196,7 @@
196196
analytics_id: 'In Person Proofing',
197197
flow_path: 'standard',
198198
step: 'address',
199-
current_address_zip_code: '59010',
199+
current_address_zip_code: '25309',
200200
}
201201
end
202202

spec/features/idv/analytics_spec.rb

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -70,7 +70,7 @@
7070
transaction_id: 'state-id-mock-transaction-id-456',
7171
vendor_name: 'StateIdMock',
7272
verified_attributes: [],
73-
state: 'MT',
73+
state: 'WV',
7474
state_id_jurisdiction: 'ND',
7575
state_id_number: '#############',
7676
jurisdiction_in_maintenance_window: false }
@@ -134,9 +134,9 @@
134134
},
135135
},
136136
biographical_info: {
137-
birth_year: 1938,
137+
birth_year: 1976,
138138
identity_doc_address_state: nil,
139-
state: 'MT',
139+
state: 'WV',
140140
state_id_jurisdiction: 'ND',
141141
state_id_number: '#############',
142142
},
@@ -189,9 +189,9 @@
189189
},
190190
},
191191
biographical_info: {
192-
birth_year: 1938,
193-
identity_doc_address_state: 'MT',
194-
state: 'MT',
192+
birth_year: 1976,
193+
identity_doc_address_state: 'WV',
194+
state: 'WV',
195195
state_id_jurisdiction: 'ND',
196196
state_id_number: '#############',
197197
},
@@ -606,7 +606,7 @@
606606
step: 'state_id', flow_path: 'standard', analytics_id: 'In Person Proofing'
607607
},
608608
'IdV: in person proofing state_id submitted' => {
609-
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' }
609+
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' }
610610
},
611611
'IdV: in person proofing address visited' => {
612612
step: 'address', flow_path: 'standard', analytics_id: 'In Person Proofing', proofing_components: { document_check: 'usps' }

spec/features/idv/doc_auth/document_capture_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -516,7 +516,7 @@
516516

517517
expect(page).to have_current_path(idv_ssn_url)
518518
expect_costing_for_document
519-
expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('MT')
519+
expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('WV')
520520

521521
expect(page).to have_current_path(idv_ssn_url)
522522
fill_out_ssn_form_ok
@@ -561,7 +561,7 @@
561561

562562
expect(page).to have_current_path(idv_ssn_url)
563563
expect_costing_for_document
564-
expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('MT')
564+
expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('WV')
565565

566566
expect(page).to have_current_path(idv_ssn_url)
567567
fill_out_ssn_form_ok
@@ -761,7 +761,7 @@
761761

762762
expect(page).to have_current_path(idv_ssn_url)
763763
expect_costing_for_document
764-
expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('MT')
764+
expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('WV')
765765

766766
expect(page).to have_current_path(idv_ssn_url)
767767
fill_out_ssn_form_ok
@@ -824,7 +824,7 @@
824824

825825
expect(page).to have_current_path(idv_ssn_url)
826826
expect_costing_for_document
827-
expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('MT')
827+
expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('WV')
828828

829829
expect(page).to have_current_path(idv_ssn_url)
830830
fill_out_ssn_form_ok

spec/features/idv/doc_auth/redo_document_capture_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -399,7 +399,7 @@
399399

400400
expect(page).to have_current_path(idv_ssn_url)
401401
expect_costing_for_document
402-
expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('MT')
402+
expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('WV')
403403

404404
expect(page).to have_current_path(idv_ssn_url)
405405
fill_out_ssn_form_ok
@@ -444,7 +444,7 @@
444444

445445
expect(page).to have_current_path(idv_ssn_url)
446446
expect_costing_for_document
447-
expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('MT')
447+
expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('WV')
448448

449449
expect(page).to have_current_path(idv_ssn_url)
450450
fill_out_ssn_form_ok
@@ -642,7 +642,7 @@
642642

643643
expect(page).to have_current_path(idv_ssn_url)
644644
expect_costing_for_document
645-
expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('MT')
645+
expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('WV')
646646

647647
expect(page).to have_current_path(idv_ssn_url)
648648
fill_out_ssn_form_ok
@@ -705,7 +705,7 @@
705705

706706
expect(page).to have_current_path(idv_ssn_url)
707707
expect_costing_for_document
708-
expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('MT')
708+
expect(DocAuthLog.find_by(user_id: @user.id).state).to eq('WV')
709709

710710
expect(page).to have_current_path(idv_ssn_url)
711711
fill_out_ssn_form_ok

spec/features/idv/end_to_end_idv_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -223,7 +223,7 @@ def validate_document_capture_page
223223

224224
def validate_document_capture_submit(user)
225225
expect_costing_for_document
226-
expect(DocAuthLog.find_by(user_id: user.id).state).to eq('MT')
226+
expect(DocAuthLog.find_by(user_id: user.id).state).to eq('WV')
227227
end
228228

229229
# copied from document_capture_spec

spec/features/idv/steps/in_person/state_id_spec.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -82,8 +82,8 @@
8282
with: InPersonHelper::GOOD_LAST_NAME,
8383
)
8484
expect(page).to have_field(t('components.memorable_date.month'), with: '10')
85-
expect(page).to have_field(t('components.memorable_date.day'), with: '6')
86-
expect(page).to have_field(t('components.memorable_date.year'), with: '1938')
85+
expect(page).to have_field(t('components.memorable_date.day'), with: '18')
86+
expect(page).to have_field(t('components.memorable_date.year'), with: '1976')
8787
expect(page).to have_field(
8888
t('in_person_proofing.form.state_id.state_id_jurisdiction'),
8989
with: Idp::Constants::MOCK_IDV_APPLICANT_STATE_ID_JURISDICTION,

spec/forms/idv/api_image_upload_form_spec.rb

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,7 +249,7 @@
249249
doc_auth_result: 'Passed',
250250
errors: {},
251251
remaining_submit_attempts: 3,
252-
state: 'MT',
252+
state: 'WV',
253253
country: 'US',
254254
id_doc_type: 'drivers_license',
255255
success: true,
@@ -265,8 +265,8 @@
265265
selfie_status: anything,
266266
transaction_status: 'passed',
267267
workflow: 'test_non_liveness_workflow',
268-
birth_year: 1938,
269-
zip_code: '59010',
268+
birth_year: 1976,
269+
zip_code: '25309',
270270
issue_year: 2019,
271271
document_type: document_type,
272272
passport_check_result: {},

spec/services/proofing/resolution/result_adjudicator_spec.rb

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -111,8 +111,8 @@
111111
result = subject.adjudicated_result
112112

113113
expect(result.extra[:biographical_info]).to eq(
114-
birth_year: 1938,
115-
state: 'MT',
114+
birth_year: 1976,
115+
state: 'WV',
116116
identity_doc_address_state: nil,
117117
state_id_jurisdiction: 'ND',
118118
state_id_number: '#############',
@@ -128,8 +128,8 @@
128128
result = subject.adjudicated_result
129129

130130
expect(result.extra[:biographical_info]).to eq(
131-
birth_year: 1938,
132-
state: 'MT',
131+
birth_year: 1976,
132+
state: 'WV',
133133
identity_doc_address_state: 'MT',
134134
state_id_jurisdiction: 'ND',
135135
state_id_number: '#############',

spec/support/idv_examples/clearing_and_restarting.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@
3838
expect(page).to have_current_path(idv_letter_enqueued_path)
3939
expect(user.reload.identity_verified?).to eq(false)
4040
expect(User.find(user.id).pending_profile?).to eq(true)
41-
expect(gpo_confirmation.entry[:address1]).to eq('1 FAKE RD')
41+
expect(gpo_confirmation.entry[:address1]).to eq('514 EAST AVE')
4242
end
4343

4444
it 'deletes decrypted PII from the session and does not display it on the account page' do

spec/support/idv_examples/sp_handoff.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -146,7 +146,7 @@ def expect_successful_oidc_handoff
146146
expect(decoded_id_token[:acr]).to eq(Saml::Idp::Constants::IAL_VERIFIED_ACR)
147147
expect(decoded_id_token[:iss]).to eq(root_url)
148148
expect(decoded_id_token[:email]).to eq(user.last_sign_in_email_address.email)
149-
expect(decoded_id_token[:given_name]).to eq('FAKEY')
149+
expect(decoded_id_token[:given_name]).to eq('MICHELE')
150150
expect(decoded_id_token[:social_security_number]).to eq(DocAuthHelper::GOOD_SSN)
151151

152152
access_token = token_response[:access_token]
@@ -160,7 +160,7 @@ def expect_successful_oidc_handoff
160160
expect(userinfo_response[:sub]).to eq(sub)
161161
expect(AgencyIdentity.where(user_id: user.id, agency_id: 2).first.uuid).to eq(sub)
162162
expect(userinfo_response[:email]).to eq(user.last_sign_in_email_address.email)
163-
expect(userinfo_response[:given_name]).to eq('FAKEY')
163+
expect(userinfo_response[:given_name]).to eq('MICHELE')
164164
expect(userinfo_response[:social_security_number]).to eq(DocAuthHelper::GOOD_SSN)
165165
end
166166
end

0 commit comments

Comments
 (0)