"""Regression coverage for issue #2211 workspace panel reopen affordance.""" from pathlib import Path ROOT = Path(__file__).resolve().parents[1] HTML = (ROOT / "static" / "index.html").read_text(encoding="utf-8") CSS = (ROOT / "static" / "style.css").read_text(encoding="utf-8") BOOT_JS = (ROOT / "static" / "boot.js").read_text(encoding="utf-8") CHANGELOG = (ROOT / "CHANGELOG.md").read_text(encoding="utf-8") def test_workspace_panel_has_edge_reopen_toggle_outside_hidden_panel(): assert 'id="btnWorkspacePanelEdgeToggle"' in HTML assert 'class="workspace-panel-edge-toggle' in HTML assert 'onclick="toggleWorkspacePanel(true)"' in HTML edge_idx = HTML.index('id="btnWorkspacePanelEdgeToggle"') aside_idx = HTML.index('