Skip to content

Commit

Permalink
Improves threatmetrix tests to use URL helpers since hardcoded one wa…
Browse files Browse the repository at this point in the history
…s breaking after removing the dynamic FSM /:step route
  • Loading branch information
jennyverdeyen committed Dec 2, 2024
1 parent f07c916 commit 328ead7
Showing 1 changed file with 5 additions and 5 deletions.
10 changes: 5 additions & 5 deletions spec/features/idv/in_person_threatmetrix_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -207,9 +207,9 @@ def deactivate_profile_update_enrollment(status:)

visit_idp_from_sp_with_ial2(sp)
expect(page).to have_current_path(idv_please_call_path)
page.visit('/verify/welcome')
page.visit(idv_welcome_path)
expect(page).to have_current_path(idv_please_call_path)
page.visit('/verify/in_person/document_capture')
page.visit(idv_in_person_state_id_path)
expect(page).to have_current_path(idv_please_call_path)
end

Expand All @@ -222,7 +222,7 @@ def deactivate_profile_update_enrollment(status:)
expect do
review_pass.run(args: [user.uuid], config:)
end.to(change { ActionMailer::Base.deliveries.count }.by(1))
page.visit('/verify/welcome')
page.visit(idv_welcome_path)
expect(page).to have_current_path(idv_activated_path)
end
end
Expand Down Expand Up @@ -306,9 +306,9 @@ def deactivate_profile_update_enrollment(status:)

visit_idp_from_sp_with_ial2(sp)
expect(page).to have_current_path(idv_not_verified_path)
page.visit('/verify/welcome')
page.visit(idv_welcome_path)
expect(page).to have_current_path(idv_not_verified_path)
page.visit('/verify/in_person/document_capture')
page.visit(idv_in_person_state_id_path)
expect(page).to have_current_path(idv_not_verified_path)
end
end
Expand Down

0 comments on commit 328ead7

Please sign in to comment.