mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-04-28 05:01:06 -04:00
Show the content of the alert on the dashboard
The content is as important as which areas you’ve sent the broadcast to.
This commit is contained in:
@@ -15,6 +15,9 @@
|
||||
{% call row_heading() %}
|
||||
<div class="file-list">
|
||||
<a class="file-list-filename-large govuk-link govuk-link--no-visited-state" href="{{ url_for('.view_broadcast_message', service_id=current_service.id, broadcast_message_id=item.id) }}">{{ item.template_name }}</a>
|
||||
<span class="file-list-hint-large">
|
||||
{{ item.content }}
|
||||
</span>
|
||||
<span class="file-list-hint-large">
|
||||
To {{ item.initial_area_names|formatted_list(before_each='', after_each='') }}
|
||||
</span>
|
||||
|
||||
@@ -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',
|
||||
]
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user