<%= t('users.delete.subheading') %>
diff --git a/app/views/users/webauthn_setup/new.html.erb b/app/views/users/webauthn_setup/new.html.erb
index 52d99e72020..3d6a7c5604c 100644
--- a/app/views/users/webauthn_setup/new.html.erb
+++ b/app/views/users/webauthn_setup/new.html.erb
@@ -21,10 +21,9 @@
<%= hidden_field_tag :webauthn_public_key, '', id: 'webauthn_public_key' %>
<%= hidden_field_tag :attestation_object, '', id: 'attestation_object' %>
<%= hidden_field_tag :client_data_json, '', id: 'client_data_json' %>
- <%= label_tag 'code', t('forms.webauthn_setup.nickname'), class: 'block bold' %>
+ <%= label_tag 'code', t('forms.webauthn_setup.nickname'), class: 'block bold', for: 'nickname' %>
<%= text_field_tag :name, '', required: true, id: 'nickname',
- class: 'block col-12 field monospace', size: 16, maxlength: 20,
- 'aria-labelledby': 'totp-label' %>
+ class: 'block col-12 field monospace', size: 16, maxlength: 20 %>
<%= hidden_field_tag 'remember_device', false, id: 'remember_device_preference' %>
<%= check_box_tag 'remember_device', true, @presenter.remember_device_box_checked?, class: 'my2 ml2 mr1' %>
diff --git a/spec/features/accessibility/idv_pages_spec.rb b/spec/features/accessibility/idv_pages_spec.rb
index 1f1fd2c475a..dab67d0261a 100644
--- a/spec/features/accessibility/idv_pages_spec.rb
+++ b/spec/features/accessibility/idv_pages_spec.rb
@@ -46,6 +46,29 @@
visit idv_path
complete_all_doc_auth_steps
click_idv_continue
+ fill_in :user_password, with: Features::SessionHelper::VALID_PASSWORD
+ click_continue
+
+ expect(current_path).to eq idv_confirmations_path
+ expect(page).to be_accessible.according_to :section508, :"best-practice"
+ end
+
+ scenario 'doc auth steps accessibility' do
+ sign_in_and_2fa_user
+ visit idv_path
+ complete_all_doc_auth_steps(expect_accessible: true)
+ click_idv_continue
+ fill_in :user_password, with: Features::SessionHelper::VALID_PASSWORD
+ click_continue
+
+ expect(current_path).to eq idv_confirmations_path
+ expect(page).to be_accessible.according_to :section508, :"best-practice"
+ end
+
+ scenario 'doc auth steps accessibility on mobile', driver: :headless_chrome_mobile do
+ sign_in_and_2fa_user
+ visit idv_path
+ complete_all_doc_auth_steps(expect_accessible: true)
click_idv_continue
fill_in :user_password, with: Features::SessionHelper::VALID_PASSWORD
click_continue
diff --git a/spec/features/accessibility/user_pages_spec.rb b/spec/features/accessibility/user_pages_spec.rb
index 6b838b3d3bc..d77edafe6d8 100644
--- a/spec/features/accessibility/user_pages_spec.rb
+++ b/spec/features/accessibility/user_pages_spec.rb
@@ -138,4 +138,22 @@
expect(page).to be_accessible.according_to :section508, :"best-practice"
end
+
+ scenario 'device events page' do
+ user = sign_in_and_2fa_user
+ device = create(:device, user: user)
+ create(:event, user: user)
+
+ visit account_events_path(id: device.id)
+
+ expect(page).to be_accessible.according_to :section508, :"best-practice"
+ end
+
+ scenario 'delete user page' do
+ sign_in_and_2fa_user
+
+ visit account_delete_path
+
+ expect(page).to be_accessible.according_to :section508, :"best-practice"
+ end
end
diff --git a/spec/features/accessibility/visitor_pages_spec.rb b/spec/features/accessibility/visitor_pages_spec.rb
index f08cd2a6333..e99be638cf4 100644
--- a/spec/features/accessibility/visitor_pages_spec.rb
+++ b/spec/features/accessibility/visitor_pages_spec.rb
@@ -25,4 +25,10 @@
expect(page).to be_accessible.according_to :section508, :"best-practice"
end
+
+ scenario 'new user cancel registration page' do
+ visit sign_up_cancel_path
+
+ expect(page).to be_accessible.according_to :section508, :"best-practice"
+ end
end
diff --git a/spec/support/features/doc_auth_helper.rb b/spec/support/features/doc_auth_helper.rb
index 7fd777ba751..e84f25c19cd 100644
--- a/spec/support/features/doc_auth_helper.rb
+++ b/spec/support/features/doc_auth_helper.rb
@@ -86,18 +86,21 @@ def idv_doc_auth_email_sent_step
idv_doc_auth_step_path(step: :email_sent)
end
- def complete_doc_auth_steps_before_welcome_step
+ def complete_doc_auth_steps_before_welcome_step(expect_accessible: false)
visit idv_doc_auth_welcome_step unless current_path == idv_doc_auth_welcome_step
+ expect(page).to be_accessible.according_to :section508, :"best-practice" if expect_accessible
end
- def complete_doc_auth_steps_before_upload_step
+ def complete_doc_auth_steps_before_upload_step(expect_accessible: false)
visit idv_doc_auth_welcome_step unless current_path == idv_doc_auth_welcome_step
+ expect(page).to be_accessible.according_to :section508, :"best-practice" if expect_accessible
find('label', text: t('doc_auth.instructions.consent')).click
click_on t('doc_auth.buttons.continue')
end
- def complete_doc_auth_steps_before_document_capture_step
- complete_doc_auth_steps_before_upload_step
+ def complete_doc_auth_steps_before_document_capture_step(expect_accessible: false)
+ complete_doc_auth_steps_before_upload_step(expect_accessible: expect_accessible)
+ expect(page).to be_accessible.according_to :section508, :"best-practice" if expect_accessible
click_on t('doc_auth.info.upload_computer_link')
end
@@ -107,8 +110,9 @@ def complete_doc_auth_steps_before_mobile_document_capture_step
click_on t('doc_auth.buttons.use_phone')
end
- def complete_doc_auth_steps_before_front_image_step
- complete_doc_auth_steps_before_upload_step
+ def complete_doc_auth_steps_before_front_image_step(expect_accessible: false)
+ complete_doc_auth_steps_before_upload_step(expect_accessible: expect_accessible)
+ expect(page).to be_accessible.according_to :section508, :"best-practice" if expect_accessible
click_on t('doc_auth.info.upload_computer_link')
end
@@ -123,14 +127,16 @@ def mobile_device
AppleWebKit/604.1.38 (KHTML, like Gecko) Version/11.0 Mobile/15A372 Safari/604.1')
end
- def complete_doc_auth_steps_before_ssn_step
- complete_doc_auth_steps_before_back_image_step
+ def complete_doc_auth_steps_before_ssn_step(expect_accessible: false)
+ complete_doc_auth_steps_before_back_image_step(expect_accessible: expect_accessible)
+ expect(page).to be_accessible.according_to :section508, :"best-practice" if expect_accessible
attach_image
click_idv_continue
end
- def complete_doc_auth_steps_before_back_image_step
- complete_doc_auth_steps_before_front_image_step
+ def complete_doc_auth_steps_before_back_image_step(expect_accessible: false)
+ complete_doc_auth_steps_before_front_image_step(expect_accessible: expect_accessible)
+ expect(page).to be_accessible.according_to :section508, :"best-practice" if expect_accessible
attach_image
click_idv_continue
end
@@ -141,26 +147,31 @@ def complete_doc_auth_steps_before_mobile_back_image_step
click_idv_continue
end
- def complete_doc_auth_steps_before_doc_success_step
- complete_doc_auth_steps_before_verify_step
+ def complete_doc_auth_steps_before_doc_success_step(expect_accessible: false)
+ complete_doc_auth_steps_before_verify_step(expect_accessible: expect_accessible)
+ expect(page).to be_accessible.according_to :section508, :"best-practice" if expect_accessible
click_idv_continue
end
- def complete_all_doc_auth_steps
- complete_doc_auth_steps_before_doc_success_step
+ def complete_all_doc_auth_steps(expect_accessible: false)
+ complete_doc_auth_steps_before_doc_success_step(expect_accessible: expect_accessible)
+ expect(page).to be_accessible.according_to :section508, :"best-practice" if expect_accessible
click_idv_continue
end
- def complete_doc_auth_steps_before_address_step
+ def complete_doc_auth_steps_before_address_step(expect_accessible: false)
complete_doc_auth_steps_before_verify_step
+ expect(page).to be_accessible.according_to :section508, :"best-practice" if expect_accessible
click_link t('doc_auth.buttons.change_address')
end
- def complete_doc_auth_steps_before_verify_step
- complete_doc_auth_steps_before_ssn_step
+ def complete_doc_auth_steps_before_verify_step(expect_accessible: false)
+ complete_doc_auth_steps_before_ssn_step(expect_accessible: expect_accessible)
+ expect(page).to be_accessible.according_to :section508, :"best-practice" if expect_accessible
if page.current_path == idv_doc_auth_selfie_step
attach_image
click_idv_continue
+ expect(page).to be_accessible.according_to :section508, :"best-practice" if expect_accessible
end
fill_out_ssn_form_ok
click_idv_continue
diff --git a/spec/views/shared/_footer_lite.html.slim_spec.rb b/spec/views/shared/_footer_lite.html.erb_spec.rb
similarity index 96%
rename from spec/views/shared/_footer_lite.html.slim_spec.rb
rename to spec/views/shared/_footer_lite.html.erb_spec.rb
index 78196788915..000b5328d69 100644
--- a/spec/views/shared/_footer_lite.html.slim_spec.rb
+++ b/spec/views/shared/_footer_lite.html.erb_spec.rb
@@ -1,6 +1,6 @@
require 'rails_helper'
-describe 'shared/_footer_lite.html.slim' do
+describe 'shared/_footer_lite.html.erb' do
context 'user is signed out' do
before do
controller.request.path_parameters[:controller] = 'users/sessions'