From 3241710a961798d1b472a31428c96c8288bac3b0 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Fri, 1 Jul 2016 07:39:39 +0100 Subject: [PATCH] Rename check and confirm to preview MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit We’ve seen people land on this page and expect the message to be on their phone already. ‘Check and confirm’ sounds a lot like ‘check your phone’, which is language that we use earlier on when we _have_ sent a message. Hopefully ‘preview’ is a better indication that it’s not sent yet. --- app/templates/views/check.html | 4 ++-- app/templates/views/send-test.html | 2 +- tests/app/main/views/test_send.py | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/templates/views/check.html b/app/templates/views/check.html index 539ed320f..9f3571dad 100644 --- a/app/templates/views/check.html +++ b/app/templates/views/check.html @@ -9,7 +9,7 @@ {% from "components/message-count-label.html" import message_count_label %} {% block page_title %} - {{ "Error" if errors else "Check and confirm" }} – GOV.UK Notify + {{ "Error" if errors else "Preview" }} – GOV.UK Notify {% endblock %} {% block maincolumn_content %} @@ -136,7 +136,7 @@ {% else %}

- Check and confirm + Preview

{% endif %} diff --git a/app/templates/views/send-test.html b/app/templates/views/send-test.html index 600a3d2b4..a8b4c66b6 100644 --- a/app/templates/views/send-test.html +++ b/app/templates/views/send-test.html @@ -54,7 +54,7 @@ {% endfor %} {% endcall %} - {{ page_footer("Check and confirm", back_link=( + {{ page_footer("Preview", back_link=( url_for('.send_messages', service_id=current_service.id, template_id=template.id)) if not request.args['help'] else None ) }} diff --git a/tests/app/main/views/test_send.py b/tests/app/main/views/test_send.py index 4f3f431a3..44062872e 100644 --- a/tests/app/main/views/test_send.py +++ b/tests/app/main/views/test_send.py @@ -694,7 +694,7 @@ def test_send_and_check_page_renders_if_no_statistics( today = datetime.today().date().strftime('%Y-%m-%d') assert resp.status_code == 200 page = BeautifulSoup(resp.data.decode('utf-8'), 'html.parser') - assert page.h1.text.strip() == 'Check and confirm' + assert page.h1.text.strip() == 'Preview' mock_get_stats.assert_called_once_with(fake_uuid, today)