diff options
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'; |