mirror of
https://github.com/basecamp/once-campfire.git
synced 2026-10-25 15:16:48 +09:00
Find the Edge install icon under images/external
install-edge.svg lives in app/assets/images/external/, alongside the other install icons, but the Edge branch of pwa/_install_instructions asked for it at the top level. Propshaft raises MissingAssetError, so a browser the useragent gem reports as Edge got a 500 on the profile page and anywhere else the partial renders. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
This commit is contained in:
1 parent
254dd1d46f
commit
955d799d11
2 files changed
+8
-1
No files matched your search
@@ -9,7 +9,7 @@
|
|||||||
<% case
|
<% case
|
||||||
when platform.edge? %>
|
when platform.edge? %>
|
||||||
<ol>
|
<ol>
|
||||||
<li>Click <em><%= image_tag "install-edge.svg", alt: "the app available - install Campfire chat button", size: 16 %></em>in the address bar.</li>
|
<li>Click <em><%= image_tag "external/install-edge.svg", alt: "the app available - install Campfire chat button", size: 16 %></em>in the address bar.</li>
|
||||||
<li>Click <em>Install</em>.</li>
|
<li>Click <em>Install</em>.</li>
|
||||||
</ol>
|
</ol>
|
||||||
<% when platform.chrome? && platform.android? %>
|
<% when platform.chrome? && platform.android? %>
|
||||||
|
|||||||
@@ -11,6 +11,13 @@ class Users::ProfilesControllerTest < ActionDispatch::IntegrationTest
|
|||||||
assert_response :success
|
assert_response :success
|
||||||
end
|
end
|
||||||
|
|
||||||
|
test "show includes install instructions for Edge" do
|
||||||
|
get user_profile_url, headers: { "User-Agent" => "Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/70.0.3538.102 Safari/537.36 Edge/18.18363" }
|
||||||
|
|
||||||
|
assert_response :success
|
||||||
|
assert_select ".pwa__instructions img[src*='install-edge']"
|
||||||
|
end
|
||||||
|
|
||||||
test "update" do
|
test "update" do
|
||||||
put user_profile_url, params: { user: { name: "John Doe", bio: "Acrobat" } }
|
put user_profile_url, params: { user: { name: "John Doe", bio: "Acrobat" } }
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user