From ba9efbd5b0bca630ecd6299240992efc3422dfca Mon Sep 17 00:00:00 2001 From: Matthew Somerville Date: Thu, 5 Dec 2019 15:55:20 +0000 Subject: Scrub admin description fields. --- t/app/controller/admin/bodies.t | 4 ++-- t/app/controller/admin/reportextrafields.t | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) (limited to 't/app/controller') diff --git a/t/app/controller/admin/bodies.t b/t/app/controller/admin/bodies.t index 2d09ee85e..340351473 100644 --- a/t/app/controller/admin/bodies.t +++ b/t/app/controller/admin/bodies.t @@ -236,13 +236,13 @@ subtest 'disable form message editing' => sub { $mech->get_ok('/admin/body/' . $body->id . '/test%20category'); $mech->submit_form_ok( { with_fields => { disable => 1, - disable_message => 'Please ring us!', + disable_message => 'Please ring us on 01234, click bad', note => 'Adding emergency message', } } ); $mech->content_contains('Values updated'); my $contact = $body->contacts->find({ category => 'test category' }); is_deeply $contact->get_extra_fields, [{ - description => 'Please ring us!', + description => 'Please ring us on 01234, click bad', code => '_fms_disable_', protected => 'true', variable => 'false', diff --git a/t/app/controller/admin/reportextrafields.t b/t/app/controller/admin/reportextrafields.t index 388cc3c95..dede25207 100644 --- a/t/app/controller/admin/reportextrafields.t +++ b/t/app/controller/admin/reportextrafields.t @@ -68,7 +68,7 @@ FixMyStreet::override_config { "metadata[9999].code" => "string_test", "metadata[9999].required" => 1, "metadata[9999].behaviour" => "question", - "metadata[9999].description" => "this is a test description", + "metadata[9999].description" => "
this is a test description
", "metadata[9999].datatype" => "string", "note" => "Added extra field", }}); -- cgit v1.2.3