From 1dde008383669eef6fc801ee68ce49c387871490 Mon Sep 17 00:00:00 2001 From: Mauricio Fierro Date: Fri, 29 Mar 2024 00:16:58 -0500 Subject: [PATCH] Enable safari fullscreen mode - Remove support from main layout. This will only be supported by the Lesson#show view - Add test to check that the page has the tag --- app/views/layouts/application.html.erb | 1 - test/system/lessons_test.rb | 5 +++++ 2 files changed, 5 insertions(+), 1 deletion(-) diff --git a/app/views/layouts/application.html.erb b/app/views/layouts/application.html.erb index 749a7ca..9c23e99 100644 --- a/app/views/layouts/application.html.erb +++ b/app/views/layouts/application.html.erb @@ -3,7 +3,6 @@ Along - <%= csrf_meta_tags %> <%= csp_meta_tag %> <%= stylesheet_link_tag "application", "data-turbo-track": "reload" %> diff --git a/test/system/lessons_test.rb b/test/system/lessons_test.rb index 423f3ac..aefc24b 100644 --- a/test/system/lessons_test.rb +++ b/test/system/lessons_test.rb @@ -41,6 +41,11 @@ class LessonsTest < ApplicationSystemTestCase assert_text "New Light" end + test "should have app-capable meta tag" do + visit lesson_url(@lesson) + find 'meta[name="apple-mobile-web-app-capable"][content="yes"]', visible: :all + end + # FIXME: Turbo stream flash notices # test "should destroy Lesson" do # visit lesson_url(@lesson)