Skip to content

Commit

Permalink
Update content related to virus deletions
Browse files Browse the repository at this point in the history
This updates the content to be clearer why the file was deleted to
hopefully reduce the number of questions about it.
  • Loading branch information
thomasleese committed Jan 25, 2024
1 parent ca3d9ac commit dc62dca
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion app/components/check_your_answers_summary/component.rb
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def format_document(document, field)
[
format_array(uploads, field),
if malware_scan_active && scope.scan_result_suspect.exists?
"<em>One or more upload has been deleted by the virus scanner.</em>"
"<em>#{scope.count} #{"file upload".pluralize(scope.count)} has been scanned as malware and deleted.</em>"
elsif request.path.starts_with?("/assessor") &&
convert_to_pdf_active && !uploads.all?(&:is_pdf?)
helpers.govuk_link_to(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down

0 comments on commit dc62dca

Please sign in to comment.