mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-02 20:59:39 -04:00
Be explicit that ‘test’ goes out on real networks
Adding ‘all networks’ whenever we mention the using the test channel without a restriction to a single network should help reinforce that this sends real alerts.
This commit is contained in:
@@ -436,7 +436,7 @@
|
||||
{% else %}
|
||||
{% if current_service.live and current_service.broadcast_channel == "government" %}Government{% endif %}
|
||||
{% if current_service.live and current_service.broadcast_channel == "severe" %}Live{% endif %}
|
||||
{% if current_service.live and current_service.broadcast_channel == "test" %}Test {% if current_service.allowed_broadcast_provider != "all" %}({{ current_service.allowed_broadcast_provider|format_mobile_network }}){% else %}(All networks){% endif %}{%endif%}
|
||||
{% if current_service.live and current_service.broadcast_channel == "test" %}Test {% if current_service.allowed_broadcast_provider != "all" %}({{ current_service.allowed_broadcast_provider|format_mobile_network }}){% else %}(all networks){% endif %}{%endif%}
|
||||
{% if not current_service.live%}Training {% endif%}
|
||||
{% endif %}
|
||||
{% endcall %}
|
||||
|
||||
@@ -33,6 +33,9 @@
|
||||
{% if form.account_type.provider_restriction != 'all' %}
|
||||
({{ form.account_type.provider_restriction|format_mobile_network }})
|
||||
{% endif %}
|
||||
{% if form.account_type.broadcast_channel == 'test' and form.account_type.provider_restriction == 'all'%}
|
||||
(all networks)
|
||||
{% endif %}
|
||||
</span>
|
||||
</p>
|
||||
<p class="govuk-body">
|
||||
|
||||
@@ -26,7 +26,9 @@
|
||||
<span class="navigation-service-type navigation-service-type--live">Live
|
||||
{% elif current_service.broadcast_channel == 'test' %}
|
||||
<span class="navigation-service-type navigation-service-type--live">{{ current_service.broadcast_channel|title }}
|
||||
{% if current_service.allowed_broadcast_provider != "all" %}
|
||||
{% if current_service.allowed_broadcast_provider == "all" %}
|
||||
(all networks)
|
||||
{% else %}
|
||||
({{ current_service.allowed_broadcast_provider }})
|
||||
{% endif %}
|
||||
{% else %}
|
||||
|
||||
@@ -291,8 +291,16 @@ def test_broadcast_tour_page_4_shows_service_name(
|
||||
(
|
||||
(
|
||||
True,
|
||||
"all",
|
||||
None,
|
||||
'all',
|
||||
'.navigation-service-type.navigation-service-type--training',
|
||||
'service one Training Switch service',
|
||||
'Training',
|
||||
),
|
||||
(
|
||||
True,
|
||||
'test',
|
||||
'all',
|
||||
'.navigation-service-type.navigation-service-type--training',
|
||||
'service one Training Switch service',
|
||||
'Training',
|
||||
@@ -300,12 +308,19 @@ def test_broadcast_tour_page_4_shows_service_name(
|
||||
(
|
||||
False,
|
||||
'severe',
|
||||
"all",
|
||||
'all',
|
||||
'.navigation-service-type.navigation-service-type--live',
|
||||
'service one Live Switch service',
|
||||
'Live',
|
||||
),
|
||||
|
||||
(
|
||||
False,
|
||||
'test',
|
||||
'all',
|
||||
'.navigation-service-type.navigation-service-type--live',
|
||||
'service one Test (all networks) Switch service',
|
||||
'Test (all networks)',
|
||||
),
|
||||
(
|
||||
False,
|
||||
'test',
|
||||
@@ -314,14 +329,6 @@ def test_broadcast_tour_page_4_shows_service_name(
|
||||
'service one Test (vodafone) Switch service',
|
||||
'Test (vodafone)',
|
||||
),
|
||||
(
|
||||
False,
|
||||
'test',
|
||||
'all',
|
||||
'.navigation-service-type.navigation-service-type--live',
|
||||
'service one Test Switch service',
|
||||
'Test',
|
||||
),
|
||||
(
|
||||
False,
|
||||
'government',
|
||||
|
||||
@@ -203,7 +203,7 @@ def test_platform_admin_sees_only_relevant_settings_for_broadcast_service(
|
||||
(True, "training", "test", "all", "Training"),
|
||||
(True, "live", "test", "ee", "Test (EE)"),
|
||||
(True, "live", "test", "three", "Test (Three)"),
|
||||
(True, "live", "test", "all", "Test (All networks)"),
|
||||
(True, "live", "test", "all", "Test (all networks)"),
|
||||
(True, "live", "severe", "all", "Live"),
|
||||
]
|
||||
)
|
||||
@@ -5777,7 +5777,7 @@ def test_post_service_set_broadcast_network_makes_you_choose(
|
||||
'this service.',
|
||||
]),
|
||||
('live-test', [
|
||||
'Test',
|
||||
'Test (all networks)',
|
||||
'Members of the public who have switched on the test '
|
||||
'channel on their phones will receive alerts sent from '
|
||||
'this service.',
|
||||
|
||||
Reference in New Issue
Block a user