Gate filtered YOLO candidate and harden provenance
This commit is contained in:
@@ -0,0 +1,22 @@
|
||||
from pathlib import Path
|
||||
|
||||
|
||||
ROOT = Path(__file__).resolve().parents[2]
|
||||
|
||||
|
||||
def test_long_context_names_remain_compact_and_inspectable() -> None:
|
||||
app = (ROOT / "frontend" / "src" / "App.tsx").read_text(encoding="utf-8")
|
||||
status = (
|
||||
ROOT / "frontend" / "src" / "components" / "WorkbenchStatusStrip.tsx"
|
||||
).read_text(encoding="utf-8")
|
||||
css = (ROOT / "frontend" / "src" / "styles" / "app.css").read_text(
|
||||
encoding="utf-8"
|
||||
)
|
||||
|
||||
assert "const projectContextLabel = selectedProject?.name ?? 'No project'" in app
|
||||
assert "const datasetContextLabel = selectedDataset?.name ?? (datasets.length > 0 ? 'Select dataset' : 'No dataset')" in app
|
||||
assert "<strong title={projectContextLabel}>{projectContextLabel}</strong>" in app
|
||||
assert "<strong title={datasetContextLabel}>{datasetContextLabel}</strong>" in app
|
||||
assert "<strong title={item.value}>{item.value}</strong>" in status
|
||||
assert ".status-tile > strong" in css
|
||||
assert "-webkit-line-clamp: 2;" in css
|
||||
Reference in New Issue
Block a user