Skip to content

Commit df2d40c

Browse files
committed
Update import error content
This content has been suggested by our content designer to clarify how the row indexing works.
1 parent c9e78d7 commit df2d40c

File tree

2 files changed

+5
-4
lines changed

2 files changed

+5
-4
lines changed

app/views/immunisation_imports/errors.html.erb

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,12 +5,13 @@
55
) %>
66
<% end %>
77

8-
<% title = "The vaccinations could not be added" %>
8+
<% title = "Vaccination records cannot be uploaded" %>
99

1010
<%= h1 title, page_title: "#{@campaign.name} – #{title}" %>
1111

12-
<p>
13-
It wasn’t possible to add the vaccinations due to the following errors in the uploaded CSV file:
12+
<p class="nhsuk-body">
13+
The records cannot be uploaded due to errors in the CSV file.
14+
When fixing these errors, note that the header does not count as a row.
1415
</p>
1516

1617
<% @immunisation_import.errors.each do |error| %>

spec/features/immunisation_imports_upload_spec.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ def when_i_upload_an_invalid_file
9696
end
9797

9898
def then_i_should_see_the_errors_page
99-
expect(page).to have_content("The vaccinations could not be added")
99+
expect(page).to have_content("Vaccination records cannot be uploaded")
100100
expect(page).to have_content("Row 1")
101101
end
102102

0 commit comments

Comments
 (0)