@@ -212,6 +212,8 @@ $mech->submit_form_ok({
212
212
},
213
213
}, ' add viewProduct and go back' );
214
214
215
+ WebGUI::Test-> addToCleanup(WebGUI::Shop::Cart-> newBySession($mech -> session));
216
+
215
217
$product = $product -> cloneFromDb;
216
218
cmp_deeply(
217
219
$product -> getAllCollateral( ' accessoryJSON' ),
@@ -246,6 +248,7 @@ $mech->submit_form_ok({
246
248
proceed => 0,
247
249
},
248
250
}, ' add viewProduct and go back' );
251
+ WebGUI::Test-> addToCleanup(WebGUI::Shop::Cart-> newBySession($mech -> session));
249
252
250
253
$product = $product -> cloneFromDb;
251
254
cmp_deeply(
@@ -281,6 +284,7 @@ $mech->submit_form_ok({
281
284
proceed => 0,
282
285
},
283
286
}, ' add one more new benefit' );
287
+ WebGUI::Test-> addToCleanup(WebGUI::Shop::Cart-> newBySession($mech -> session));
284
288
285
289
$product = $product -> cloneFromDb;
286
290
cmp_deeply(
@@ -338,6 +342,7 @@ $mech->submit_form_ok({
338
342
proceed => 0,
339
343
},
340
344
}, ' add one more new feature' );
345
+ WebGUI::Test-> addToCleanup(WebGUI::Shop::Cart-> newBySession($mech -> session));
341
346
342
347
$product = $product -> cloneFromDb;
343
348
cmp_deeply(
@@ -401,6 +406,7 @@ $mech->submit_form_ok({
401
406
proceed => 0,
402
407
},
403
408
}, ' add one more new feature' );
409
+ WebGUI::Test-> addToCleanup(WebGUI::Shop::Cart-> newBySession($mech -> session));
404
410
405
411
$product = $product -> cloneFromDb;
406
412
cmp_deeply(
@@ -475,6 +481,7 @@ $mech->submit_form_ok({
475
481
proceed => 0,
476
482
},
477
483
}, ' add one more new variant' );
484
+ WebGUI::Test-> addToCleanup(WebGUI::Shop::Cart-> newBySession($mech -> session));
478
485
479
486
$product = $product -> cloneFromDb;
480
487
cmp_deeply(
0 commit comments