Skip to content
Merged
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
5 changes: 5 additions & 0 deletions spec/features/account_creation/completions_cancel_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,11 @@
expect(page).to have_current_path(sign_up_completed_cancel_path)
click_on t('login_cancel.exit', app_name: APP_NAME)

expect(page).to have_current_path(
'http://localhost:7654/auth/result',
url: true,
ignore_query: true,
)
expect(current_url).to start_with('http://localhost:7654/auth/result?error=access_denied')
end
end
5 changes: 5 additions & 0 deletions spec/features/idv/cancel_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -187,6 +187,11 @@

click_spinner_button_and_wait t('idv.cancel.actions.exit', app_name: APP_NAME)

expect(page).to have_current_path(
'http://localhost:7654/auth/result',
url: true,
ignore_query: true,
)
expect(current_url).to start_with('http://localhost:7654/auth/result?error=access_denied')
expect(fake_analytics).to have_logged_event(
'IdV: cancellation confirmed',
Expand Down
4 changes: 4 additions & 0 deletions spec/features/idv/end_to_end_idv_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,15 @@
test_go_back_from_document_capture
complete_document_capture_step

expect(page).to have_current_path(idv_ssn_path)
test_go_back_from_ssn_page
complete_ssn_step

expect(page).to have_current_path(idv_verify_info_path)
test_go_back_from_verify_info
complete_verify_step

expect(page).to have_current_path(idv_phone_path)
test_go_back_from_phone
complete_otp_verification_page(user)

Expand All @@ -97,6 +100,7 @@
complete_all_doc_auth_steps

enter_gpo_flow
expect(page).to have_current_path(idv_request_letter_path)
test_go_back_from_request_letter
complete_request_letter
complete_enter_password_step(user)
Expand Down
6 changes: 5 additions & 1 deletion spec/features/idv/uak_password_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,10 @@

click_agree_and_continue

expect(current_url).to start_with('http://localhost:7654/auth/result')
expect(page).to have_current_path(
'http://localhost:7654/auth/result',
url: true,
ignore_query: true,
)
end
end
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,11 @@

click_on t('users.second_mfa_reminder.continue', sp_name: service_provider.friendly_name)

expect(current_url).to start_with(service_provider.redirect_uris.first)
expect(page).to have_current_path(
service_provider.redirect_uris.first,
url: true,
ignore_query: true,
)
end
end

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,11 @@
acknowledge_and_confirm_personal_key
click_agree_and_continue

expect(current_url).to start_with('http://localhost:7654/auth/result')
expect(page).to have_current_path(
'http://localhost:7654/auth/result',
url: true,
ignore_query: true,
)

visit account_path

Expand Down
6 changes: 5 additions & 1 deletion spec/features/users/user_profile_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -177,7 +177,11 @@

click_agree_and_continue

expect(current_url).to start_with('http://localhost:7654/auth/result')
expect(page).to have_current_path(
'http://localhost:7654/auth/result',
url: true,
ignore_query: true,
)
end
end
end
Expand Down