svrnty-hermes-webui-plugin/tests/unit/test_svrnty_nav_js.py
Svrnty c0ff59097c
Some checks failed
plugin-tests / test (push) Failing after 5s
upstream-drift / drift (push) Failing after 5s
Embed umbrella graph in workspace panel
2026-05-26 06:34:50 -04:00

19 lines
549 B
Python

"""Static checks for the Svrnty sidebar navigation injection."""
from pathlib import Path
NAV_JS = Path(__file__).resolve().parents[2] / "static" / "svrnty_nav.js"
def test_project_graph_is_not_in_left_nav():
src = NAV_JS.read_text()
assert "Project Graph" not in src
assert "/plugins/svrnty/umbrella.html" not in src
assert "window.open" not in src
def test_svrnty_tabs_participate_in_panel_switching():
src = NAV_JS.read_text()
assert "const TABS = [" in src
assert "const OUR_IDS = TABS.map((t) => t.id)" in src