fix: use QueueSelectedOutputNodes matching execution.spec.ts pattern

This commit is contained in:
bymyself
2026-03-07 22:20:13 -08:00
parent 4402d31041
commit 201ad6e63a

View File

@@ -19,7 +19,8 @@ test.describe('Node Output Preservation', { tag: ['@widget', '@node'] }, () => {
const outputNode = await comfyPage.nodeOps.getNodeRefById(1)
expect(await (await outputNode.getWidget(0)).getValue()).toBe('')
await comfyPage.command.executeCommand('Comfy.QueuePrompt')
await outputNode.click('title')
await comfyPage.command.executeCommand('Comfy.QueueSelectedOutputNodes')
await expect(async () => {
expect(await (await outputNode.getWidget(0)).getValue()).toBe('foo')
}).toPass({ timeout: 5_000 })
@@ -40,7 +41,8 @@ test.describe('Node Output Preservation', { tag: ['@widget', '@node'] }, () => {
await comfyPage.workflow.loadWorkflow('execution/partial_execution')
const outputNode1 = await comfyPage.nodeOps.getNodeRefById(1)
await comfyPage.command.executeCommand('Comfy.QueuePrompt')
await outputNode1.click('title')
await comfyPage.command.executeCommand('Comfy.QueueSelectedOutputNodes')
await expect(async () => {
expect(await (await outputNode1.getWidget(0)).getValue()).toBe('foo')
}).toPass({ timeout: 5_000 })