aboutsummaryrefslogtreecommitdiffstats
path: root/t/cobrand/bromley.t
diff options
context:
space:
mode:
Diffstat (limited to 't/cobrand/bromley.t')
-rw-r--r--t/cobrand/bromley.t18
1 files changed, 14 insertions, 4 deletions
diff --git a/t/cobrand/bromley.t b/t/cobrand/bromley.t
index 8b2285458..3b01d308f 100644
--- a/t/cobrand/bromley.t
+++ b/t/cobrand/bromley.t
@@ -290,12 +290,22 @@ FixMyStreet::override_config {
$mech->get_ok('/waste/uprn/12345');
$mech->content_contains('(completed at 10:00am)');
$mech->content_contains('Wrong Bin Out');
- FixMyStreet::DB->resultset('ResponseTemplate')->create({
- body_id => $body->id,
+ };
+
+ subtest 'test template creation' => sub {
+ $mech->log_in_ok('superuser@example.com');
+ $mech->get_ok('/admin/templates/' . $body->id . '/new');
+ $mech->submit_form_ok({ with_fields => {
title => 'Wrong bin',
text => 'We could not collect your waste as it was not correctly presented.',
- external_status_code => 187,
- });
+ resolution_code => 187,
+ task_type => 3216,
+ task_state => 'Completed',
+ } });
+ $mech->log_out_ok;
+ };
+
+ subtest 'test reporting before/after completion' => sub {
$mech->get_ok('/waste/uprn/12345');
$mech->content_contains('(completed at 10:00am)');
$mech->content_contains('We could not collect your waste as it was not correctly presented.');