Replace generated content with proper heading

Brings in https://github.com/alphagov/notifications-utils/pull/797 but
adapts the CSS so nothing changes visually
This commit is contained in:
Chris Hill-Scott
2020-10-06 10:09:25 +01:00
parent 3f338d45ca
commit 8ff9ec6d97
5 changed files with 28 additions and 19 deletions

View File

@@ -968,9 +968,16 @@ def test_preview_broadcast_message_page(
'Scotland',
]
assert normalize_spaces(
page.select_one('h2.broadcast-message-heading').text
) == (
'Emergency alert'
)
assert normalize_spaces(
page.select_one('.broadcast-message-wrapper').text
) == (
'Emergency alert '
'This is a test'
)

View File

@@ -784,6 +784,7 @@ def test_view_broadcast_template(
) == (
normalize_spaces(page.select_one('.broadcast-message-wrapper').text)
) == (
'Emergency alert '
'This is a test'
)