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
19 lines
718 B
Python
19 lines
718 B
Python
from pathlib import Path
|
|
from tests.frontend_contract import read_feature
|
|
|
|
|
|
ROOT = Path(__file__).resolve().parents[2]
|
|
|
|
|
|
def test_map_source_mode_keeps_database_layers_distinct_from_analysis_results() -> None:
|
|
app = read_feature("shell")
|
|
workspace = read_feature("map_workspace")
|
|
|
|
assert "const [mapContentMode, setMapContentMode]" in app
|
|
assert "mapContentMode === 'analysis' && analysisMapLayerAvailable" in app
|
|
assert "setMapContentMode('dataset')" in app
|
|
assert 'aria-label="Bron van de kaartinhoud"' in workspace
|
|
assert "onSetMapContentMode('dataset')" in workspace
|
|
assert "onSetMapContentMode('analysis')" in workspace
|
|
assert "disabled={!analysisLayerAvailable}" in workspace
|