from pathlib import Path def test_selecting_run_still_does_not_force_hidden_navigation(): text = Path("web/static/runs.js").read_text(encoding="utf-8") select_run = text.split("async function selectRun", 1)[1].split("function renderSelectedLinks", 1)[0] assert "switchView(" not in select_run assert "Keep the user on the current tab" in select_run def test_mobile_css_prevents_letter_by_letter_wrapping_in_one_page_layout(): css = Path("web/static/app.css").read_text(encoding="utf-8") assert "word-break:normal" in css.replace(" ", "") assert "@media (max-width: 720px)" in css assert ".workspace-grid,.space-test-grid,.editor-grid,.two-cols,.summary-meta-grid,.diagnostic-list,.bottom-split,.three-way,.run-storage,.test-top-row{grid-template-columns:1fr}".replace(" ", "") in css.replace(" ", "")