mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-09-11 10:28:41 -04:00
fix tests
This commit is contained in:
@@ -103,8 +103,8 @@ def test_empty_broadcast_dashboard(
|
|||||||
assert [
|
assert [
|
||||||
normalize_spaces(row.text) for row in page.select('tbody tr .table-empty-message')
|
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 live broadcasts at the moment',
|
||||||
|
'You do not have any broadcasts waiting for approval',
|
||||||
'You do not have any previous broadcasts',
|
'You do not have any previous broadcasts',
|
||||||
]
|
]
|
||||||
|
|
||||||
@@ -120,22 +120,23 @@ def test_broadcast_dashboard(
|
|||||||
'.broadcast_dashboard',
|
'.broadcast_dashboard',
|
||||||
service_id=SERVICE_ONE_ID,
|
service_id=SERVICE_ONE_ID,
|
||||||
)
|
)
|
||||||
|
|
||||||
assert normalize_spaces(page.select('main h2')[0].text) == (
|
assert normalize_spaces(page.select('main h2')[0].text) == (
|
||||||
'Waiting for approval'
|
'Live broadcasts'
|
||||||
)
|
)
|
||||||
assert [
|
assert [
|
||||||
normalize_spaces(row.text) for row in page.select('table')[0].select('tbody tr')
|
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) == (
|
assert normalize_spaces(page.select('main h2')[1].text) == (
|
||||||
'Live broadcasts'
|
'Waiting for approval'
|
||||||
)
|
)
|
||||||
assert [
|
assert [
|
||||||
normalize_spaces(row.text) for row in page.select('table')[1].select('tbody tr')
|
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) == (
|
assert normalize_spaces(page.select('main h2')[2].text) == (
|
||||||
|
|||||||
Reference in New Issue
Block a user