from pathlib import Path ROOT = Path(__file__).resolve().parents[2] WEB = ROOT / "apps" / "web-console" def source(name: str) -> str: return (WEB / name).read_text(encoding="utf-8") def test_workbench_is_a_standalone_development_surface() -> None: html = source("firmware-workbench.html") script = source("firmware-workbench.js") assert "座椅固件开发工作台" in html assert '