aboutsummaryrefslogtreecommitdiffstats
path: root/t/cobrand/bromley.t
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2020-07-28 14:23:04 +0100
committerM Somerville <matthew-github@dracos.co.uk>2020-11-11 10:29:20 +0000
commit1a90fc2428eeca48347c8dc31f00ca6053e772bf (patch)
treef0f6db1e5925c7a0d9ccf7b4273fbacf50acf29f /t/cobrand/bromley.t
parent627daaad7d21817a301bcf604e15d230a4dca1c1 (diff)
[Bromley] Check service unit as well as property.
If someone else in a block of flats has reported a missed collection, others in the same service unit should not be able to report also. Fixes https://github.com/mysociety/fixmystreet-commercial/issues/1945
Diffstat (limited to 't/cobrand/bromley.t')
-rw-r--r--t/cobrand/bromley.t10
1 files changed, 5 insertions, 5 deletions
diff --git a/t/cobrand/bromley.t b/t/cobrand/bromley.t
index a60f72b0d..c8683c017 100644
--- a/t/cobrand/bromley.t
+++ b/t/cobrand/bromley.t
@@ -290,17 +290,17 @@ subtest 'test reporting before/after completion' => sub {
$mech->get_ok('/waste/uprn/12345');
$mech->content_contains('(completed at 10:00am)');
$mech->content_contains('Wrong Bin Out');
- $mech->content_lacks('Report a refuse collection');
- $mech->content_contains('Report a paper &amp; cardboard collection as missed');
+ $mech->content_lacks('Report a paper &amp; cardboard collection');
+ $mech->content_contains('Report a refuse collection');
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');
+ $mech->content_contains('Report a refuse collection');
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');
+ $mech->content_contains('Report a refuse collection');
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');
+ $mech->content_lacks('Report a refuse collection');
};
restore_time();
};