fix: expose iOS home screen icons for web app

This commit is contained in:
3252a8
2026-05-24 23:13:15 +03:00
parent 0449ded505
commit 7cffb4667f
6 changed files with 158 additions and 1 deletions
+16
View File
@@ -221,6 +221,22 @@ class WebAppRouteContractTests(unittest.TestCase):
self.assertEqual(match_info.handler.__name__, "webapp_favicon_route")
def test_webapp_root_icon_alias_routes_are_registered(self):
app = web.Application()
subscription_webapp.setup_subscription_webapp_routes(app)
for path in (
"/favicon.ico",
"/apple-touch-icon.png",
"/apple-touch-icon-precomposed.png",
"/icon-192.png",
"/icon-512.png",
):
request = make_mocked_request("GET", path, app=app)
match_info = asyncio.run(app.router.resolve(request))
self.assertEqual(match_info.handler.__name__, "webapp_current_favicon_route")
def test_app_deeplink_gateway_keeps_target_in_fragment(self):
request = _Request(
app={