aboutsummaryrefslogtreecommitdiffstats
path: root/t/cobrand/bexley.t
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2019-07-15 10:07:34 +0100
committerMatthew Somerville <matthew@mysociety.org>2019-07-15 10:07:34 +0100
commita84edcaa42fc46f238d370bc453a242c83db6221 (patch)
treebd09d0d38d8006a4282b7b6c231abad491da971c /t/cobrand/bexley.t
parent63d6df88f1fc7d3f07e980e5a18b32786bf30989 (diff)
parent056118883562df7f7cf4d917ffbac0a6f1f1faef (diff)
Merge branch 'issues/commercial/1458-dashboard-groups'
Diffstat (limited to 't/cobrand/bexley.t')
-rw-r--r--t/cobrand/bexley.t10
1 files changed, 9 insertions, 1 deletions
diff --git a/t/cobrand/bexley.t b/t/cobrand/bexley.t
index f72b7e7c4..f227e7450 100644
--- a/t/cobrand/bexley.t
+++ b/t/cobrand/bexley.t
@@ -33,7 +33,9 @@ $mech->create_contact_ok(body_id => $body->id, category => 'Abandoned and untaxe
$mech->create_contact_ok(body_id => $body->id, category => 'Lamp post', email => "LAMP");
$mech->create_contact_ok(body_id => $body->id, category => 'Parks and open spaces', email => "PARK");
$mech->create_contact_ok(body_id => $body->id, category => 'Dead animal', email => "ANIM");
-$mech->create_contact_ok(body_id => $body->id, category => 'Something dangerous', email => "DANG");
+my $category = $mech->create_contact_ok(body_id => $body->id, category => 'Something dangerous', email => "DANG");
+$category->set_extra_metadata(group => 'Danger things');
+$category->update;
FixMyStreet::override_config {
ALLOWED_COBRANDS => [ 'bexley' ],
@@ -119,6 +121,12 @@ FixMyStreet::override_config {
$mech->content_lacks('Resend report');
};
+ subtest 'extra CSV column present' => sub {
+ $mech->get_ok('/dashboard?export=1');
+ $mech->content_contains(',Category,Subcategory,');
+ $mech->content_contains('"Danger things","Something dangerous"');
+ };
+
};
subtest 'nearest road returns correct road' => sub {