Alexander Brown
4e00e8428f
refactor: wire helpers into ComfyPage and update test usages
...
Phase 2 of ComfyPage refactor:
- Add ToastHelper, DragDropHelper, CommandHelper instances to ComfyPage
- Remove migrated methods from ComfyPage (command, toast, dragDrop, workflow, canvasOps, nodeOps methods)
- Update all test files to use new helper paths
- Keep visibleToasts as passthrough getter for backward compatibility
Amp-Thread-ID: https://ampcode.com/threads/T-019c1666-ed27-773c-976a-07cc805d7a6c
Co-authored-by: Amp <amp@ampcode.com >
2026-01-31 15:44:57 -08:00
Alexander Brown
be7f5b30b7
refactor: create and extend browser test helpers for ComfyPage extraction
...
Phase 1 of ComfyPage refactor - extract method groups into helpers:
- New ToastHelper: toast error/visibility/close methods
- New DragDropHelper: file and URL drag-and-drop methods
- New CommandHelper: command execution and registration
- Extended WorkflowHelper: undo/redo queue, modified state, export
- Extended CanvasHelper: group position/drag, edge connect/disconnect
- Extended NodeOperationsHelper: prompt dialog, node drag, widget adjust
Amp-Thread-ID: https://ampcode.com/threads/T-019c165a-5aba-7582-9f2b-e5b2bba2783b
Co-authored-by: Amp <amp@ampcode.com >
2026-01-31 15:44:56 -08:00
Alexander Brown
ccf459684e
refactor: remove ComfyPage wrapper methods, use helpers directly
...
- Remove 27 deprecated/wrapper methods from ComfyPage
- Migrate callers to use helper classes directly:
- keyboard.selectAll/bypass/undo/redo/moveUp/moveDown
- clipboard.copy/paste
- settings.setSetting/getSetting
- workflow.loadWorkflow/deleteWorkflow/setupWorkflowsDirectory
- contextMenu.clickMenuItem/clickLitegraphMenuItem
- nodeOps.resizeNode with DefaultGraphPositions
- canvasOps.clickEmptySpace with DefaultGraphPositions
- Replace deprecated node click methods with direct canvas clicks
- Replace position getter properties with DefaultGraphPositions imports
Amp-Thread-ID: https://ampcode.com/threads/T-019c15e7-2319-76ec-855e-098ec75ef18a
Co-authored-by: Amp <amp@ampcode.com >
2026-01-31 13:48:43 -08:00
Alexander Brown
c87b863a3b
Use named imports.
2026-01-31 13:22:15 -08:00
Alexander Brown
aea5afa8f3
test: extract SettingsHelper from ComfyPage (Phase 4.1)
...
Amp-Thread-ID: https://ampcode.com/threads/T-019c1373-f6d0-7426-a3ee-5673891f9dcc
Co-authored-by: Amp <amp@ampcode.com >
2026-01-31 01:50:20 -08:00