diff --git a/app/templates/views/check.html b/app/templates/views/check.html
index 0a5474c1b..9f24a26ba 100644
--- a/app/templates/views/check.html
+++ b/app/templates/views/check.html
@@ -7,6 +7,13 @@
{% from "components/list.html" import formatted_list %}
{% from "components/message-count-label.html" import message_count_label %}
+{% set file_contents_header_id = 'file-preview' %}
+{% macro skip_to_file_contents() %}
+
+ Skip to file contents
+
+{% endmacro %}
+
{% block page_title %}
{{ "Error" if errors else "Preview" }} – GOV.UK Notify
{% endblock %}
@@ -25,6 +32,7 @@
{{ "{:,}".format(recipients.max_rows) }} rows at once. Your
file has {{ "{:,}".format(recipients|length) }} rows.
+ {{ skip_to_file_contents() }}
{% endcall %}
@@ -42,6 +50,7 @@
prefix_plural='columns called'
) }}.
+ {{ skip_to_file_contents() }}
{% endcall %}
@@ -68,6 +77,7 @@
prefix_plural='columns called'
) }}.
+ {{ skip_to_file_contents() }}
{% endcall %}
@@ -95,6 +105,7 @@
{% endfor %}
{% endif %}
+ {{ skip_to_file_contents() }}
{% endcall %}
@@ -114,6 +125,7 @@
In trial mode you can only
send to yourself and members of your team
+ {{ skip_to_file_contents() }}
{% endcall %}
@@ -124,11 +136,13 @@
Preview
+ {{ skip_to_file_contents() }}
{% endif %}
{{ template|string }}
+
{% if errors %}
{% if request.args.from_test %}
@@ -149,10 +163,14 @@
{% endif %}
+
+
+
{% call(item, row_number) list_table(
recipients.initial_annotated_rows_with_errors if row_errors and not recipients.missing_column_headers else recipients.initial_annotated_rows,
caption=original_file_name,
+ caption_visible=False,
field_headings=['1'] + recipients.column_headers
) %}
{{ index_field(item.index + 2) }}
diff --git a/tests/app/main/views/test_send.py b/tests/app/main/views/test_send.py
index d01e8029d..1306b819d 100644
--- a/tests/app/main/views/test_send.py
+++ b/tests/app/main/views/test_send.py
@@ -841,7 +841,8 @@ def test_check_messages_shows_trial_mode_error(
page.find('div', class_='banner-dangerous').text.split()
) == (
'You can’t send to this phone number '
- 'In trial mode you can only send to yourself and members of your team'
+ 'In trial mode you can only send to yourself and members of your team '
+ 'Skip to file contents'
)
@@ -878,7 +879,8 @@ def test_check_messages_shows_over_max_row_error(
) == (
'Your file has too many rows '
'Notify can process up to 11,111 rows at once. '
- 'Your file has 99,999 rows.'
+ 'Your file has 99,999 rows. '
+ 'Skip to file contents'
)