aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller
diff options
context:
space:
mode:
authorMatthew Somerville <matthew@mysociety.org>2019-06-11 13:10:34 +0100
committerMatthew Somerville <matthew@mysociety.org>2019-06-14 10:59:45 +0100
commitc6acc64950623088ce616bd2fd2e74e332890335 (patch)
tree0420bbbe2c74618ce37ed9046d9f1e05d852ffee /t/app/controller
parentafca06d29ca7c5597d6570095b4b352dcc12b9f9 (diff)
Improve 403/private report error messages.
Diffstat (limited to 't/app/controller')
-rw-r--r--t/app/controller/report_display.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/app/controller/report_display.t b/t/app/controller/report_display.t
index bde090dd1..bb5b0a72d 100644
--- a/t/app/controller/report_display.t
+++ b/t/app/controller/report_display.t
@@ -78,7 +78,7 @@ subtest "change report to non_public and check for 403 status" => sub {
ok $mech->get("/report/$report_id"), "get '/report/$report_id'";
is $mech->res->code, 403, "access denied";
is $mech->uri->path, "/report/$report_id", "at /report/$report_id";
- $mech->content_contains('That report cannot be viewed on FixMyStreet.');
+ $mech->content_contains('permission to do that. If you are the problem reporter');
ok $report->update( { non_public => 0 } ), 'make report public';
};
@@ -94,7 +94,7 @@ subtest "check owner of report can view non public reports" => sub {
ok $mech->get("/report/$report_id"), "get '/report/$report_id'";
is $mech->res->code, 403, "access denied to user who is not report creator";
is $mech->uri->path, "/report/$report_id", "at /report/$report_id";
- $mech->content_contains('That report cannot be viewed on FixMyStreet.');
+ $mech->content_contains('permission to do that. If you are the problem reporter');
$mech->log_out_ok;
ok $report->update( { non_public => 0 } ), 'make report public';
};