aboutsummaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
authorMatthew Somerville <matthew-github@dracos.co.uk>2018-09-25 18:53:21 +0100
committerMatthew Somerville <matthew-github@dracos.co.uk>2018-09-25 18:53:21 +0100
commit2e8ea6b187eb4219021bff009d8f1c6a87f75564 (patch)
tree9eb950378ad673326fa17d0b373141dcaf553e52 /t
parentda2026df7210cd772d40a7f619ec6ff8563800d7 (diff)
parentcdd94a3de1445d0aea4dfc8c18cbae9e315bdda9 (diff)
Merge branch 'body-list-speedup'
Diffstat (limited to 't')
-rw-r--r--t/app/controller/admin/defecttypes.t14
1 files changed, 14 insertions, 0 deletions
diff --git a/t/app/controller/admin/defecttypes.t b/t/app/controller/admin/defecttypes.t
index e7d0e42af..1eaab8414 100644
--- a/t/app/controller/admin/defecttypes.t
+++ b/t/app/controller/admin/defecttypes.t
@@ -28,6 +28,20 @@ FixMyStreet::override_config { ALLOWED_COBRANDS => ['oxfordshire'], }, sub {
my $body = $mech->create_body_ok( 2237, 'Oxfordshire County Council' );
+ subtest 'check defect types menu available to superusers' => sub {
+ my $user = $mech->create_user_ok(
+ 'superuser@example.com',
+ name => 'Test Superuser',
+ is_superuser => 1
+ );
+
+ $mech->log_in_ok( $user->email );
+ $mech->get_ok('/admin');
+ $mech->content_contains('Defect Types');
+ $mech->get_ok('/admin/defecttypes');
+ $mech->log_out_ok();
+ };
+
my $user = $mech->create_user_ok(
'oxford@example.com',
name => 'Test User',