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
|