diff --git a/spec/features/idv/doc_auth/how_to_verify_spec.rb b/spec/features/idv/doc_auth/how_to_verify_spec.rb index 0f6dc2de6b3..28c87202c24 100644 --- a/spec/features/idv/doc_auth/how_to_verify_spec.rb +++ b/spec/features/idv/doc_auth/how_to_verify_spec.rb @@ -25,6 +25,7 @@ facial_match_required: facial_match_required } ) sign_in_via_branded_page(user) + expect(page).to have_current_path(idv_welcome_path) complete_doc_auth_steps_before_agreement_step complete_agreement_step end diff --git a/spec/support/features/session_helper.rb b/spec/support/features/session_helper.rb index feaa8174111..09c039ad9cf 100644 --- a/spec/support/features/session_helper.rb +++ b/spec/support/features/session_helper.rb @@ -537,7 +537,9 @@ def skip_second_mfa_prompt end def sign_in_via_branded_page(user) + expect(page).to have_current_path new_user_session_path fill_in_credentials_and_submit(user.last_sign_in_email_address.email, user.password) + expect(page).to have_current_path(login_two_factor_path(otp_delivery_preference: 'sms')) fill_in_code_with_last_phone_otp click_submit_default end