aboutsummaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
Diffstat (limited to 't')
-rw-r--r--t/app/controller/report_new.t2
-rw-r--r--t/cobrand/bromley.t12
2 files changed, 13 insertions, 1 deletions
diff --git a/t/app/controller/report_new.t b/t/app/controller/report_new.t
index 40264f073..d50a682cf 100644
--- a/t/app/controller/report_new.t
+++ b/t/app/controller/report_new.t
@@ -612,7 +612,7 @@ foreach my $test (
password_register => '',
},
changes => { },
- errors => [ 'Please enter a subject', 'Please enter some details', 'Emails are limited to 50 characters in length.', 'Phone numbers are limited to 30 characters in length.', 'Names are limited to 50 characters in length.'],
+ errors => [ 'Please enter a subject', 'Please enter some details', 'Emails are limited to 50 characters in length.', 'Phone numbers are limited to 20 characters in length.', 'Names are limited to 50 characters in length.'],
},
)
{
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();