mirror of
https://github.com/Comfy-Org/ComfyUI_frontend.git
synced 2026-04-20 06:20:11 +00:00
fix: use programmatic subgraph navigation to avoid click interception in E2E
This commit is contained in:
@@ -496,8 +496,15 @@ test.describe('Subgraph Nested Scenarios', { tag: ['@subgraph'] }, () => {
|
||||
const outerRings = outerNode.locator(`.${PROMOTED_BORDER_CLASS}`)
|
||||
await comfyExpect(outerRings).toHaveCount(0)
|
||||
|
||||
// Navigate into Sub 0 to reach node 6 (Sub 1).
|
||||
await comfyPage.vueNodes.enterSubgraph('5')
|
||||
// Navigate into Sub 0 programmatically to avoid click interception
|
||||
// from canvas overlay elements (z-999 layer).
|
||||
await comfyPage.page.evaluate(() => {
|
||||
const graph = window.app!.graph!
|
||||
const node = graph.getNodeById('5')
|
||||
if (node?.isSubgraphNode()) {
|
||||
window.app!.canvas.setGraph(node.subgraph)
|
||||
}
|
||||
})
|
||||
await comfyPage.nextFrame()
|
||||
await comfyPage.vueNodes.waitForNodes()
|
||||
|
||||
|
||||
Reference in New Issue
Block a user