[automated] Apply ESLint and Oxfmt fixes

This commit is contained in:
GitHub Action
2026-03-08 06:03:54 +00:00
parent 3f0937e688
commit 4402d31041

View File

@@ -2,73 +2,63 @@ import { expect } from '@playwright/test'
import { comfyPageFixture as test } from '../../../../fixtures/ComfyPage'
test.describe(
'Node Output Preservation',
{ tag: ['@widget', '@node'] },
() => {
test.beforeEach(async ({ comfyPage }) => {
await comfyPage.settings.setSetting('Comfy.UseNewMenu', 'Top')
await comfyPage.settings.setSetting(
'Comfy.Workflow.WorkflowTabsPosition',
'Topbar'
)
})
test.describe('Node Output Preservation', { tag: ['@widget', '@node'] }, () => {
test.beforeEach(async ({ comfyPage }) => {
await comfyPage.settings.setSetting('Comfy.UseNewMenu', 'Top')
await comfyPage.settings.setSetting(
'Comfy.Workflow.WorkflowTabsPosition',
'Topbar'
)
})
test('Execution output widget value survives tab switch', async ({
comfyPage
}) => {
await comfyPage.workflow.loadWorkflow('execution/partial_execution')
test('Execution output widget value survives tab switch', async ({
comfyPage
}) => {
await comfyPage.workflow.loadWorkflow('execution/partial_execution')
const outputNode = await comfyPage.nodeOps.getNodeRefById(1)
expect(await (await outputNode.getWidget(0)).getValue()).toBe('')
const outputNode = await comfyPage.nodeOps.getNodeRefById(1)
expect(await (await outputNode.getWidget(0)).getValue()).toBe('')
await comfyPage.command.executeCommand('Comfy.QueuePrompt')
await expect(async () => {
expect(await (await outputNode.getWidget(0)).getValue()).toBe('foo')
}).toPass({ timeout: 5_000 })
await comfyPage.command.executeCommand('Comfy.QueuePrompt')
await expect(async () => {
expect(await (await outputNode.getWidget(0)).getValue()).toBe('foo')
}).toPass({ timeout: 5_000 })
await comfyPage.menu.topbar.triggerTopbarCommand(['New'])
await comfyPage.nextFrame()
await comfyPage.menu.topbar.triggerTopbarCommand(['New'])
await comfyPage.nextFrame()
const firstTab = comfyPage.menu.topbar.getWorkflowTab(
'partial_execution'
)
await firstTab.click()
await comfyPage.nextFrame()
const firstTab = comfyPage.menu.topbar.getWorkflowTab('partial_execution')
await firstTab.click()
await comfyPage.nextFrame()
await expect(async () => {
expect(await (await outputNode.getWidget(0)).getValue()).toBe('foo')
}).toPass({ timeout: 5_000 })
})
await expect(async () => {
expect(await (await outputNode.getWidget(0)).getValue()).toBe('foo')
}).toPass({ timeout: 5_000 })
})
test('Outputs on different tabs are independent', async ({
comfyPage
}) => {
await comfyPage.workflow.loadWorkflow('execution/partial_execution')
test('Outputs on different tabs are independent', async ({ comfyPage }) => {
await comfyPage.workflow.loadWorkflow('execution/partial_execution')
const outputNode1 = await comfyPage.nodeOps.getNodeRefById(1)
await comfyPage.command.executeCommand('Comfy.QueuePrompt')
await expect(async () => {
expect(await (await outputNode1.getWidget(0)).getValue()).toBe('foo')
}).toPass({ timeout: 5_000 })
const outputNode1 = await comfyPage.nodeOps.getNodeRefById(1)
await comfyPage.command.executeCommand('Comfy.QueuePrompt')
await expect(async () => {
expect(await (await outputNode1.getWidget(0)).getValue()).toBe('foo')
}).toPass({ timeout: 5_000 })
await comfyPage.menu.topbar.triggerTopbarCommand(['New'])
await comfyPage.nextFrame()
await comfyPage.menu.topbar.triggerTopbarCommand(['New'])
await comfyPage.nextFrame()
const newOutputCount = await comfyPage.page.evaluate(
() => Object.keys(window.app!.nodeOutputs).length
)
expect(newOutputCount).toBe(0)
const newOutputCount = await comfyPage.page.evaluate(
() => Object.keys(window.app!.nodeOutputs).length
)
expect(newOutputCount).toBe(0)
const firstTab = comfyPage.menu.topbar.getWorkflowTab(
'partial_execution'
)
await firstTab.click()
await comfyPage.nextFrame()
const firstTab = comfyPage.menu.topbar.getWorkflowTab('partial_execution')
await firstTab.click()
await comfyPage.nextFrame()
await expect(async () => {
expect(await (await outputNode1.getWidget(0)).getValue()).toBe('foo')
}).toPass({ timeout: 5_000 })
})
}
)
await expect(async () => {
expect(await (await outputNode1.getWidget(0)).getValue()).toBe('foo')
}).toPass({ timeout: 5_000 })
})
})