| from pathlib import Path | |
| ROOT = Path(__file__).resolve().parents[1] | |
| def test_timeline_uses_dynamic_column_count_to_prevent_wrapping(): | |
| progress = (ROOT / "web/static/progress.js").read_text() | |
| assert "repeat(${list.length}, minmax(96px, 1fr))" in progress | |
| assert "const behavior='auto'" in progress | |
| css = (ROOT / "web/static/app.css").read_text() | |
| assert "v124: stabilization override" in css | |
| assert "grid-auto-flow:column!important" in css | |
| assert "overflow-y:hidden!important" in css | |
| def test_run_explorer_compact_labels_do_not_use_long_status_or_colored_kind_badges(): | |
| runs = (ROOT / "web/static/runs.js").read_text() | |
| assert "function runCompactStatusLabel" in runs | |
| assert "return 'Success'" in runs | |
| assert "return 'Failed'" in runs | |
| assert "return isValidationRunSummary(run)?'Test':'Build'" in runs | |
| assert "runCompactStatusLabel(status)" in runs | |
| css = (ROOT / "web/static/app.css").read_text() | |
| assert ".run-list-kind.validation" in css | |
| assert "color:#475467!important" in css | |
| assert "max-width:82px!important" in css | |