aboutsummaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2020-06-19 17:28:47 +0100
committerM Somerville <matthew-github@dracos.co.uk>2020-11-11 10:29:20 +0000
commitb8fb6677b54f99e53105de0e242be94969a53567 (patch)
tree05311d8922b0064177bbf2939df7867d6c127b21 /t
parentd90e1157ee31c374248da0db42b70456c37ddd5b (diff)
[Bromley] Treat some enquiries same as missed.
In terms of within-two-day and no existing open event.
Diffstat (limited to 't')
-rw-r--r--t/cobrand/bromley.t18
1 files changed, 18 insertions, 0 deletions
diff --git a/t/cobrand/bromley.t b/t/cobrand/bromley.t
index 045fdd56d..b31908f7d 100644
--- a/t/cobrand/bromley.t
+++ b/t/cobrand/bromley.t
@@ -1,5 +1,6 @@
use CGI::Simple;
use Test::MockModule;
+use Test::MockTime qw(:all);
use FixMyStreet::TestMech;
use FixMyStreet::Script::Reports;
my $mech = FixMyStreet::TestMech->new;
@@ -252,6 +253,23 @@ subtest 'check heatmap page' => sub {
};
};
+subtest 'test open enquiries' => sub {
+ set_fixed_time('2020-05-19T12:00:00Z'); # After sample food waste collection
+ FixMyStreet::override_config {
+ ALLOWED_COBRANDS => 'bromley',
+ COBRAND_FEATURES => {
+ echo => { bromley => { sample_data => 1 } },
+ waste => { bromley => 1 }
+ },
+ }, sub {
+ $mech->get_ok('/waste/uprn/12345');
+ $mech->follow_link_ok({ text => 'Report a problem with a food waste collection' });
+ $mech->content_contains('Waste spillage');
+ $mech->content_lacks('Gate not closed');
+ };
+
+};
+
subtest 'test waste max-per-day' => sub {
FixMyStreet::override_config {
ALLOWED_COBRANDS => 'bromley',