- Tell us how you plan to use Notify. When we receive your request we’ll make your service live within one working day.
-
-
-
-
{% endblock %}
diff --git a/tests/app/main/views/test_service_settings.py b/tests/app/main/views/test_service_settings.py
index 91dc11dbf..0a7924353 100644
--- a/tests/app/main/views/test_service_settings.py
+++ b/tests/app/main/views/test_service_settings.py
@@ -691,23 +691,25 @@ def test_should_show_request_to_go_live(
)
assert page.h1.text == 'Request to go live'
for channel, label in (
- ('email', 'Emails'),
- ('sms', 'Text messages'),
- ('letter', 'Letters'),
+ (
+ 'email',
+ 'How many emails do you expect to send in the next year? For example, 1,000,000'
+ ),
+ (
+ 'sms',
+ 'How many text messages do you expect to send in the next year? For example, 500,000'
+ ),
+ (
+ 'letter',
+ 'How many letters do you expect to send in the next year? For example, 5,000'
+ ),
):
assert normalize_spaces(
- page.select_one('label[for=channel_{}]'.format(channel)).text
- ) == label
- for feature, label in (
- ('one_off', 'One at a time'),
- ('upload', 'Upload a spreadsheet of recipients'),
- ('api', 'Integrate with the GOV.UK Notify API'),
- ):
- assert normalize_spaces(
- page.select_one('label[for=method_{}]'.format(feature)).text
+ page.select_one('label[for=volume_{}]'.format(channel)).text
) == label
+@freeze_time("2012-12-21")
def test_should_redirect_after_request_to_go_live(
client_request,
mocker,
@@ -723,14 +725,10 @@ def test_should_redirect_after_request_to_go_live(
'main.submit_request_to_go_live',
service_id=SERVICE_ONE_ID,
_data={
- 'channel_email': 'y',
- 'channel_sms': 'y',
- 'start_date': '01/01/2017',
- 'start_volume': '100,000',
- 'peak_volume': '2,000,000',
- 'method_one_off': 'y',
- 'method_upload': 'y',
- 'method_api': 'y',
+ 'volume_email': '111',
+ 'volume_sms': '222',
+ 'volume_letter': '333',
+ 'research_consent': 'yes',
},
_follow_redirects=True
)
@@ -741,16 +739,21 @@ def test_should_redirect_after_request_to_go_live(
user_name=active_user_with_permissions.name,
user_email=active_user_with_permissions.email_address
)
-
- returned_message = mock_post.call_args[1]['message']
- assert 'Service: service one' in returned_message
- assert 'Organisation type: central' in returned_message
- assert 'Agreement signed: Can’t tell' in returned_message
- assert 'Channel: email and text messages' in returned_message
- assert 'Start date: 01/01/2017' in returned_message
- assert 'Start volume: 100,000' in returned_message
- assert 'Peak volume: 2,000,000' in returned_message
- assert 'Features: one off, file upload and API' in returned_message
+ assert mock_post.call_args[1]['message'] == (
+ 'Service: service one\n'
+ 'http://localhost/services/{}\n'
+ '\n'
+ '---\n'
+ 'Organisation type: Central\n'
+ 'Agreement signed: Can’t tell (domain is user.gov.uk)\n'
+ 'Emails in next year: 111\n'
+ 'Text messages in next year: 222\n'
+ 'Letters in next year: 333\n'
+ 'Consent to research: Yes\n'
+ '\n'
+ '---\n'
+ '{}, None, service one, Test User, test@user.gov.uk, -, 21/12/2012, 222, 111, 333'
+ ).format(SERVICE_ONE_ID, SERVICE_ONE_ID)
assert normalize_spaces(page.select_one('.banner-default').text) == (
'Thanks for your request to go live. We’ll get back to you within one working day.'