Show different page for local org users when adding new service

This commit is contained in:
Pea Tyczynska
2020-07-01 11:49:11 +01:00
parent a381c6d37d
commit d0dd6218f7
2 changed files with 8 additions and 1 deletions

View File

@@ -80,6 +80,13 @@ def add_service():
template_id=example_sms_template['data']['id']
))
else:
if default_organisation_type == 'local':
return render_template(
'views/add-service-local.html',
form=form,
heading=heading,
default_organisation_type=default_organisation_type,
)
return render_template(
'views/add-service.html',
form=form,

View File

@@ -88,7 +88,7 @@ def test_show_different_page_if_user_org_type_is_local(
assert page.select_one('h1').text.strip() == 'About your service'
assert page.select_one('input[name=name]')['value'] == ''
assert page.select_one('main .govuk-body').text.strip() == (
'Give your service a name that tells users what your'
'Give your service a name that tells users what your '
'messages are about, as well as who theyre from. For example:')