aboutsummaryrefslogtreecommitdiffstats
path: root/t/cobrand
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2018-03-05 17:03:24 +0000
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-03-07 13:12:32 +0000
commitce3a95950b76b416386e053c167854d9cc51018c (patch)
treeff63a413834ccaca4ee8bfcf6844a5e967f6d25e /t/cobrand
parent95d943ce3c8110c1f71ad8e1490744d0fd588554 (diff)
[Zurich] Let SDM view awaiting reports.
Diffstat (limited to 't/cobrand')
-rw-r--r--t/cobrand/zurich.t6
1 files changed, 6 insertions, 0 deletions
diff --git a/t/cobrand/zurich.t b/t/cobrand/zurich.t
index b2ad4a7a0..3ad107b04 100644
--- a/t/cobrand/zurich.t
+++ b/t/cobrand/zurich.t
@@ -411,6 +411,12 @@ subtest 'SDM' => sub {
$mech->submit_form_ok( { button => 'no_more_updates' } );
is $mech->uri->path, '/admin/summary', "redirected now finished with report.";
+ # Can still view the edit page but can't change anything
+ $mech->get_ok( '/admin/report_edit/' . $report->id );
+ $mech->content_contains('<input disabled');
+ $mech->submit_form_ok( { with_fields => { status_update => 'This is a disallowed update.' } } );
+ $mech->content_lacks('This is a disallowed update');
+
$mech->get_ok( '/report/' . $report->id );
$mech->content_contains('In Bearbeitung');
$mech->content_contains('Test Test');