aboutsummaryrefslogtreecommitdiffstats
path: root/t/app/controller
diff options
context:
space:
mode:
Diffstat (limited to 't/app/controller')
-rw-r--r--t/app/controller/offline.t12
1 files changed, 12 insertions, 0 deletions
diff --git a/t/app/controller/offline.t b/t/app/controller/offline.t
index 505e605a0..d2a5009ec 100644
--- a/t/app/controller/offline.t
+++ b/t/app/controller/offline.t
@@ -33,4 +33,16 @@ FixMyStreet::override_config {
};
};
+subtest 'service worker' => sub {
+ $mech->get_ok('/service-worker.js');
+ $mech->content_contains('translation_strings');
+ $mech->content_contains('offline/fallback');
+};
+
+subtest 'offline fallback page' => sub {
+ $mech->get_ok('/offline/fallback');
+ $mech->content_contains('Offline');
+ $mech->content_contains('offline_list');
+};
+
done_testing(); \ No newline at end of file