from pathlib import Path def test_one_page_workspace_has_no_public_tabs_anymore(): html = Path("web/index.html").read_text(encoding="utf-8") assert 'data-view="build"' not in html assert 'data-view="progress"' not in html assert 'data-view="validate"' not in html assert "Runs Explorer" in html assert "Active Run" in html def test_new_build_panel_is_left_column_and_launch_focused(): html = Path("web/index.html").read_text(encoding="utf-8") assert 'id="newBuildCard"' in html for text in ["New Build", "Build private Space", "Launch result"]: assert text in html def test_runs_explorer_and_selected_run_are_integrated_on_same_page(): html = Path("web/index.html").read_text(encoding="utf-8") for text in ["Runs Explorer", "Search runs by ID, model, or space", "Selected run", "Prefill Space Test"]: assert text in html def test_space_test_panel_is_inline_not_tabbed(): html = Path("web/index.html").read_text(encoding="utf-8") assert 'id="spaceTestSection"' in html assert "Space Test" in html assert "Launch validation" in html