diff --git a/app/components/check_your_answers_summary/component.rb b/app/components/check_your_answers_summary/component.rb index db82805e39..482a932735 100644 --- a/app/components/check_your_answers_summary/component.rb +++ b/app/components/check_your_answers_summary/component.rb @@ -138,7 +138,7 @@ def format_document(document, field) [ format_array(uploads, field), if malware_scan_active && scope.scan_result_suspect.exists? - "One or more upload has been deleted by the virus scanner." + "#{scope.count} #{"file upload".pluralize(scope.count)} has been scanned as malware and deleted." elsif request.path.starts_with?("/assessor") && convert_to_pdf_active && !uploads.all?(&:is_pdf?) helpers.govuk_link_to( diff --git a/spec/components/check_your_answers_summary_component_spec.rb b/spec/components/check_your_answers_summary_component_spec.rb index 68dcaa58f0..2b911bfcdd 100644 --- a/spec/components/check_your_answers_summary_component_spec.rb +++ b/spec/components/check_your_answers_summary_component_spec.rb @@ -286,7 +286,7 @@ it "includes a warning" do expect(row.at_css(".govuk-summary-list__value").text).to include( - "One or more upload has been deleted by the virus scanner", + "2 file uploads has been scanned as malware and deleted.", ) end end