aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/admin/manifesttheme.t
diff options
context:
space:
mode:
Diffstat (limited to 't/app/controller/admin/manifesttheme.t')
-rw-r--r--t/app/controller/admin/manifesttheme.t8
1 files changed, 4 insertions, 4 deletions
diff --git a/t/app/controller/admin/manifesttheme.t b/t/app/controller/admin/manifesttheme.t
index 9a86bdeb7..c1b2d4542 100644
--- a/t/app/controller/admin/manifesttheme.t
+++ b/t/app/controller/admin/manifesttheme.t
@@ -114,8 +114,8 @@ subtest "cobrand admin lets you add an icon to an existing theme" => sub {
ok $mech->success, 'Posted request successfully';
is $mech->uri->path, '/admin/manifesttheme/lincolnshire', "redirected back to edit page";
- $mech->content_contains($icon_filename);
- $mech->content_contains("133x100");
+ $mech->content_contains("<img src=\"/theme/lincolnshire/" . $icon_filename);
+ $mech->content_contains("<td class=\"icon-size\">133x100</td>");
my $icon_dest = path(FixMyStreet->path_to('web/theme/lincolnshire/', $icon_filename));
ok $icon_dest->exists, "Icon stored on disk";
};
@@ -132,8 +132,8 @@ subtest "cobrand admin lets you delete an icon from an existing theme" => sub {
$mech->submit_form_ok( { with_fields => $fields } );
is $mech->uri->path, '/admin/manifesttheme/lincolnshire', "redirected back to edit page";
- $mech->content_lacks($icon_filename);
- $mech->content_lacks("133x100");
+ $mech->content_lacks("<img src=\"/theme/lincolnshire/" . $icon_filename);
+ $mech->content_lacks("<td class=\"icon-size\">133x100</td>");
ok !$icon_dest->exists, "Icon removed from disk";
};