aboutsummaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2020-04-07 14:35:12 +0100
committerMatthew Somerville <matthew@mysociety.org>2020-04-07 14:35:12 +0100
commit9b650ace02a612db28d0100d93dd64317a128953 (patch)
tree100178c29dccbafc1b546a93a9f47bd9b55a2d21 /t
parent6743dfdb62c3cfc87ad39678b93179828b8f0826 (diff)
parente829a7bc83c886de76cd3f03ed6d65f067c45ae4 (diff)
Merge branch 'bexley-confirm-p1-email'
Diffstat (limited to 't')
-rw-r--r--t/cobrand/bexley.t10
1 files changed, 7 insertions, 3 deletions
diff --git a/t/cobrand/bexley.t b/t/cobrand/bexley.t
index 55ee1278e..352e61389 100644
--- a/t/cobrand/bexley.t
+++ b/t/cobrand/bexley.t
@@ -34,13 +34,14 @@ my $mech = FixMyStreet::TestMech->new;
my $body = $mech->create_body_ok(2494, 'London Borough of Bexley', {
send_method => 'Open311', api_key => 'key', 'endpoint' => 'e', 'jurisdiction' => 'j' });
-$mech->create_contact_ok(body_id => $body->id, category => 'Abandoned and untaxed vehicles', email => "ABAN");
+$mech->create_contact_ok(body_id => $body->id, category => 'Abandoned and untaxed vehicles', email => "ConfirmABAN");
$mech->create_contact_ok(body_id => $body->id, category => 'Lamp post', email => "StreetLightingLAMP");
$mech->create_contact_ok(body_id => $body->id, category => 'Gulley covers', email => "GULL");
$mech->create_contact_ok(body_id => $body->id, category => 'Damaged road', email => "ROAD");
$mech->create_contact_ok(body_id => $body->id, category => 'Flooding in the road', email => "ConfirmFLOD");
$mech->create_contact_ok(body_id => $body->id, category => 'Flytipping', email => "UniformFLY");
$mech->create_contact_ok(body_id => $body->id, category => 'Dead animal', email => "ANIM");
+$mech->create_contact_ok(body_id => $body->id, category => 'Street cleaning and litter', email => "STREET");
my $category = $mech->create_contact_ok(body_id => $body->id, category => 'Something dangerous', email => "DANG");
$category->set_extra_metadata(group => 'Danger things');
$category->update;
@@ -51,6 +52,7 @@ FixMyStreet::override_config {
STAGING_FLAGS => { send_reports => 1, skip_checks => 0 },
COBRAND_FEATURES => { open311_email => { bexley => {
p1 => 'p1@bexley',
+ p1confirm => 'p1confirm@bexley',
lighting => 'thirdparty@notbexley.example.com,another@notbexley.example.com',
outofhours => 'outofhours@bexley,ooh2@bexley',
flooding => 'flooding@bexley',
@@ -71,15 +73,17 @@ FixMyStreet::override_config {
my $report;
foreach my $test (
- { category => 'Abandoned and untaxed vehicles', email => ['p1'], code => 'ABAN',
+ { category => 'Abandoned and untaxed vehicles', email => ['p1confirm'], code => 'ConfirmABAN',
extra => { 'name' => 'burnt', description => 'Was it burnt?', 'value' => 'Yes' } },
- { category => 'Abandoned and untaxed vehicles', code => 'ABAN',
+ { category => 'Abandoned and untaxed vehicles', code => 'ConfirmABAN',
extra => { 'name' => 'burnt', description => 'Was it burnt?', 'value' => 'No' } },
{ category => 'Dead animal', email => ['p1', 'outofhours', 'ooh2'], code => 'ANIM' },
{ category => 'Something dangerous', email => ['p1', 'outofhours', 'ooh2'], code => 'DANG',
extra => { 'name' => 'dangerous', description => 'Was it dangerous?', 'value' => 'Yes' } },
{ category => 'Something dangerous', code => 'DANG',
extra => { 'name' => 'dangerous', description => 'Was it dangerous?', 'value' => 'No' } },
+ { category => 'Street cleaning and litter', email => ['p1', 'outofhours', 'ooh2'], code => 'STREET',
+ extra => { 'name' => 'reportType', description => 'Type of report', 'value' => 'Oil spillage' } },
{ category => 'Gulley covers', email => ['p1', 'outofhours', 'ooh2'], code => 'GULL',
extra => { 'name' => 'reportType', description => 'Type of report', 'value' => 'Cover missing' } },
{ category => 'Gulley covers', code => 'GULL',