aboutsummaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2020-01-10 14:55:25 +0000
committerMatthew Somerville <matthew@mysociety.org>2020-01-10 14:55:25 +0000
commit197c942e43eed14268f684151b0f088d926cf588 (patch)
treeab37a897141031eaab1885ce3031835d44625f6d /t
parent6508407642869999c1659b5eb3ffbf71895151ea (diff)
[TfL] Hide ‘please ring’ categories in admin.
These categories display a ‘please ring’ message and so have nowhere to be resent if selected.
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'
],