diff --git a/app/helpers/check_answers_helper.rb b/app/helpers/check_answers_helper.rb index 0209d8e14..d69414670 100644 --- a/app/helpers/check_answers_helper.rb +++ b/app/helpers/check_answers_helper.rb @@ -1,5 +1,6 @@ module CheckAnswersHelper include GovukLinkHelper + include GovukVisuallyHiddenHelper def display_answered_questions_summary(subsection, lettings_log, current_user) total = total_count(subsection, lettings_log, current_user) diff --git a/app/helpers/duplicate_logs_helper.rb b/app/helpers/duplicate_logs_helper.rb index 8df911103..9eb1b6289 100644 --- a/app/helpers/duplicate_logs_helper.rb +++ b/app/helpers/duplicate_logs_helper.rb @@ -1,5 +1,6 @@ module DuplicateLogsHelper include GovukLinkHelper + include GovukVisuallyHiddenHelper def duplicate_logs_continue_button(all_duplicates, duplicate_log, original_log) if all_duplicates.count > 1 diff --git a/app/helpers/log_actions_helper.rb b/app/helpers/log_actions_helper.rb index b0f950a5e..8a018445e 100644 --- a/app/helpers/log_actions_helper.rb +++ b/app/helpers/log_actions_helper.rb @@ -1,5 +1,6 @@ module LogActionsHelper include GovukLinkHelper + include GovukVisuallyHiddenHelper def edit_actions_for_log(log) back = back_button_for(log) diff --git a/app/helpers/tab_nav_helper.rb b/app/helpers/tab_nav_helper.rb index c29ae5d86..24408be28 100644 --- a/app/helpers/tab_nav_helper.rb +++ b/app/helpers/tab_nav_helper.rb @@ -1,5 +1,6 @@ module TabNavHelper include GovukLinkHelper + include GovukVisuallyHiddenHelper def user_cell(user) link_text = user.name.presence || user.email diff --git a/app/helpers/tasklist_helper.rb b/app/helpers/tasklist_helper.rb index 1d7e4d7ef..bdc71b4ab 100644 --- a/app/helpers/tasklist_helper.rb +++ b/app/helpers/tasklist_helper.rb @@ -1,5 +1,6 @@ module TasklistHelper include GovukLinkHelper + include GovukVisuallyHiddenHelper include CollectionTimeHelper def breadcrumb_logs_title(log, current_user) diff --git a/spec/components/create_log_actions_component_spec.rb b/spec/components/create_log_actions_component_spec.rb index a52f851f0..6572c93f9 100644 --- a/spec/components/create_log_actions_component_spec.rb +++ b/spec/components/create_log_actions_component_spec.rb @@ -3,6 +3,7 @@ require "rails_helper" RSpec.describe CreateLogActionsComponent, type: :component do include GovukComponentsHelper include GovukLinkHelper + include GovukVisuallyHiddenHelper let(:component) { described_class.new(user:, log_type:, bulk_upload:) } let(:render) { render_inline(component) } diff --git a/spec/features/form/validations_spec.rb b/spec/features/form/validations_spec.rb index aecb0c995..a3a5b9bc2 100644 --- a/spec/features/form/validations_spec.rb +++ b/spec/features/form/validations_spec.rb @@ -64,7 +64,7 @@ RSpec.describe "validations" do it "shows validation for over 120" do visit("/lettings-logs/#{id}/person-1-age") fill_in_number_question(empty_lettings_log.id, "age1", 121, "person-1-age") - expect(page).to have_selector("#govuk-error-summary__title") + expect(page).to have_selector(".govuk-error-summary__title") expect(page).to have_selector("#lettings-log-age1-error") expect(page).to have_selector("#lettings-log-age1-field-error") expect(page).to have_title("Error")