diff options
author | Matthew Somerville <matthew@mysociety.org> | 2020-03-16 14:12:49 +0000 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2020-03-19 17:38:13 +0000 |
commit | 1a3a9076e7e0faba55be2c127c725d349a6daae7 (patch) | |
tree | a0e95828c42638cb826813782a5beb1b5a9610a2 /t | |
parent | b0d165d88cb45587bbae598e8b0aafb4bfb9b29f (diff) |
[Admin] Access staff-only categories in admin.
Diffstat (limited to 't')
-rw-r--r-- | t/app/controller/report_new_staff.t | 3 |
1 files changed, 3 insertions, 0 deletions
diff --git a/t/app/controller/report_new_staff.t b/t/app/controller/report_new_staff.t index ee9dff9e4..422b154ed 100644 --- a/t/app/controller/report_new_staff.t +++ b/t/app/controller/report_new_staff.t @@ -237,6 +237,9 @@ subtest 'staff-only categories when reporting' => sub { $edin_trees->discard_changes; is $edin_trees->state, 'staff', 'category is staff only'; + $mech->get_ok('/admin/templates/' . $body_ids{2651} . '/new'); + $mech->content_contains('Trees'); + my $extra_details = $mech->get_ok_json( '/report/new/ajax?latitude=55.952055&longitude=-3.189579' ); is_deeply [ sort keys %{$extra_details->{by_category}} ], [ 'Street lighting', 'Trees' ], 'Superuser can see staff-only category'; |