diff options
Diffstat (limited to 't')
-rw-r--r-- | t/app/controller/waste.t | 5 | ||||
-rw-r--r-- | t/cobrand/bromley.t | 10 |
2 files changed, 8 insertions, 7 deletions
diff --git a/t/app/controller/waste.t b/t/app/controller/waste.t index aac898da9..c86802631 100644 --- a/t/app/controller/waste.t +++ b/t/app/controller/waste.t @@ -61,15 +61,16 @@ FixMyStreet::override_config { }; subtest 'Thing already requested' => sub { $mech->content_contains('A food waste collection has been reported as missed'); + $mech->content_contains('A paper & cardboard collection has been reported as missed'); # as part of service unit, not property }; subtest 'Report a missed bin' => sub { $mech->content_contains('service-101', 'Can report, last collection was 27th'); - $mech->content_contains('service-537', 'Can report, last collection was 27th'); + $mech->content_lacks('service-537', 'Cannot report, last collection was 27th but the service unit has a report'); $mech->content_lacks('service-535', 'Cannot report, last collection was 20th'); $mech->content_lacks('service-542', 'Cannot report, last collection was 18th'); $mech->follow_link_ok({ text => 'Report a missed collection' }); $mech->content_contains('service-101', 'Checkbox, last collection was 27th'); - $mech->content_contains('service-537', 'Checkbox, last collection was 27th'); + $mech->content_lacks('service-537', 'No checkbox, last collection was 27th but the service unit has a report'); $mech->content_lacks('service-535', 'No checkbox, last collection was 20th'); $mech->content_lacks('service-542', 'No checkbox, last collection was 18th'); $mech->submit_form_ok({ form_number => 2 }); 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 & cardboard collection as missed'); + $mech->content_lacks('Report a paper & 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 & 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 & 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 & cardboard collection as missed'); + $mech->content_lacks('Report a refuse collection'); }; restore_time(); }; |