aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller/offline.t
diff options
context:
space:
mode:
authorDave Arter <davea@mysociety.org>2020-01-31 18:29:59 +0000
committerDave Arter <davea@mysociety.org>2020-02-26 15:25:31 +0000
commit3231c65a0a653695b726fb5a36b9ab7d9cf3a137 (patch)
tree7b7e03b1f6149253789a1c9de4a0b3af95a8fc59 /t/app/controller/offline.t
parent379410d69f5d2cad7bd0dca45a09e6096b3672d6 (diff)
Use ManifestTheme theme_colour for front page theme-color meta tag
Diffstat (limited to 't/app/controller/offline.t')
-rw-r--r--t/app/controller/offline.t3
1 files changed, 3 insertions, 0 deletions
diff --git a/t/app/controller/offline.t b/t/app/controller/offline.t
index a3feae514..876475264 100644
--- a/t/app/controller/offline.t
+++ b/t/app/controller/offline.t
@@ -1,6 +1,7 @@
use FixMyStreet::TestMech;
use FixMyStreet::DB;
use Path::Tiny;
+use Memcached;
my $mech = FixMyStreet::TestMech->new;
@@ -12,6 +13,7 @@ FixMyStreet::override_config {
my $image_path = path('t/app/controller/sample.jpg');
$image_path->copy($theme_dir->child('sample.jpg'));
subtest 'manifest' => sub {
+ Memcached::delete("manifest_theme:test");
my $j = $mech->get_ok_json('/.well-known/manifest.webmanifest');
is $j->{name}, 'FixMyStreet', 'correct name';
is $j->{theme_color}, '#ffd000', 'correct theme colour';
@@ -22,6 +24,7 @@ FixMyStreet::override_config {
}, 'correct icon';
};
subtest 'themed manifest' => sub {
+ Memcached::delete("manifest_theme:test");
FixMyStreet::DB->resultset('ManifestTheme')->create({
cobrand => "test",
name => "My Test Cobrand FMS",