aboutsummaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2020-01-13 10:25:24 +0000
committerMatthew Somerville <matthew@mysociety.org>2020-01-13 10:25:24 +0000
commit1750fb706ff9a88b3d3ddee78333ecb5f8d66cef (patch)
treed1647592e504c5204e18573eb6e076ff8add385d /t
parenteea513cc0ffc4f494f5adec0b8032f661a75a789 (diff)
parent197c942e43eed14268f684151b0f088d926cf588 (diff)
Merge branch 'tfl-no-resend'
Diffstat (limited to 't')
-rw-r--r--t/cobrand/tfl.t13
1 files changed, 13 insertions, 0 deletions
diff --git a/t/cobrand/tfl.t b/t/cobrand/tfl.t
index e1990c946..5425bc0f7 100644
--- a/t/cobrand/tfl.t
+++ b/t/cobrand/tfl.t
@@ -96,6 +96,12 @@ $contact2->set_extra_fields({
]
});
$contact2->update;
+my $contact2b = $mech->create_contact_ok(
+ body_id => $body->id,
+ category => 'Timings',
+ email => 'trafficlighttimings@example.com',
+);
+
my $contact3 = $mech->create_contact_ok(
body_id => $body->id,
category => 'Pothole',
@@ -397,6 +403,7 @@ subtest "change category, report resent to new location" => sub {
$mech->log_in_ok( $superuser->email );
$mech->get_ok("/admin/report_edit/$id");
+ $mech->content_lacks('Timings');
$mech->submit_form_ok({ with_fields => { category => 'Traffic lights' } });
FixMyStreet::Script::Reports::send();
@@ -707,6 +714,7 @@ for my $test (
'Flytipping (Bromley)', # In the 'Street cleaning' group
'Grit bins',
'Pothole',
+ 'Timings',
'Traffic lights',
'Trees'
],
@@ -722,6 +730,7 @@ for my $test (
'Flooding (Bromley)',
'Flytipping (Bromley)', # In the 'Street cleaning' group
'Grit bins',
+ 'Timings',
'Traffic lights',
'Trees'
],
@@ -736,6 +745,7 @@ for my $test (
'Flooding',
'Grit bins',
'Pothole',
+ 'Timings',
'Traffic lights',
'Trees'
],
@@ -750,6 +760,7 @@ for my $test (
'Flooding',
'Grit bins',
'Pothole',
+ 'Timings',
'Traffic lights',
'Trees'
],
@@ -766,6 +777,7 @@ for my $test (
'Flytipping (Bromley)',
'Grit bins',
'Pothole',
+ 'Timings',
'Traffic lights',
'Trees'
],
@@ -781,6 +793,7 @@ for my $test (
'Flooding (Bromley)',
'Flytipping (Bromley)',
'Grit bins',
+ 'Timings',
'Traffic lights',
'Trees'
],