aboutsummaryrefslogtreecommitdiffstats
path: root/t/cobrand
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2019-02-13 18:45:50 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2019-02-28 13:52:30 +0000
commitee49da6af0599aed63ae9364c52889a1e7b13347 (patch)
tree89bc1466f2814ef3375bb80c8239cf8732e68adc /t/cobrand
parent4bcdb8ecae32510a412540226d445d4bced7a497 (diff)
[Bromley] Initial heatmap page.
Diffstat (limited to 't/cobrand')
-rw-r--r--t/cobrand/bromley.t12
1 files changed, 12 insertions, 0 deletions
diff --git a/t/cobrand/bromley.t b/t/cobrand/bromley.t
index 129531fcb..a9f9fb144 100644
--- a/t/cobrand/bromley.t
+++ b/t/cobrand/bromley.t
@@ -228,4 +228,16 @@ subtest 'check special subcategories in admin' => sub {
is_deeply $user->get_extra_metadata('subcategories'), [ 'BLUE' ];
};
+subtest 'check heatmap page' => sub {
+ $user->update({ area_ids => [ 60705 ] });
+ FixMyStreet::override_config {
+ ALLOWED_COBRANDS => 'bromley',
+ MAPIT_URL => 'http://mapit.uk/',
+ }, sub {
+ $mech->log_in_ok($user->email);
+ $mech->get_ok('/about/heatmap?end_date=2018-12-31');
+ $mech->get_ok('/about/heatmap?filter_category=RED&ajax=1');
+ };
+};
+
done_testing();