aboutsummaryrefslogtreecommitdiffstats
path: root/t/cobrand/zurich.t
diff options
context:
space:
mode:
authorHakim Cassimally <hakim@mysociety.org>2015-02-04 14:52:12 +0000
committerDave Arter <davea@mysociety.org>2015-10-06 09:09:22 +0100
commit258a42d8973680824ad49ec7f9d8eddb58424262 (patch)
tree01a53337bcc193da76ac32415d864773f08a4eb6 /t/cobrand/zurich.t
parentde8ba7899dd4692cdf062f4b2735157f7fd14cb7 (diff)
[Zurich] all admin users can see stats
Admin CR4 https://github.com/mysociety/FixMyStreet-Commercial/issues/673 seems like admin_pages should be able to generate the menu, but this change also needs template change.
Diffstat (limited to 't/cobrand/zurich.t')
-rw-r--r--t/cobrand/zurich.t4
1 files changed, 2 insertions, 2 deletions
diff --git a/t/cobrand/zurich.t b/t/cobrand/zurich.t
index 90a92fb44..6394c8942 100644
--- a/t/cobrand/zurich.t
+++ b/t/cobrand/zurich.t
@@ -503,7 +503,7 @@ like $email->body, qr/test\@example.com/, 'body does contain email address';
$mech->clear_emails_ok;
$mech->log_out_ok;
-subtest "only superuser can see stats" => sub {
+subtest "superuser and dm can see stats" => sub {
$user = $mech->log_in_ok( 'super@example.org' );
FixMyStreet::override_config {
@@ -520,7 +520,7 @@ subtest "only superuser can see stats" => sub {
}, sub {
$mech->get( '/admin/stats' );
};
- is $mech->res->code, 404, "only superuser should be able to see stats page";
+ is $mech->res->code, 200, "dm can now also see stats page";
$mech->log_out_ok;
};