feat: integrate official PIGWay v1.1 brand assets
This commit is contained in:
@@ -291,6 +291,28 @@ def test_core_has_no_client_special_case():
|
||||
)
|
||||
|
||||
|
||||
def test_official_brand_assets(client):
|
||||
html = client.get("/").text
|
||||
assert "/ui/favicon.svg" in html
|
||||
assert "/ui/apple-touch-icon.png" in html
|
||||
assert 'class="mobile-brand-logo pigway-logo"' in html
|
||||
for filename, content_type in [
|
||||
("logo-symbol.svg", "image/svg+xml"),
|
||||
("favicon.svg", "image/svg+xml"),
|
||||
("favicon.ico", "image/vnd.microsoft.icon"),
|
||||
("apple-touch-icon.png", "image/png"),
|
||||
]:
|
||||
response = client.get("/ui/" + filename)
|
||||
assert response.status_code == 200
|
||||
assert response.headers["content-type"].split(";")[0] in (
|
||||
content_type,
|
||||
"image/x-icon",
|
||||
)
|
||||
assert (
|
||||
response.content == (Path("pigway_frame_flow/web") / filename).read_bytes()
|
||||
)
|
||||
|
||||
|
||||
def test_ui_languages(client):
|
||||
assert client.get("/ui/app.js").status_code == 200
|
||||
i18n = client.get("/ui/i18n.js").text
|
||||
|
||||
Reference in New Issue
Block a user