aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller
diff options
context:
space:
mode:
Diffstat (limited to 't/app/controller')
-rw-r--r--t/app/controller/report_inspect.t2
1 files changed, 2 insertions, 0 deletions
diff --git a/t/app/controller/report_inspect.t b/t/app/controller/report_inspect.t
index 367327c16..d5eaed2c1 100644
--- a/t/app/controller/report_inspect.t
+++ b/t/app/controller/report_inspect.t
@@ -920,10 +920,12 @@ FixMyStreet::override_config {
$mech->submit_form_ok({ button => 'save', with_fields => {
public_update => "This is a public update.", include_update => "1",
state => 'action scheduled', raise_defect => 1,
+ defect_item_category => 'Kerbing',
} });
$report2->discard_changes;
is $report2->get_extra_metadata('inspected'), 1, 'report marked as inspected';
$mech->get_ok("/report/$report2_id");
+ $mech->content_like(qr/Defect category<\/dt>\s*<dd>Kerbing/);
my $meta = $mech->extract_update_metas;
like $meta->[0], qr/State changed to: Action scheduled/, 'First update mentions action scheduled';
like $meta->[1], qr/Posted by .*defect raised/, 'Update mentions defect raised';