-
- <%= accordion('totp-info', t('doc_auth.tips.title_html'),
- wrapper_css: 'my2 col-12 fs-16p') do %>
- <%= render 'idv/doc_auth/tips_and_sample' %>
-
- <%= image_tag(asset_url('state-id-sample-front.jpg'), height: 338, width: 450) %>
+ <%# ---- Back Image ----- %>
+
+
+
+
+ <%= t('doc_auth.headings.upload_back_html') %>
+
+
+ <%= accordion('totp-info', t('doc_auth.tips.title_html'),
+ wrapper_css: 'my2 col-12 fs-16p') do %>
+ <%= render 'idv/doc_auth/tips_and_sample' %>
+
+ <%= image_tag(asset_url('state-id-sample-back.jpg'), height: 338, width: 450) %>
+
+ <% end %>
+
+ <%= f.input :back_image_data_url, as: :hidden %>
+ <%= f.input :back_image, label: false, as: :file, required: true, wrapper_class: 'mt3 sm-col-8' %>
+
- <% end %>
- <%= f.input :front_image_data_url, as: :hidden %>
- <%= f.input :front_image, label: false, as: :file, required: true, wrapper_class: 'mt3 sm-col-8' %>
-
-
+ <%# ---- Selfie ----- %>
+ <% if liveness_checking_enabled? %>
+
+
+ <%= t('doc_auth.headings.selfie') %>
+
- <%# ---- Back Image ----- %>
+ <%= f.input :selfie_image_data_url, as: :hidden %>
+ <%= f.input :selfie_image, label: false, as: :file, required: true, wrapper_class: 'mt3 sm-col-8' %>
+
+
-
- <%= t('doc_auth.headings.upload_back_html') %>
-
+ <%# ---- Submit ----- %>
- <%= accordion('totp-info', t('doc_auth.tips.title_html'),
- wrapper_css: 'my2 col-12 fs-16p') do %>
- <%= render 'idv/doc_auth/tips_and_sample' %>
-
- <%= image_tag(asset_url('state-id-sample-back.jpg'), height: 338, width: 450) %>
+
+ <%= render 'idv/doc_auth/submit_with_spinner' %>
<% end %>
- <%= f.input :back_image_data_url, as: :hidden %>
- <%= f.input :back_image, label: false, as: :file, required: true, wrapper_class: 'mt3 sm-col-8' %>
-
-
-
- <%# ---- Selfie ----- %>
- <% if liveness_checking_enabled? %>
-
-
-
- <%= t('doc_auth.headings.selfie') %>
-
-
- <%= f.input :selfie_image_data_url, as: :hidden %>
- <%= f.input :selfie_image, label: false, as: :file, required: true, wrapper_class: 'mt3 sm-col-8' %>
-
-
- <% end %>
-
- <%# ---- Submit ----- %>
+
<%= t('doc_auth.info.upload_image') %>
-
- <%= render 'idv/doc_auth/submit_with_spinner' %>
+ <%= javascript_pack_tag 'image-preview' %>
+ <%= render 'idv/doc_auth/start_over_or_cancel' %>
+ <%= javascript_pack_tag 'document-capture' %>
<% end %>
-
-
<%= t('doc_auth.info.upload_image') %>
-
-<%= render 'idv/doc_auth/start_over_or_cancel' %>
-<%= javascript_pack_tag 'image-preview' %>
-
diff --git a/spec/features/idv/doc_auth/document_capture_step_spec.rb b/spec/features/idv/doc_auth/document_capture_step_spec.rb
index d2994280e28..a68ba331279 100644
--- a/spec/features/idv/doc_auth/document_capture_step_spec.rb
+++ b/spec/features/idv/doc_auth/document_capture_step_spec.rb
@@ -13,6 +13,7 @@
and_return(document_capture_step_enabled)
allow(Figaro.env).to receive(:liveness_checking_enabled).
and_return(liveness_enabled)
+ allow(Figaro.env).to receive(:acuant_sdk_document_capture_enabled).and_return('true')
sign_in_and_2fa_user(user)
complete_doc_auth_steps_before_document_capture_step
end