GeoIntel release gates / Compile, test, contracts and builds (push) Successful in 1m49s
GeoIntel release gates / Python and npm vulnerability policy (push) Successful in 21s
GeoIntel release gates / Production AI image, SBOM and container scan (push) Successful in 5m39s
GeoIntel release gates / Deploy exact gated revision to Unraid (push) Failing after 58m43s
28 lines
1.2 KiB
Python
28 lines
1.2 KiB
Python
from pathlib import Path
|
|
from tests.frontend_contract import read_feature
|
|
|
|
|
|
ROOT = Path(__file__).resolve().parents[2]
|
|
|
|
|
|
def test_long_context_names_remain_compact_and_inspectable() -> None:
|
|
app = read_feature("shell")
|
|
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 "selectedProject?.name === REGIONAL_WORKSPACE_PROJECT_NAME" in app
|
|
assert "? REGIONAL_WORKSPACE_LABEL" in app
|
|
assert "const datasetContextLabel = activeWorkspace === 'map' && mapContextSourceLabel" in app
|
|
assert ": analysisMapLayerActive && mapFeatureCollection" in app
|
|
assert "? getDatasetDisplayName(selectedDataset)" in app
|
|
assert "`${mapLayerLabel} · controle vereist`" 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
|