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: 1 addition & 4 deletions app/controllers/idv/hybrid_handoff_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -118,10 +118,7 @@ def bypass_send_link_steps
end

def extra_view_variables
{
flow_session: flow_session,
idv_phone_form: build_form,
}
{ idv_phone_form: build_form }
end

def build_form
Expand Down
3 changes: 1 addition & 2 deletions app/controllers/idv/link_sent_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -30,8 +30,7 @@ def update
end

def extra_view_variables
{ phone: idv_session.phone_for_mobile_flow,
flow_session: flow_session }
{ phone: idv_session.phone_for_mobile_flow }
end

private
Expand Down
10 changes: 0 additions & 10 deletions app/views/idv/agreement/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,16 +9,6 @@
) %>
<% end %>

<%= render AlertComponent.new(
type: :error,
class: [
'js-consent-form-alert',
'margin-bottom-4',
'display-none',
].select(&:present?),
message: t('errors.doc_auth.consent_form'),
) %>

<%= render PageHeadingComponent.new.with_content(t('doc_auth.headings.lets_go')) %>
<p><%= t('doc_auth.info.lets_go') %></p>
<h2><%= t('doc_auth.headings.verify_identity') %></h2>
Expand Down
8 changes: 0 additions & 8 deletions app/views/idv/doc_auth/_error_messages.html.erb

This file was deleted.

10 changes: 0 additions & 10 deletions app/views/idv/getting_started/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -5,16 +5,6 @@
intro: t('idv.getting_started.no_js_intro', sp_name: @sp_name),
) do %>

<%= render AlertComponent.new(
type: :error,
class: [
'js-consent-form-alert',
'margin-bottom-4',
'display-none',
].select(&:present?),
message: t('errors.doc_auth.consent_form'),
) %>

<%= render PageHeadingComponent.new.with_content(@title) %>
<p>
<%= t(
Expand Down
2 changes: 0 additions & 2 deletions app/views/idv/hybrid_handoff/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,8 +9,6 @@
) %>
<% end %>

<%= render 'idv/doc_auth/error_messages', flow_session: flow_session %>

<%= render PageHeadingComponent.new do %>
<%= t('doc_auth.headings.hybrid_handoff') %>
<% end %>
Expand Down
8 changes: 0 additions & 8 deletions app/views/idv/link_sent/show.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -9,14 +9,6 @@

<% title t('titles.doc_auth.link_sent') %>

<% if flow_session[:error_message] %>
<%= render AlertComponent.new(
type: :error,
class: 'margin-bottom-4',
message: flow_session[:error_message],
) %>
<% end %>

<%= render AlertComponent.new(type: :warning, class: 'margin-bottom-4') do %>
<strong class="display-block"><%= t('doc_auth.info.keep_window_open') %></strong>
<% if FeatureManagement.doc_capture_polling_enabled? %>
Expand Down
5 changes: 1 addition & 4 deletions spec/controllers/idv/link_sent_controller_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -3,10 +3,7 @@
RSpec.describe Idv::LinkSentController do
include IdvHelper

let(:flow_session) do
{ document_capture_session_uuid: 'fd14e181-6fb1-4cdc-92e0-ef66dad0df4e',
threatmetrix_session_id: 'c90ae7a5-6629-4e77-b97c-f1987c2df7d0' }
end
let(:flow_session) { {} }

let(:user) { create(:user) }

Expand Down
21 changes: 0 additions & 21 deletions spec/features/idv/doc_auth/agreement_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -2,27 +2,6 @@

RSpec.feature 'agreement step error checking' do
include DocAuthHelper
context 'when JS is disabled' do
before do
sign_in_and_2fa_user
complete_doc_auth_steps_before_agreement_step
end

it 'shows the notice if the user clicks continue without giving consent' do
click_continue

expect(page).to have_current_path(idv_agreement_url)
expect(page).to have_content(t('errors.doc_auth.consent_form'))
end

it 'allows the user to continue after checking the checkbox' do
check t('doc_auth.instructions.consent', app_name: APP_NAME)
click_continue

expect(page).to have_current_path(idv_hybrid_handoff_path)
end
end

context 'skipping hybrid_handoff step', :js, driver: :headless_chrome_mobile do
let(:fake_analytics) { FakeAnalytics.new }

Expand Down
16 changes: 0 additions & 16 deletions spec/features/idv/doc_auth/getting_started_spec.rb
Original file line number Diff line number Diff line change
Expand Up @@ -45,22 +45,6 @@
)
end

context 'when JS is disabled' do
it 'shows the notice if the user clicks continue without giving consent' do
click_continue

expect(page).to have_current_path(idv_getting_started_url)
expect(page).to have_content(t('errors.doc_auth.consent_form'))
end

it 'allows the user to continue after checking the checkbox' do
check t('doc_auth.instructions.consent', app_name: APP_NAME)
click_continue

expect(page).to have_current_path(idv_hybrid_handoff_path)
end
end

context 'skipping hybrid_handoff step', :js, driver: :headless_chrome_mobile do
before do
complete_getting_started_step
Expand Down
3 changes: 0 additions & 3 deletions spec/views/idv/agreement/show.html.erb_spec.rb
Original file line number Diff line number Diff line change
@@ -1,10 +1,7 @@
require 'rails_helper'

RSpec.describe 'idv/agreement/show' do
let(:flow_session) { {} }

before do
allow(view).to receive(:flow_session).and_return(flow_session)
allow(view).to receive(:user_signing_up?).and_return(false)
allow(view).to receive(:url_for).and_wrap_original do |method, *args, &block|
method.call(*args, &block)
Expand Down
2 changes: 0 additions & 2 deletions spec/views/idv/getting_started/show.html.erb_spec.rb
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
require 'rails_helper'

RSpec.describe 'idv/getting_started/show' do
let(:flow_session) { {} }
let(:user_fully_authenticated) { true }
let(:sp_name) { nil }
let(:user) { create(:user) }
Expand All @@ -12,7 +11,6 @@
@title = t('doc_auth.headings.getting_started', sp_name: @sp_name)
allow(@decorated_session).to receive(:sp_name).and_return(sp_name)
allow(view).to receive(:decorated_session).and_return(@decorated_session)
allow(view).to receive(:flow_session).and_return(flow_session)
allow(view).to receive(:user_fully_authenticated?).and_return(user_fully_authenticated)
allow(view).to receive(:user_signing_up?).and_return(false)
allow(view).to receive(:url_for).and_wrap_original do |method, *args, &block|
Expand Down