mirror of
https://github.com/bec-project/bec_widgets.git
synced 2026-07-28 06:03:02 +02:00
fix: set BEC shell as the default active tab in console dock
This commit is contained in:
@@ -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(
|
||||
|
||||
@@ -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."""
|
||||
|
||||
Reference in New Issue
Block a user