From 59e40d4c3c025ee5c25ba61dd18903d36110392c Mon Sep 17 00:00:00 2001 From: Tom Byers Date: Tue, 31 Dec 2019 10:29:56 +0000 Subject: [PATCH] Make dashboard test more specific It was picking up the 'Get started' text from the new link in the footer. --- tests/app/main/views/test_dashboard.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tests/app/main/views/test_dashboard.py b/tests/app/main/views/test_dashboard.py index 65131cc6d..7d0ebc05c 100644 --- a/tests/app/main/views/test_dashboard.py +++ b/tests/app/main/views/test_dashboard.py @@ -181,7 +181,7 @@ def test_get_started_is_hidden_once_templates_exist( ) mock_get_service_templates.assert_called_once_with(SERVICE_ONE_ID) - assert 'Get started' not in page.text + assert not page.find('h2', string='Get started') def test_inbound_messages_not_visible_to_service_without_permissions(