diff --git a/t/app/controller/report_new_update.t b/t/app/controller/report_new_update.t index a5df2b2f915..9ce580206d0 100644 --- a/t/app/controller/report_new_update.t +++ b/t/app/controller/report_new_update.t @@ -91,15 +91,11 @@ subtest "test report creation with initial auto-update and alternative email tex my $counciluser = $mech->create_user_ok('counciluser@example.com', name => 'Council User', from_body => $body, is_superuser => 1); $mech->log_in_ok($counciluser->email); $mech->get_ok("/admin/report_edit/$report_id"); - $mech->content_contains("Template email response: Thanks for your report. - -This is the email alternative.", "Extra template email text displayed"); + $mech->content_contains("This is the email alternative.", "Extra template email text displayed"); my $update_id = $report->comments->first->id; $mech->get_ok("/admin/update_edit/$update_id"); - $mech->content_contains(" -", "Extra template email text displayed"); + $mech->content_contains("Template email response:", "Template email input present"); + $mech->content_contains("This is the email alternative.", "Template email input populated"); $report->comments->first->delete; $update_id = $mech->create_comment_for_problem($report, $comment_user, 'User', 'Non-template update', 0, 'confirmed', 'confirmed')->id; $mech->get_ok("/admin/report_edit/$report_id"); diff --git a/templates/web/base/admin/list_updates.html b/templates/web/base/admin/list_updates.html index 442fe932fd0..def3500082f 100644 --- a/templates/web/base/admin/list_updates.html +++ b/templates/web/base/admin/list_updates.html @@ -41,8 +41,8 @@

[% loc('Updates') %]

[% update.text | html %] [% IF update.private_email_text %] -
--------------------------- -
Template email response: [% update.private_email_text | html %] +
+ [% loc('Template email response:') %] [% update.private_email_text | html %] [% END %]