"""Window > Workspace submenu: a nested flyout with 4 window setups. The Window dropdown used to list the 4 workspace presets as flat rows. They are now a `.ge-menu-parent` flyout ("Workspace") whose 4 children set up the editor windows (dock panels + tab + right-panel width). The submenu open/close toggle is the shared `wireSubmenuToggles` helper (also used by Image/Filter/Selection). """ from pathlib import Path import re ROOT = Path(__file__).resolve().parents[1] TOPBAR = (ROOT / "static/js/editor/build/topbar.js").read_text(encoding="utf-8") CSS = (ROOT / "static/css/13-image-editor.css").read_text(encoding="utf-8") WIRE = (ROOT / "static/js/editor/wire-extra-menus.js").read_text(encoding="utf-8") MENUS = (ROOT / "static/js/editor/wire-topbar-menus.js").read_text(encoding="utf-8") SUBMENU = (ROOT / "static/js/editor/submenu-toggles.js").read_text(encoding="utf-8") WORKSPACES = (ROOT / "static/js/editor/workspaces.js").read_text(encoding="utf-8") GALLERY = (ROOT / "static/js/galleryEditor.js").read_text(encoding="utf-8") SW = (ROOT / "static/sw.js").read_text(encoding="utf-8") def test_window_menu_has_a_workspace_flyout_parent(): assert 'class="dropdown-item-compact ge-menu-parent" data-submenu="window-workspace"' in TOPBAR assert '