From 8dae4f771a083d85a2732bfb7500c334ee4384d6 Mon Sep 17 00:00:00 2001 From: Chris Hill-Scott Date: Tue, 13 Oct 2020 15:43:25 +0100 Subject: [PATCH] Show the content of the alert on the dashboard MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The content is as important as which areas you’ve sent the broadcast to. --- .../views/broadcast/partials/dashboard-table.html | 3 +++ tests/app/main/views/test_broadcast.py | 8 ++++---- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/app/templates/views/broadcast/partials/dashboard-table.html b/app/templates/views/broadcast/partials/dashboard-table.html index ea4bbb586..fd7a6eccd 100644 --- a/app/templates/views/broadcast/partials/dashboard-table.html +++ b/app/templates/views/broadcast/partials/dashboard-table.html @@ -15,6 +15,9 @@ {% call row_heading() %}
{{ item.template_name }} + + {{ item.content }} + To {{ item.initial_area_names|formatted_list(before_each='', after_each='') }} diff --git a/tests/app/main/views/test_broadcast.py b/tests/app/main/views/test_broadcast.py index 141c9f85f..fc1c9d285 100644 --- a/tests/app/main/views/test_broadcast.py +++ b/tests/app/main/views/test_broadcast.py @@ -302,7 +302,7 @@ def test_broadcast_dashboard( assert [ normalize_spaces(row.text) for row in page.select('table')[0].select('tbody tr') ] == [ - 'Example template To England and Scotland Live until tomorrow at 2:20am', + 'Example template This is a test To England and Scotland Live until tomorrow at 2:20am', ] assert normalize_spaces(page.select('main h2')[1].text) == ( @@ -311,7 +311,7 @@ def test_broadcast_dashboard( assert [ normalize_spaces(row.text) for row in page.select('table')[1].select('tbody tr') ] == [ - 'Example template To England and Scotland Prepared by Test User', + 'Example template This is a test To England and Scotland Prepared by Test User', ] @@ -361,8 +361,8 @@ def test_previous_broadcasts_page( assert [ normalize_spaces(row.text) for row in page.select('table')[0].select('tbody tr') ] == [ - 'Example template To England and Scotland Stopped 10 February at 2:20am', - 'Example template To England and Scotland Finished yesterday at 8:20pm', + 'Example template This is a test To England and Scotland Stopped 10 February at 2:20am', + 'Example template This is a test To England and Scotland Finished yesterday at 8:20pm', ]