diff --git a/app/views/idv/agreement/show.html.erb b/app/views/idv/agreement/show.html.erb index ccf4418b788..e39fbc04049 100644 --- a/app/views/idv/agreement/show.html.erb +++ b/app/views/idv/agreement/show.html.erb @@ -25,7 +25,7 @@ <%= render ClickObserverComponent.new(event_name: 'IdV: consent checkbox toggled') do %> <%= render ValidatedFieldComponent.new( form: f, - name: :ial2_consent_given, + name: :idv_consent_given, as: :boolean, label: t('doc_auth.instructions.consent', app_name: APP_NAME), required: true, diff --git a/app/views/idv/getting_started/show.html.erb b/app/views/idv/getting_started/show.html.erb index 442cc502a75..30701e6c993 100644 --- a/app/views/idv/getting_started/show.html.erb +++ b/app/views/idv/getting_started/show.html.erb @@ -49,7 +49,7 @@ <%= render ClickObserverComponent.new(event_name: 'IdV: consent checkbox toggled') do %> <%= render ValidatedFieldComponent.new( form: f, - name: :ial2_consent_given, + name: :idv_consent_given, as: :boolean, label: t('doc_auth.getting_started.instructions.consent', app_name: APP_NAME), required: true, diff --git a/spec/views/idv/agreement/show.html.erb_spec.rb b/spec/views/idv/agreement/show.html.erb_spec.rb index d4aceb05d7f..25ba56fd5c8 100644 --- a/spec/views/idv/agreement/show.html.erb_spec.rb +++ b/spec/views/idv/agreement/show.html.erb_spec.rb @@ -14,7 +14,7 @@ it 'includes code to track clicks on the consent checkbox' do selector = [ 'lg-click-observer[event-name="IdV: consent checkbox toggled"]', - '[name="doc_auth[ial2_consent_given]"]', + '[name="doc_auth[idv_consent_given]"]', ].join ' ' expect(rendered).to have_css(selector) diff --git a/spec/views/idv/getting_started/show.html.erb_spec.rb b/spec/views/idv/getting_started/show.html.erb_spec.rb index 14b22b96648..722bc59513e 100644 --- a/spec/views/idv/getting_started/show.html.erb_spec.rb +++ b/spec/views/idv/getting_started/show.html.erb_spec.rb @@ -36,7 +36,7 @@ it 'includes code to track clicks on the consent checkbox' do selector = [ 'lg-click-observer[event-name="IdV: consent checkbox toggled"]', - '[name="doc_auth[ial2_consent_given]"]', + '[name="doc_auth[idv_consent_given]"]', ].join ' ' expect(rendered).to have_css(selector)