From 8f0c6e43c119d25e1a249c342f04ec312d9ad6bd Mon Sep 17 00:00:00 2001 From: Leo Hemsted Date: Wed, 22 Jul 2020 15:15:23 +0100 Subject: [PATCH] fix tests --- tests/app/main/views/test_broadcast.py | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/tests/app/main/views/test_broadcast.py b/tests/app/main/views/test_broadcast.py index a99b6193d..1adce2a6a 100644 --- a/tests/app/main/views/test_broadcast.py +++ b/tests/app/main/views/test_broadcast.py @@ -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) == (