Fix HTML showing on old job page

Using the `Markup` class tells Jinja that the content is safe to render
without any escaping.
This commit is contained in:
Chris Hill-Scott
2021-06-03 09:39:31 +01:00
parent 6869b299b3
commit a149c6a853
2 changed files with 25 additions and 8 deletions

View File

@@ -283,6 +283,15 @@ def test_should_show_old_job(
assert not page.select('p.hint')
assert not page.select('a[download]')
assert page.select_one('tbody').text.strip() == expected_message
assert [
normalize_spaces(column.text)
for column in page.select('main .govuk-grid-column-one-quarter')
] == [
'1 total text messages',
'1 sending text message',
'0 delivered text messages',
'0 failed text messages',
]
@freeze_time("2016-01-01 11:09:00.061258")