aboutsummaryrefslogtreecommitdiffstats
path: root/t/cobrand
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2019-05-29 13:58:44 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2019-05-30 09:56:26 +0100
commitff0715db2d67bbf043a851ce7d9bed7e857c2db2 (patch)
treec09d569aec0efbcc18d27b1aec4dc453df251e68 /t/cobrand
parentf5b647053043afe0de18db327ea9ae4b6665daf2 (diff)
[Buckinghamshire] Include Car parking category.
Diffstat (limited to 't/cobrand')
-rw-r--r--t/cobrand/bucks.t2
1 files changed, 2 insertions, 0 deletions
diff --git a/t/cobrand/bucks.t b/t/cobrand/bucks.t
index 892bf617d..6732eb29c 100644
--- a/t/cobrand/bucks.t
+++ b/t/cobrand/bucks.t
@@ -13,6 +13,7 @@ $mech->create_contact_ok(body_id => $body->id, category => 'Potholes', email =>
$mech->create_contact_ok(body_id => $body->id, category => 'Blocked drain', email => "DRA");
my $district = $mech->create_body_ok(2257, 'Chiltern');
+$mech->create_contact_ok(body_id => $district->id, category => 'Car Parks', email => "car\@chiltern");
$mech->create_contact_ok(body_id => $district->id, category => 'Flytipping', email => "flytipping\@chiltern");
$mech->create_contact_ok(body_id => $district->id, category => 'Graffiti', email => "graffiti\@chiltern");
@@ -37,6 +38,7 @@ subtest 'cobrand displays council name' => sub {
subtest 'cobrand displays correct categories' => sub {
my $json = $mech->get_ok_json('/report/new/ajax?latitude=51.615559&longitude=-0.556903');
is @{$json->{bodies}}, 2, 'Both Chiltern and Bucks returned';
+ like $json->{category}, qr/Car Parks/, 'Car Parks displayed';
like $json->{category}, qr/Flytipping/, 'Flytipping displayed';
like $json->{category}, qr/Blocked drain/, 'Blocked drain displayed';
unlike $json->{category}, qr/Graffiti/, 'Graffiti not displayed';