mirror of
https://github.com/GSA/notifications-admin.git
synced 2026-08-11 09:28:27 -04:00
Give email preview page a sensible page title
It’s derived from the subject line of the email now as of https://github.com/alphagov/notifications-utils/pull/793
This commit is contained in:
@@ -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 '
|
||||
|
||||
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user