diff --git a/app/main/views/add_service.py b/app/main/views/add_service.py index 3b9f563e2..e5442e7d9 100644 --- a/app/main/views/add_service.py +++ b/app/main/views/add_service.py @@ -87,6 +87,7 @@ def add_service(): heading=heading, default_organisation_type=default_organisation_type, ) + return render_template( 'views/add-service.html', form=form, diff --git a/app/templates/views/add-service-local.html b/app/templates/views/add-service-local.html index 7db2fd733..1ce590ec6 100644 --- a/app/templates/views/add-service-local.html +++ b/app/templates/views/add-service-local.html @@ -17,13 +17,13 @@ {{ page_header('About your service') }}
Give your service a name that tells users what your messages are about, as well as who they’re from. For example:
-You should only use an acronym if your users are already familiar with it.
- + {% call form_wrapper() %} {{ textbox(form.name, hint="You can change this later") }} diff --git a/tests/app/main/views/test_service_settings.py b/tests/app/main/views/test_service_settings.py index 028ef989f..3e96b60ab 100644 --- a/tests/app/main/views/test_service_settings.py +++ b/tests/app/main/views/test_service_settings.py @@ -383,6 +383,26 @@ def test_should_show_service_name( app.service_api_client.get_service.assert_called_with(SERVICE_ONE_ID) +def test_should_show_different_change_service_name_page_for_local_services( + client_request, + service_one, + mocker, +): + mocker.patch( + 'app.organisations_client.get_organisation_by_domain', + return_value=organisation_json(organisation_type='local'), + ) + service_one['organisation_type'] = 'local' + page = client_request.get('main.service_name_change', service_id=SERVICE_ONE_ID) + assert page.find('h1').text == 'Change your service name' + assert page.find('input', attrs={"type": "text"})['value'] == 'service one' + assert page.select_one('main .govuk-body').text.strip() == ( + 'Your service name should tell users what the message is about as well as who it’s from. For example:' + ) + + app.service_api_client.get_service.assert_called_with(SERVICE_ONE_ID) + + def test_should_show_service_name_with_no_prefixing( client_request, service_one,