diff options
author | Matthew Somerville <matthew@mysociety.org> | 2020-03-30 14:18:49 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2020-03-30 14:18:49 +0100 |
commit | 044eef48e6f5d9696faa92c86ae27ac847407777 (patch) | |
tree | 97a57a73083097b4ee2591ac2a93a8a8c7e563e5 /t/app/controller | |
parent | c4e8f6218ef1e7338982db206084ff137dcae650 (diff) | |
parent | 1a3a9076e7e0faba55be2c127c725d349a6daae7 (diff) |
Merge branch 'staff-only-cats-in-admin-sending'
Diffstat (limited to 't/app/controller')
-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'; |