Update
This commit is contained in:
@@ -16,7 +16,7 @@ def test_map_first_explorer_is_the_default_product_flow() -> None:
|
||||
|
||||
assert "useState<WorkspaceKey>('map')" in app
|
||||
assert "Gebied analyseren" in workspace
|
||||
assert "<h3>Thema</h3>" in workspace
|
||||
assert "<h3>Focus op de kaart <small>optioneel</small></h3>" in workspace
|
||||
assert "<h3>Inzichten</h3>" in workspace
|
||||
assert "Teken rechthoek" in workspace
|
||||
assert "Volledig werkgebied" in workspace
|
||||
|
||||
@@ -136,7 +136,7 @@ def test_kempen_scope_operator_is_packaged_and_exposed_in_map_flow() -> None:
|
||||
assert "Kempen (28 gemeenten)" in workspace
|
||||
assert 'aria-label="Regio"' not in workspace
|
||||
assert 'aria-label="Ingeladen regiobereik"' in workspace
|
||||
assert "Snel naar een gemeente (optioneel)" in workspace
|
||||
assert "Zoek optioneel een gemeente" in workspace
|
||||
assert "projects={projects}" in app
|
||||
map_props = app.split("<MapWorkspace", maxsplit=1)[1].split("/>", maxsplit=1)[0]
|
||||
assert "onSelectProject={selectProject}" not in map_props
|
||||
|
||||
@@ -13,7 +13,7 @@ def test_work_area_change_clears_stale_spatial_results_before_switching_area() -
|
||||
|
||||
assert "const handleSelectMapArea = (areaId: string) => {" in workspace
|
||||
assert "clearAreaSelection()\n onSelectMapArea(areaId)" in workspace
|
||||
assert workspace.count("handleSelectMapArea(event.target.value)") == 2
|
||||
assert workspace.count("handleSelectMapArea(event.target.value)") == 1
|
||||
|
||||
|
||||
def test_cancelled_selection_requests_cannot_restore_stale_results() -> None:
|
||||
|
||||
@@ -19,7 +19,7 @@ def test_national_workspace_is_automatic_and_map_has_one_scope_selector() -> Non
|
||||
assert "const municipalityProject" not in project_hook
|
||||
assert 'aria-label="Regio"' not in map_workspace
|
||||
assert 'aria-label="Ingeladen regiobereik"' in map_workspace
|
||||
assert "Snel naar een gemeente (optioneel)" in map_workspace
|
||||
assert "Zoek optioneel een gemeente" in map_workspace
|
||||
assert 'aria-label="Werkgebied"' in map_workspace
|
||||
|
||||
|
||||
|
||||
@@ -250,7 +250,7 @@ def test_end_user_dataset_sources_are_human_readable() -> None:
|
||||
assert "statbel: 'Statbel'" in display
|
||||
assert "getDatasetSourceDisplayName(activeThemeDataset)" in workspace
|
||||
assert "getDatasetSourceDisplayName(resultDataset)" in workspace
|
||||
assert "Snel naar een gemeente (optioneel)" in workspace
|
||||
assert "Zoek optioneel een gemeente" in workspace
|
||||
assert "latestDatasetBySeries" in catalog
|
||||
assert "Historische meetmomenten" in catalog
|
||||
assert "getDatasetSourceDisplayName(dataset)" in catalog
|
||||
|
||||
Reference in New Issue
Block a user