Allow setting provider for any channel

Previously we could only select a provider when using the test
channel, but this is also required for others channels when we
do tests on the production network with individual MNOs.

In order to reduce duplication and improve consistency, I've reused
the new broadcast_service_name_tag macro to show the setting.
This commit is contained in:
Ben Thorner
2021-05-20 13:27:22 +01:00
parent 5de1c4f6ca
commit c5196fbf07
7 changed files with 163 additions and 96 deletions

View File

@@ -318,14 +318,14 @@ def test_some_broadcast_tour_pages_show_service_name(
'severe',
'all',
'.navigation-service-type.navigation-service-type--live',
'service one Live Switch service',
'Live',
'service one Live (all networks) Switch service',
'Live (all networks)',
),
(
False,
'test',
'all',
'.navigation-service-type.navigation-service-type--live',
'.navigation-service-type.navigation-service-type--test',
'service one Test (all networks) Switch service',
'Test (all networks)',
),
@@ -333,7 +333,7 @@ def test_some_broadcast_tour_pages_show_service_name(
False,
'test',
'vodafone',
'.navigation-service-type.navigation-service-type--live',
'.navigation-service-type.navigation-service-type--test',
'service one Test (Vodafone) Switch service',
'Test (Vodafone)',
),
@@ -342,12 +342,28 @@ def test_some_broadcast_tour_pages_show_service_name(
'government',
'all',
'.navigation-service-type.navigation-service-type--government',
'service one Government Switch service',
'Government',
'service one Government (all networks) Switch service',
'Government (all networks)',
),
(
False,
'government',
'vodafone',
'.navigation-service-type.navigation-service-type--government',
'service one Government (Vodafone) Switch service',
'Government (Vodafone)',
),
(
False,
'severe',
'vodafone',
'.navigation-service-type.navigation-service-type--live',
'service one Live (Vodafone) Switch service',
'Live (Vodafone)',
),
)
)
def test_broadcast_service_shows_live_or_training(
def test_broadcast_service_shows_channel_settings(
client_request,
service_one,
mock_get_no_broadcast_messages,