aboutsummaryrefslogtreecommitdiffstats
path: root/t
diff options
context:
space:
mode:
Diffstat (limited to 't')
-rw-r--r--t/app/controller/admin/bodies.t4
-rw-r--r--t/app/controller/admin/reportextrafields.t2
-rw-r--r--t/open311/populate-service-list.t4
3 files changed, 5 insertions, 5 deletions
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 => '<em>Please</em> <u>ring</u> us on <a href="tel:01234">01234</a>, click <a href="javascript:bad">bad</a>',
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 => '<em>Please</em> ring us on <a href="tel:01234">01234</a>, click <a>bad</a>',
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" => "<div style='foo'>this is a test description</div>",
"metadata[9999].datatype" => "string",
"note" => "Added extra field",
}});
diff --git a/t/open311/populate-service-list.t b/t/open311/populate-service-list.t
index 75c468666..40e124d03 100644
--- a/t/open311/populate-service-list.t
+++ b/t/open311/populate-service-list.t
@@ -430,7 +430,7 @@ for my $test (
required => 'true',
datatype_description => 'Type of bin',
order => 1,
- description => 'Type of bin'
+ description => 'Type of <b>bin</b>'
} ],
meta_xml => '<?xml version="1.0" encoding="utf-8"?>
@@ -444,7 +444,7 @@ for my $test (
<required>true</required>
<datatype_description>Type of bin</datatype_description>
<order>1</order>
- <description>Type of bin</description>
+ <description>&lt;type&gt;Type&lt;/type&gt; of &lt;b&gt;bin&lt;/b&gt;</description>
</attribute>
</attributes>
</service_definition>