Skip to content

Commit

Permalink
fixup! fixup! [Merton] Bin not being returned correctly and waste spi…
Browse files Browse the repository at this point in the history
…llage
  • Loading branch information
MorayMySoc committed Nov 19, 2024
1 parent bc5d3e8 commit 9f01a41
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 4 deletions.
9 changes: 6 additions & 3 deletions t/app/controller/waste_merton.t
Original file line number Diff line number Diff line change
Expand Up @@ -538,9 +538,12 @@ FixMyStreet::override_config {
$mech->get_ok('/waste/12345');
$mech->content_contains('Report a problem with a non-recyclable waste collection', 'Can report a problem with non-recyclable waste');
$mech->content_contains('Report a problem with a food waste collection', 'Can report a problem with food waste');
$mech->content_contains('Report a problem with a paper and card collection', 'Can report a problem with paper and card');
$mech->content_lacks('Report a problem with a textiles and shoes collection', 'Can not report a problem with a textiles collection');
$mech->content_lacks('Report a problem with a batteries collection', 'Can not report a problem with a batteries collection');
my $root = HTML::TreeBuilder->new_from_content($mech->content());
my $panel = $root->look_down(id => 'panel-2240');
is $panel->as_text =~ /.*Please note that missed collections can only be reported.*/, 1, "Paper can card past reporting deadline";
$mech->content_lacks('Report a problem with a paper and card collection', 'Can not report a problem with paper and card as pas reporting deadline');
$mech->content_lacks('Report a problem with a textiles and shoes collection', 'Can not report a problem with a textiles collection as orange bags');
$mech->content_lacks('Report a problem with a batteries collection', 'Can not report a problem with a batteries collection as orange bagss');
$mech->follow_link_ok({ text => 'Report a problem with a non-recyclable waste collection' });
$mech->submit_form_ok( { with_fields => { category => 'Bin not returned' } });
$mech->submit_form_ok( { with_fields => { extra_Report_Type => '1', 'extra_Crew_Required_to_Return?' => '0' } });
Expand Down
2 changes: 1 addition & 1 deletion templates/web/base/waste/services.html
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
[% IF is_staff AND NOT unit.orange_bag %]
<a href="[% c.uri_for_action('waste/report', [ property.id ]) %]?additional=1&amp;service-[% unit.service_id %]=1" class="waste-service-link waste-service-descriptor">Request an additional [% unit.service_name FILTER lower %] collection</a>
[% END %]
[% IF NOT unit.orange_bag %]
[% IF NOT unit.orange_bag AND unit.report_allowed %]
<a href="[% c.uri_for_action('waste/enquiry', [ property.id ]) %]?template=problem&amp;service_id=[% unit.service_id %]" class="waste-service-link waste-service-descriptor">Report a problem with a [% unit.service_name FILTER lower %] collection</a>
[% END %]
[% END %]
Expand Down

0 comments on commit 9f01a41

Please sign in to comment.