@@ -90,7 +90,7 @@ FixMyStreet::override_config {
90
90
$mech -> content_contains(' 2 Example Street, Sutton' );
91
91
$mech -> content_contains(' Every Friday fortnightly' );
92
92
$mech -> content_contains(' Friday, 2nd September' );
93
- $mech -> content_contains(' Report a mixed recycling collection as missed' );
93
+ $mech -> content_contains(' Report a mixed recycling (cans, plastics & glass) collection as missed' );
94
94
};
95
95
subtest ' In progress collection' => sub {
96
96
$e -> mock(' GetTasks' , sub { [ {
@@ -106,12 +106,12 @@ FixMyStreet::override_config {
106
106
$mech -> get_ok(' /waste/12345' );
107
107
$mech -> content_like(qr / Friday, 9th September\s +\( this collection has been adjusted from its usual time\)\s +\( In progress\) / );
108
108
$mech -> content_lacks(' , at 4:00pm' );
109
- $mech -> content_lacks(' Report a mixed recycling collection as missed' );
109
+ $mech -> content_lacks(' Report a mixed recycling (cans, plastics & glass) collection as missed' );
110
110
$mech -> content_lacks(' Report a non-recyclable refuse collection as missed' );
111
111
set_fixed_time(' 2022-09-09T19:00:00Z' );
112
112
$mech -> get_ok(' /waste/12345' );
113
113
$mech -> content_contains(' , at 4:00pm' );
114
- $mech -> content_contains(' Report a mixed recycling collection as missed' );
114
+ $mech -> content_contains(' Report a mixed recycling (cans, plastics & glass) collection as missed' );
115
115
$mech -> content_contains(' Report a non-recyclable refuse collection as missed' );
116
116
$e -> mock(' GetTasks' , sub { [] });
117
117
};
@@ -219,24 +219,24 @@ FixMyStreet::override_config {
219
219
220
220
subtest ' Report missed collection' => sub {
221
221
$mech -> get_ok(' /waste/12345/report' );
222
- $mech -> content_contains(' Food waste ' );
223
- $mech -> content_contains(' Mixed recycling ' );
224
- $mech -> content_contains(' Non-recyclable Refuse' );
225
- $mech -> content_lacks(' Paper and card ' );
222
+ $mech -> content_contains(' Food Waste ' );
223
+ $mech -> content_contains(' Mixed Recycling (Cans, Plastics & Glass) ' );
224
+ $mech -> content_contains(' Non-Recyclable Refuse' );
225
+ $mech -> content_lacks(' Paper & Card ' );
226
226
227
227
$mech -> submit_form_ok({ with_fields => { ' service-2239' => 1 } });
228
228
$mech -> submit_form_ok({ with_fields => { name => ' Bob Marge' , email => $user -> email }});
229
229
$mech -> submit_form_ok({ with_fields => { process => ' summary' } });
230
230
$mech -> content_contains(' Thank you for reporting a missed collection' );
231
231
my $report = FixMyStreet::DB-> resultset(" Problem" )-> order_by(' -id' )-> first;
232
232
is $report -> get_extra_field_value(' uprn' ), 1000000002;
233
- is $report -> detail, " Report missed Food waste \n\n 2 Example Street, Sutton, SM1 1AA" ;
234
- is $report -> title, ' Report missed Food waste ' ;
233
+ is $report -> detail, " Report missed Food Waste \n\n 2 Example Street, Sutton, SM1 1AA" ;
234
+ is $report -> title, ' Report missed Food Waste ' ;
235
235
};
236
236
subtest ' No reporting/requesting if open request' => sub {
237
237
$mech -> get_ok(' /waste/12345' );
238
- $mech -> content_contains(' Report a mixed recycling collection as missed' );
239
- $mech -> content_lacks(' Request a mixed recycling container' );
238
+ $mech -> content_contains(' Report a mixed recycling (cans, plastics & glass) collection as missed' );
239
+ $mech -> content_lacks(' Request a mixed recycling (cans, plastics & glass) container' );
240
240
241
241
$e -> mock(' GetEventsForObject' , sub { [ {
242
242
# Request
@@ -252,8 +252,8 @@ FixMyStreet::override_config {
252
252
] },
253
253
} ] });
254
254
$mech -> get_ok(' /waste/12345' );
255
- $mech -> content_contains(' A mixed recycling container request has been made' );
256
- $mech -> content_contains(' Report a mixed recycling collection as missed' );
255
+ $mech -> content_contains(' A mixed recycling (cans, plastics & glass) container request has been made' );
256
+ $mech -> content_contains(' Report a mixed recycling (cans, plastics & glass) collection as missed' );
257
257
$mech -> get_ok(' /waste/12345/request' );
258
258
$mech -> content_like(qr / name="container-choice" value="16"\s +disabled/ s ); # green
259
259
@@ -285,8 +285,8 @@ FixMyStreet::override_config {
285
285
] },
286
286
} ] });
287
287
$mech -> get_ok(' /waste/12345' );
288
- $mech -> content_contains(' A mixed recycling collection has been reported as missed' );
289
- $mech -> content_lacks(' Request a mixed recycling container' );
288
+ $mech -> content_contains(' A mixed recycling (cans, plastics & glass) collection has been reported as missed' );
289
+ $mech -> content_lacks(' Request a mixed recycling (cans, plastics & glass) container' );
290
290
291
291
$e -> mock(' GetEventsForObject' , sub { [ {
292
292
EventTypeId => 1566,
@@ -297,7 +297,7 @@ FixMyStreet::override_config {
297
297
} },
298
298
} ] });
299
299
$mech -> get_ok(' /waste/12345' );
300
- $mech -> content_contains(' A paper and card collection has been reported as missed' );
300
+ $mech -> content_contains(' A paper & card collection has been reported as missed' );
301
301
302
302
$e -> mock(' GetEventsForObject' , sub { [] }); # reset
303
303
};
@@ -316,7 +316,7 @@ FixMyStreet::override_config {
316
316
} ]
317
317
});
318
318
$mech -> get_ok(' /waste/12345' );
319
- $mech -> content_contains(' A mixed recycling collection has been reported as missed' );
319
+ $mech -> content_contains(' A mixed recycling (cans, plastics & glass) collection has been reported as missed' );
320
320
$e -> mock(' GetEventsForObject' , sub { [] }); # reset
321
321
};
322
322
subtest ' No requesting if open request of different size' => sub {
0 commit comments