diff --git a/app/templates/main_nav.html b/app/templates/main_nav.html index 3c0ca9ef2..2dc588d0e 100644 --- a/app/templates/main_nav.html +++ b/app/templates/main_nav.html @@ -32,7 +32,7 @@ Notify delivers the message

{% if help == '3' %} - + Now go to your dashboard {% endif %} diff --git a/tests/app/main/views/test_send.py b/tests/app/main/views/test_send.py index e3f94686c..4ba74c179 100644 --- a/tests/app/main/views/test_send.py +++ b/tests/app/main/views/test_send.py @@ -1334,7 +1334,27 @@ def test_check_messages_back_link( ) == expected_url(service_id=fake_uuid, template_id=fake_uuid) -def test_go_to_dashboard_after_tour( +def test_shows_link_to_end_tour( + client_request, + mock_get_notification, + fake_uuid, +): + + page = client_request.get( + 'main.view_notification', + service_id=SERVICE_ONE_ID, + notification_id=fake_uuid, + help=3, + ) + + assert page.select(".banner-tour a")[0]['href'] == url_for( + 'main.go_to_dashboard_after_tour', + service_id=SERVICE_ONE_ID, + example_template_id='5407f4db-51c7-4150-8758-35412d42186a', + ) + + +def test_go_to_dashboard_after_tour_link( logged_in_client, mocker, api_user_active, diff --git a/tests/conftest.py b/tests/conftest.py index 750535c9b..2afa1880e 100644 --- a/tests/conftest.py +++ b/tests/conftest.py @@ -1678,7 +1678,7 @@ def mock_get_notification( noti['personalisation'] = {'name': 'Jo'} noti['template'] = template_json( service_id, - str(generate_uuid()), + '5407f4db-51c7-4150-8758-35412d42186a', content='hello ((name))', redact_personalisation=redact_personalisation, )