aboutsummaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2020-07-13 17:43:09 +0100
committerM Somerville <matthew-github@dracos.co.uk>2020-11-11 10:29:20 +0000
commit49dff7e4e4b7b6572cbf75ccb94383fe516f0e7c (patch)
treec744c98b99629257009a3ccfed3a2c98f971d04f /t
parent26ca5c069d168eded92b95abd3be0d7b7349b430 (diff)
[Bromley] Fetch/show completion date/resolution.
Diffstat (limited to 't')
-rw-r--r--t/cobrand/bromley.t26
1 files changed, 26 insertions, 0 deletions
diff --git a/t/cobrand/bromley.t b/t/cobrand/bromley.t
index bb43890a2..3578f10fb 100644
--- a/t/cobrand/bromley.t
+++ b/t/cobrand/bromley.t
@@ -278,6 +278,32 @@ subtest 'test open enquiries' => sub {
restore_time();
};
+subtest 'test reporting before/after completion' => sub {
+ FixMyStreet::override_config {
+ ALLOWED_COBRANDS => 'bromley',
+ COBRAND_FEATURES => {
+ echo => { bromley => { sample_data => 1 } },
+ waste => { bromley => 1 }
+ },
+ }, sub {
+ set_fixed_time('2020-05-27T11:00:00Z');
+ $mech->get_ok('/waste/uprn/12345');
+ $mech->content_contains('(completed at 10:00am)');
+ $mech->content_contains('Wrong Bin Out');
+ $mech->content_contains('Report a paper &amp; cardboard collection as missed');
+ set_fixed_time('2020-05-28T12:00:00Z');
+ $mech->get_ok('/waste/uprn/12345');
+ $mech->content_contains('Report a paper &amp; cardboard collection as missed');
+ set_fixed_time('2020-05-29T12:00:00Z');
+ $mech->get_ok('/waste/uprn/12345');
+ $mech->content_contains('Report a paper &amp; cardboard collection as missed');
+ set_fixed_time('2020-05-30T12:00:00Z');
+ $mech->get_ok('/waste/uprn/12345');
+ $mech->content_lacks('Report a paper &amp; cardboard collection as missed');
+ };
+ restore_time();
+};
+
subtest 'test waste max-per-day' => sub {
FixMyStreet::override_config {
ALLOWED_COBRANDS => 'bromley',