aboutsummaryrefslogtreecommitdiffstats
path: root/t/cobrand/bexley.t
diff options
context:
space:
mode:
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 {