diff options
author | M Somerville <matthew-github@dracos.co.uk> | 2020-11-04 13:45:20 +0000 |
---|---|---|
committer | M Somerville <matthew-github@dracos.co.uk> | 2020-11-11 10:37:44 +0000 |
commit | 5e2f1b3509391f891955db8b8fe05dbf40b7a041 (patch) | |
tree | 8bc4f1fd87a12e8191ee8b80df87f5d5ecc146c1 /t/cobrand | |
parent | 3f70d1f0b4d543072eda2d1b59092a5b9e6b3253 (diff) |
[Bromley] Adapt if last instance is in future.
Diffstat (limited to 't/cobrand')
-rw-r--r-- | t/cobrand/bromley.t | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/t/cobrand/bromley.t b/t/cobrand/bromley.t index fb34f1b6d..13f4f2308 100644 --- a/t/cobrand/bromley.t +++ b/t/cobrand/bromley.t @@ -271,6 +271,7 @@ FixMyStreet::override_config { subtest 'test open enquiries' => sub { set_fixed_time('2020-05-19T12:00:00Z'); # After sample food waste collection $mech->get_ok('/waste/uprn/12345'); + $mech->content_like(qr/Mixed Recycling.*?Next collection<\/dt>\s*<dd[^>]*>\s*Wednesday, 20th May\s+\(this collection has been adjusted/s); $mech->follow_link_ok({ text => 'Report a problem with a food waste collection' }); $mech->content_contains('Waste spillage'); $mech->content_lacks('Gate not closed'); @@ -280,6 +281,7 @@ FixMyStreet::override_config { subtest 'test crew reported issue' => sub { set_fixed_time('2020-05-21T12:00:00Z'); # After sample container mix $mech->get_ok('/waste/uprn/12345'); + $mech->content_like(qr/Mixed Recycling.*?Last collection<\/dt>\s*<dd[^>]*>\s*Wednesday, 20th May\s+\(this collection has been adjusted/s); $mech->content_contains('A missed collection cannot be reported, please see the last collection status above.'); $mech->content_lacks('Report a mixed recycling '); restore_time(); |