Refactor workbench into task-based UI shell
This commit is contained in:
@@ -18,15 +18,18 @@ def test_app_uses_quality_and_map_presentational_components() -> None:
|
||||
assert "<GeoMap" not in app
|
||||
|
||||
|
||||
def test_map_workspace_is_promoted_before_dense_workflow_grid() -> None:
|
||||
def test_map_workspace_lives_in_task_based_workbench_shell() -> None:
|
||||
app = (ROOT / "frontend" / "src" / "App.tsx").read_text(encoding="utf-8")
|
||||
styles = (ROOT / "frontend" / "src" / "styles" / "app.css").read_text(encoding="utf-8")
|
||||
|
||||
assert app.index("<MapWorkspace") < app.index('<main className="workspace-grid">')
|
||||
assert "grid-template-columns: repeat(12, minmax(0, 1fr));" in styles
|
||||
assert ".workspace-grid > section" in styles
|
||||
assert "max-height: 42rem;" in styles
|
||||
assert "overflow: auto;" in styles
|
||||
assert "activeWorkspace === 'map'" in app
|
||||
assert app.index("activeWorkspace === 'map'") < app.index("<MapWorkspace")
|
||||
assert 'className="workbench-main"' in app
|
||||
assert 'className="workbench-inspector"' in app
|
||||
assert ".workbench-layout" in styles
|
||||
assert ".workbench-sidebar" in styles
|
||||
assert ".workbench-main" in styles
|
||||
assert ".workbench-inspector" in styles
|
||||
|
||||
|
||||
def test_quality_results_panel_owns_persisted_quality_check_markup() -> None:
|
||||
|
||||
Reference in New Issue
Block a user