загрузил иконку и поменял название вкладки браузера

This commit is contained in:
2026-08-19 15:23:57 +03:00
parent a03c54dbe8
commit 972ca701e5
7 changed files with 46 additions and 5 deletions

View File

@@ -0,0 +1,15 @@
from pathlib import Path
ROOT = Path(__file__).resolve().parents[1]
def test_main_html_has_hockey_vmix_title_and_favicon():
html = (ROOT / "ui_builder" / "static" / "index.html").read_text(encoding="utf-8")
assert "<title>Хоккейный vMix</title>" in html
assert 'href="__UI_BUILDER_ASSETS__/favicon.svg?v=__UI_BUILDER_ASSET_VERSION__"' in html
def test_favicon_svg_exists_and_is_valid_svg_shell():
svg = (ROOT / "ui_builder" / "static" / "favicon.svg").read_text(encoding="utf-8")
assert svg.lstrip().startswith("<svg")
assert "viewBox=\"0 0 64 64\"" in svg