from pathlib import Path def test_pi_stdout_panel_removed_from_active_run(): html = Path("web/index.html").read_text(encoding="utf-8") js = Path("web/static/progress.js").read_text(encoding="utf-8") assert 'id="piTracePanel"' not in html assert "Pi process stdout" not in html assert "renderPiLiveTrace" not in js def test_progress_poll_does_not_refresh_runs_every_tick(): js = Path("web/static/app.js").read_text(encoding="utf-8") assert "lastRunsRefreshFromPoll" in js assert ">15000" in js def test_elapsed_ticks_client_side_each_second(): progress = Path("web/static/progress.js").read_text(encoding="utf-8") assert "const elapsedClock" in progress assert "window.setInterval" in progress assert "elapsedClock.baseSeconds+Math.floor" in progress def test_app_version_v62(): assert '"version": "v74-grouped-timeline-rings"' in Path("app.py").read_text(encoding="utf-8")