Skip to content

Commit

Permalink
Enable safari fullscreen mode
Browse files Browse the repository at this point in the history
- 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
  • Loading branch information
mauriciofierrom committed Mar 29, 2024
1 parent 83e844c commit 1dde008
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 1 deletion.
1 change: 0 additions & 1 deletion app/views/layouts/application.html.erb
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,6 @@
<head>
<title>Along</title>
<meta name="viewport" content="width=device-width,initial-scale=1">
<meta name="apple-mobile-web-app-cabable" content="yes"/>
<%= csrf_meta_tags %>
<%= csp_meta_tag %>
<%= stylesheet_link_tag "application", "data-turbo-track": "reload" %>
Expand Down
5 changes: 5 additions & 0 deletions test/system/lessons_test.rb
Original file line number Diff line number Diff line change
Expand Up @@ -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)
Expand Down

0 comments on commit 1dde008

Please sign in to comment.