fix(pwa): serve manifest for html accept headers (#1828)

* fix(pwa): serve manifest for html accept headers

* style: add trailing newline to pwa controller
This commit is contained in:
Sure Admin (bot)
2026-05-18 19:10:01 +02:00
committed by GitHub
parent 4fd460d551
commit b73da38f49
3 changed files with 28 additions and 2 deletions

View File

@@ -0,0 +1,11 @@
require "test_helper"
class PwaControllerTest < ActionDispatch::IntegrationTest
test "manifest responds successfully for html accept headers" do
get "/manifest", headers: { "Accept" => "text/html" }
assert_response :success
assert_equal "application/manifest+json", response.media_type
assert_includes response.body, '"start_url": "/"'
end
end