diff --git a/app/main/views/send.py b/app/main/views/send.py
index 7899af5a8..56956db0b 100644
--- a/app/main/views/send.py
+++ b/app/main/views/send.py
@@ -802,9 +802,15 @@ def get_skip_link(step_index, template):
)
@user_has_permissions("send_messages", restrict_admin_usage=True)
def send_one_off_to_myself(service_id, template_id):
- db_template = current_service.get_template_with_user_permission_or_403(
- template_id, current_user
- )
+ current_app.logger.info("Send one off to myself")
+ try:
+ db_template = current_service.get_template_with_user_permission_or_403(
+ template_id, current_user
+ )
+ except Exception:
+ current_app.logger.exception("Couldnt get template for one off")
+ # Use 406 just because we're limited to certain codes here and it will point us back to a problem here
+ abort(406)
if db_template["template_type"] not in ("sms", "email"):
abort(404)
diff --git a/app/templates/components/components/back-link/template.njk b/app/templates/components/components/back-link/template.njk
index 25e611b06..aba4e4d95 100644
--- a/app/templates/components/components/back-link/template.njk
+++ b/app/templates/components/components/back-link/template.njk
@@ -1,2 +1,4 @@
-{{ (params.html | safe if params.html else (params.text if params.text else 'Back')) }}
+
diff --git a/app/templates/components/main_nav.html b/app/templates/components/main_nav.html
index 597ccf45b..118442095 100644
--- a/app/templates/components/main_nav.html
+++ b/app/templates/components/main_nav.html
@@ -1,7 +1,7 @@
{% if help %}
{% include 'partials/tour.html' %}
{% else %}
-
{% else %}
-
+
{% set checkboxes_data = [] %}
{% if not current_user.has_permissions('manage_templates') %}
diff --git a/app/templates/views/templates/choose-reply.html b/app/templates/views/templates/choose-reply.html
index d3c786bbf..69bbe4770 100644
--- a/app/templates/views/templates/choose-reply.html
+++ b/app/templates/views/templates/choose-reply.html
@@ -37,7 +37,7 @@
{{ live_search(target_selector='#template-list .template-list-item', show=True, form=search_form) }}
-
+
{% for item in services_templates_and_folders %}
diff --git a/tests/app/test_navigation.py b/tests/app/test_navigation.py
index 58ff9f342..527e85554 100644
--- a/tests/app/test_navigation.py
+++ b/tests/app/test_navigation.py
@@ -424,7 +424,7 @@ def test_caseworkers_get_caseworking_navigation(
client_request.login(active_caseworking_user)
page = client_request.get("main.choose_template", service_id=SERVICE_ONE_ID)
assert normalize_spaces(page.select_one("header + .grid-container nav").text) == (
- "Send messages Sent messages"
+ "service one Switch service"
)
@@ -439,5 +439,5 @@ def test_caseworkers_see_jobs_nav_if_jobs_exist(
client_request.login(active_caseworking_user)
page = client_request.get("main.choose_template", service_id=SERVICE_ONE_ID)
assert normalize_spaces(page.select_one("header + .grid-container nav").text) == (
- "Send messages Sent messages"
+ "service one Switch service"
)
diff --git a/tests/end_to_end/conftest.py b/tests/end_to_end/conftest.py
index d9bd8786c..5aa908de4 100644
--- a/tests/end_to_end/conftest.py
+++ b/tests/end_to_end/conftest.py
@@ -29,12 +29,9 @@ def check_axe_report(page):
results = axe.run(page)
- # TODO we are setting this to critical for now
- # to keep tests passing. Once the serious and
- # moderate issues are fixed, we will set this
- # 'moderate'
+ # TODO fix remaining 'moderate' failures
+ # so we can set the level we skip to minor only
for violation in results["violations"]:
assert violation["impact"] in [
"minor",
- "moderate",
], f"Accessibility violation: {violation}"