fix tests

This commit is contained in:
Leo Hemsted
2020-07-22 15:15:23 +01:00
parent aed9bc3695
commit 8f0c6e43c1

View File

@@ -103,8 +103,8 @@ def test_empty_broadcast_dashboard(
assert [
normalize_spaces(row.text) for row in page.select('tbody tr .table-empty-message')
] == [
'You do not have any broadcasts waiting for approval',
'You do not have any live broadcasts at the moment',
'You do not have any broadcasts waiting for approval',
'You do not have any previous broadcasts',
]
@@ -120,22 +120,23 @@ def test_broadcast_dashboard(
'.broadcast_dashboard',
service_id=SERVICE_ONE_ID,
)
assert normalize_spaces(page.select('main h2')[0].text) == (
'Waiting for approval'
'Live broadcasts'
)
assert [
normalize_spaces(row.text) for row in page.select('table')[0].select('tbody tr')
] == [
'Example template To England and Scotland Prepared by Test User',
'Example template To England and Scotland Live until tomorrow at 2:20am',
]
assert normalize_spaces(page.select('main h2')[1].text) == (
'Live broadcasts'
'Waiting for approval'
)
assert [
normalize_spaces(row.text) for row in page.select('table')[1].select('tbody tr')
] == [
'Example template To England and Scotland Live until tomorrow at 2:20am',
'Example template To England and Scotland Prepared by Test User',
]
assert normalize_spaces(page.select('main h2')[2].text) == (