aboutsummaryrefslogtreecommitdiffstats
path: root/t/cobrand
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2018-03-02 17:06:51 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-03-02 17:10:27 +0000
commit224855a5571b59a8276595ed9a80d1706cba1d6e (patch)
tree206c2ecebaee17bfe8ac293417abcc58ae0739a5 /t/cobrand
parenta112bff47201786dab2239fe72efbf4b162a870b (diff)
parent9154199ddf8ddb373ca34758f96d009401e4dc81 (diff)
Merge branch 'issues/commercial/974-closed-report-incorrectly-reopened'
Diffstat (limited to 't/cobrand')
-rw-r--r--t/cobrand/zurich.t5
1 files changed, 5 insertions, 0 deletions
diff --git a/t/cobrand/zurich.t b/t/cobrand/zurich.t
index 7be6bd3b2..4ae9a0cde 100644
--- a/t/cobrand/zurich.t
+++ b/t/cobrand/zurich.t
@@ -289,6 +289,11 @@ subtest "report_edit" => sub {
is ( $report->get_extra_metadata('closed_overdue'), 0, "Closing as hidden sets closed_overdue..." );
is ( $report->state, 'hidden', 'Closing as hidden sets state to hidden');
is ( $report->get_extra_metadata('closure_status'), undef, 'Closing as hidden unsets closure_status');
+
+ $mech->submit_form_ok( { with_fields => { new_internal_note => 'Initial internal note.' } } );
+ $report->discard_changes;
+ is ( $report->state, 'hidden', 'Another internal note does not reopen');
+
$mech->get( '/report/' . $report->id);
is $mech->res->code, 410;