Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ def phone_question_user

def maybe_redirect_for_phone_question_ab_test
return if phone_question_ab_test_bucket != :show_phone_question
return if request.referer.blank? # avoid redirect loop
return if request.referer == idv_phone_question_url
return if request.referer == idv_link_sent_url
return if request.referer == idv_hybrid_handoff_url
Expand Down
5 changes: 5 additions & 0 deletions spec/features/idv/doc_auth/hybrid_handoff_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -201,6 +201,11 @@
expect(page).to have_current_path(idv_phone_question_path)
click_link t('doc_auth.buttons.have_phone')

# added to test FlowPolicy behavior with PhoneQuestion
expect(page).to have_current_path(idv_hybrid_handoff_path)
visit(idv_link_sent_url)
expect(page).to have_current_path(idv_hybrid_handoff_path)

freeze_time do
idv_send_link_max_attempts.times do
expect(page).to_not have_content(
Expand Down