diff options
author | Matthew Somerville <matthew@mysociety.org> | 2020-04-24 17:35:50 +0100 |
---|---|---|
committer | Matthew Somerville <matthew@mysociety.org> | 2020-05-11 12:43:23 +0100 |
commit | 37306b9f6f4cb9b58c5e4a7bdc12e90dff879481 (patch) | |
tree | 529f8548364cd9f6707dd8b941678588661fa503 /t/app/controller/admin | |
parent | 725d7ccf1874e3404c6fa05b8269cb57bb2b2ea1 (diff) |
Disable rename on unprotected Open311 categories.
If you rename an Open311 category when it is not protected, it will only
get reinstated/deleted by the Open311 populate script shortly after, and
can cause issues due to the problem category renaming that occurs.
Diffstat (limited to 't/app/controller/admin')
-rw-r--r-- | t/app/controller/admin/bodies.t | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/t/app/controller/admin/bodies.t b/t/app/controller/admin/bodies.t index d3e4074f9..74084afbf 100644 --- a/t/app/controller/admin/bodies.t +++ b/t/app/controller/admin/bodies.t @@ -210,6 +210,7 @@ subtest 'check open311 configuring' => sub { subtest 'check open311 devolved editing' => sub { $mech->get_ok('/admin/body/' . $body->id . '/test%20category'); + $mech->content_contains("name=\"category\"\n size=\"30\" value=\"test category\"\n readonly>", 'Cannot edit Open311 category name'); $mech->submit_form_ok( { with_fields => { send_method => 'Email', email => 'testing@example.org', @@ -217,6 +218,7 @@ subtest 'check open311 devolved editing' => sub { } } ); $mech->content_contains('Values updated'); $mech->get_ok('/admin/body/' . $body->id . '/test%20category'); + $mech->content_contains("name=\"category\"\n size=\"30\" value=\"test category\"\n required>", 'Can edit as now devolved'); $mech->submit_form_ok( { with_fields => { send_method => '', email => 'open311-code', |