Replace ComfyApp.runningNodeId with executionStore.executingNodeId (#828)

* Replace ComfyApp.runningNodeId with executionStore.executingNodeId

* nit
This commit is contained in:
Chenlei Hu
2024-09-14 16:01:37 +09:00
committed by GitHub
parent f983f42c45
commit 588cfeca4b
3 changed files with 14 additions and 12 deletions

View File

@@ -1,3 +1,4 @@
import { createPinia, setActivePinia } from 'pinia'
import {
start,
createDefaultWorkflow,
@@ -572,7 +573,6 @@ describe('group node', () => {
new CustomEvent('executing', { detail: `${nodes.save.id}` })
)
// Event should be forwarded to group node id
expect(+app.runningNodeId).toEqual(group.id)
expect(group.node['imgs']).toBeFalsy()
api.dispatchEvent(
new CustomEvent('executed', {
@@ -613,7 +613,6 @@ describe('group node', () => {
api.dispatchEvent(new CustomEvent('execution_start', {}))
api.dispatchEvent(new CustomEvent('executing', { detail: `${group.id}:5` }))
// Event should be forwarded to group node id
expect(+app.runningNodeId).toEqual(group.id)
expect(group.node['imgs']).toBeFalsy()
api.dispatchEvent(
new CustomEvent('executed', {