allow copy and paste when minimap target

This commit is contained in:
bymyself
2025-10-14 11:46:54 -07:00
parent 9f046a11ea
commit 4d012f5fd9
9 changed files with 128 additions and 38 deletions

View File

@@ -13,6 +13,7 @@ import { ComfyTemplates } from '../helpers/templates'
import { ComfyMouse } from './ComfyMouse'
import { VueNodeHelpers } from './VueNodeHelpers'
import { ComfyNodeSearchBox } from './components/ComfyNodeSearchBox'
import { Minimap } from './components/Minimap'
import { SettingDialog } from './components/SettingDialog'
import {
NodeLibrarySidebarTab,
@@ -33,6 +34,7 @@ class ComfyMenu {
private _workflowsTab: WorkflowsSidebarTab | null = null
private _queueTab: QueueSidebarTab | null = null
private _topbar: Topbar | null = null
private _minimap: Minimap | null = null
public readonly sideToolbar: Locator
public readonly themeToggleButton: Locator
@@ -70,6 +72,11 @@ class ComfyMenu {
return this._topbar
}
get minimap() {
this._minimap ??= new Minimap(this.page)
return this._minimap
}
async toggleTheme() {
await this.themeToggleButton.click()
await this.page.evaluate(() => {