-
-
Notifications
You must be signed in to change notification settings - Fork 236
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
fixup! fixup! [Bucks] Add email alternative to templates
- Loading branch information
1 parent
c6b1cc4
commit 54a1366
Showing
2 changed files
with
5 additions
and
9 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -91,15 +91,11 @@ subtest "test report creation with initial auto-update and alternative email tex | |
my $counciluser = $mech->create_user_ok('[email protected]', 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("<label for='email_detail'>Template email response:</label> | ||
<textarea class='form-control' name='email_detail' id='email_detail' cols=60 rows=10 readonly>Thanks for your report. | ||
This is the email alternative.</textarea></li>", "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"); | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters