aboutsummaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2019-12-11 11:04:43 +0000
committerMatthew Somerville <matthew@mysociety.org>2019-12-11 11:32:21 +0000
commitd31201ac8cbc724ecb04d1a4744186876d2d5f5b (patch)
treea7e8b7c55f61fdc4ac7f248fa71b05b6f3e588fa /t
parent6ea3d7f26b8b54ed52e0a90f1e4d7976081c4e3f (diff)
[UK] Fix links in submit email.
For an email to somewhere for which the report has a body handler, we want to use that cobrand's domain for the link - we already are using their cobrand for the email template, after all.
Diffstat (limited to 't')
-rw-r--r--t/cobrand/tfl.t1
1 files changed, 1 insertions, 0 deletions
diff --git a/t/cobrand/tfl.t b/t/cobrand/tfl.t
index 287a8c98e..86b172f5a 100644
--- a/t/cobrand/tfl.t
+++ b/t/cobrand/tfl.t
@@ -422,6 +422,7 @@ for my $test (
FixMyStreet::Script::Reports::send();
my @email = $mech->get_email;
is $email[0]->header('To'), $to, 'Sent to correct address';
+ like $mech->get_text_body_from_email($email[0]), qr/https:\/\/street.tfl/, 'Correct link';
$mech->clear_emails_ok;
FixMyStreet::DB->resultset("Problem")->find({ title => 'Test Report for borough team'})->delete;
};