diff --git a/app/main/views/index.py b/app/main/views/index.py index b83ed13b5..1ca93b295 100644 --- a/app/main/views/index.py +++ b/app/main/views/index.py @@ -123,7 +123,7 @@ def email_template(): template = { 'template_type': 'email', - 'subject': 'foo', + 'subject': 'Email branding preview', 'content': ( 'Lorem Ipsum is simply dummy text of the printing and typesetting ' 'industry.\n\nLorem Ipsum has been the industry’s standard dummy ' diff --git a/tests/app/main/views/test_index.py b/tests/app/main/views/test_index.py index 6b4a2e74e..4067452bc 100644 --- a/tests/app/main/views/test_index.py +++ b/tests/app/main/views/test_index.py @@ -261,11 +261,12 @@ def test_email_branding_preview( extra_args, email_branding_retrieved, ): - client_request.get( + page = client_request.get( 'main.email_template', _test_page_title=False, **extra_args ) + assert page.title.text == 'Email branding preview' assert mock_get_email_branding.called is email_branding_retrieved