From e530cbaa41c5f8c13ad4f441f3eba6f40852e332 Mon Sep 17 00:00:00 2001 From: wakonig_k Date: Wed, 1 Jul 2026 19:05:38 +0200 Subject: [PATCH] fix: set BEC shell as the default active tab in console dock --- .../applications/views/developer_view/developer_widget.py | 1 + tests/unit_tests/test_developer_view.py | 6 ++++++ 2 files changed, 7 insertions(+) diff --git a/bec_widgets/applications/views/developer_view/developer_widget.py b/bec_widgets/applications/views/developer_view/developer_widget.py index 08d592c2..f7cdbcbf 100644 --- a/bec_widgets/applications/views/developer_view/developer_widget.py +++ b/bec_widgets/applications/views/developer_view/developer_widget.py @@ -181,6 +181,7 @@ class DeveloperWidget(DockAreaWidget): return_dock=True, title_buttons={"float": False, "close": False}, ) + self.console_dock.setAsCurrentTab() # Plotting area on the right with signature help tabbed alongside self.plotting_ads_dock = self.new( diff --git a/tests/unit_tests/test_developer_view.py b/tests/unit_tests/test_developer_view.py index 5efa52ae..803858c6 100644 --- a/tests/unit_tests/test_developer_view.py +++ b/tests/unit_tests/test_developer_view.py @@ -117,6 +117,12 @@ class TestDeveloperViewInitialization: dock_widgets = developer_view.dock_manager.dockWidgets() assert len(dock_widgets) >= 4 # Explorer, Monaco, Console, Terminal + def test_bec_shell_is_default_active_bottom_tab(self, developer_view): + """Test that the BEC shell is the initially selected tab in the bottom dock area.""" + bottom_area = developer_view.console_dock.dockAreaWidget() + assert bottom_area is not None + assert bottom_area.currentDockWidget() is developer_view.console_dock + class TestFileOperations: """Test file operation functionality."""