mirror of
https://github.com/rickbarrette/simple-aircraft-manager-rails.git
synced 2026-11-17 23:50:36 -05:00
Use the plane emoji as the favicon; send cookies with the manifest
Behind an auth proxy (Authentik) the manifest fetch was redirected to the login page, which blocked installing the PWA. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
ef542ee2a5
commit
4b6329843d
5 files changed
+9
-8
No files matched your search
@@ -23,9 +23,11 @@ class PwaTest < ActionDispatch::IntegrationTest
|
||||
test "signed-in and shared pages link the manifest and register the worker" do
|
||||
sign_in create_user
|
||||
get root_path
|
||||
assert_select "link[rel=manifest][href='/manifest.json']"
|
||||
assert_select "link[rel=manifest][href='/manifest.json'][crossorigin=use-credentials]" # behind an auth proxy (Authentik) the manifest needs cookies
|
||||
assert_select "meta[name=theme-color]"
|
||||
assert_select "link[rel=apple-touch-icon][href='/apple-touch-icon.png']"
|
||||
assert_select "link[rel=icon][href='/favicon.svg']"
|
||||
assert_includes Rails.public_path.join("favicon.svg").read, "✈️"
|
||||
|
||||
token = create_aircraft(owner: create_user("o2@example.com")).share_tokens.create!(privilege: "status")
|
||||
get shared_path(token.token)
|
||||
|
||||
Reference in new issue
Block a user