Merge pull request #3191 from alphagov/update-trial-mode-content

Update trial mode content
This commit is contained in:
karlchillmaid
2019-11-22 14:59:47 +00:00
committed by GitHub
3 changed files with 13 additions and 12 deletions
+5 -3
View File
@@ -252,10 +252,12 @@
{% if current_service.trial_mode %} {% if current_service.trial_mode %}
<h2 class="heading-medium top-gutter-0">Your service is in trial mode</h2> <h2 class="heading-medium top-gutter-0">Your service is in trial mode</h2>
<p>You can only:</p>
<ul class='list list-bullet'> <ul class='list list-bullet'>
<li>you can only send messages to yourself</li> <li>send {{ current_service.message_limit }} text messages and emails per day</li>
<li>you can add people to your team, then you can send messages to them too</li> <li>send messages to yourself and other people in your team</li>
<li>you can only send {{ current_service.message_limit }} messages per day</li> <li>create letter templates, but not send them</li>
</ul> </ul>
<p> <p>
+7 -7
View File
@@ -8,24 +8,24 @@
<h1 class="heading-large">Trial mode</h1> <h1 class="heading-large">Trial mode</h1>
<p>When you set up a new service it will start in trial mode. This lets you try out GOV.UK Notify, with a few restrictions.</p> <p>When you add a new service it will start in trial mode. This lets you try out GOV.UK Notify, with a few restrictions.</p>
<p>A service in trial mode can only:</p> <p>While your service is in trial mode you can only:</p>
<ul class="list list-bullet"> <ul class="list list-bullet">
<li>send 50 text messages and emails per day</li> <li>send 50 text messages and emails per day</li>
<li>send messages to you and other people in your team</li> <li>send messages to yourself and other people in your team</li>
<li>create letter templates, but not send them</li> <li>create letter templates, but not send them</li>
</ul> </ul>
<p> <p>
To remove these restrictions, you can To remove these restrictions,
{% if current_service and current_service.trial_mode %} {% if current_service and current_service.trial_mode %}
<a href="{{ url_for('.request_to_go_live', service_id=current_service.id) }}">send us a request to go live</a>. you can <a href="{{ url_for('.request_to_go_live', service_id=current_service.id) }}">request to go live</a>.
{% else %} {% else %}
send us a request to go live. go to the Settings page and request to go live.
{% endif %} {% endif %}
</p> </p>
<p>Before you can request to go live, you must:</p> <p>Before you request to go live, you must:</p>
<ul class="list list-bullet"> <ul class="list list-bullet">
<li>accept our data sharing and financial agreement</li> <li>accept our data sharing and financial agreement</li>
<li>accept our terms of use</li> <li>accept our terms of use</li>
@@ -446,9 +446,8 @@ def test_show_restricted_service(
assert page.find('h1').text == 'Settings' assert page.find('h1').text == 'Settings'
assert page.find_all('h2')[0].text == 'Your service is in trial mode' assert page.find_all('h2')[0].text == 'Your service is in trial mode'
request_to_live = page.select_one('main p') request_to_live = page.select('main p')[1]
request_to_live_link = request_to_live.select_one('a') request_to_live_link = request_to_live.select_one('a')
assert normalize_spaces(request_to_live.text) == expected_text assert normalize_spaces(request_to_live.text) == expected_text
if expected_link: if expected_link: